/* Hashfox, the subscription home page (branch site-joy): the counter.
   Terracotta on warm white, editorial. A huge masthead headline with the three facts as a ruled list; the
   clients' own requests first, on a terracotta field; the four steps as a two-column timeline (the step on the
   left, the request's chat on the right); what you get on ruled rows; the quote in terracotta; the price as a
   till receipt; questions in two ruled columns; a terracotta close. Schibsted Grotesk only.
   Loaded after styles.css and site.css, which still style the chat panel (.pc-card) and lend .mark, .wrap, .btn. */

body.joy {
  --bg: #fffdf9; --bg-2: #f7f2ea; --ink: #1d1a17; --ink-2: #5c5550; --ink-3: #8a827b; --hair: #e7e0d6; --hair-2: #cfc6ba;
  --terra: #6b2d5c; --terra-deep: #52204a; --terra-soft: #f3e4ef; --on-terra-2: #ead3e3; --on-terra-hair: rgba(255, 255, 255, 0.3);
  --wrap: 1280px; --gutter: clamp(16px, 4.5vw, 64px);
  background: var(--bg); color: var(--ink); font-size: 1.0625rem; line-height: 1.55; caret-color: var(--terra);
}
.joy h1, .joy h2, .joy h3 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; hyphens: auto; }
.joy h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.joy h3 { font-size: 1.25rem; letter-spacing: -0.02em; font-weight: 700; }
.joy em { font-style: normal; }
.joy .seal { display: inline-grid; place-items: center; }
.joy .seal svg { stroke: none; }
.joy .seal path { fill: var(--terra); }
.joy .wrap { max-width: var(--wrap); }

.joy .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.85rem 1.5rem; font-weight: 700; line-height: 1.2; color: var(--ink); background: transparent; }
.joy .btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.joy .btn-primary { background: var(--terra); border-color: var(--terra); color: #fff; }
.joy .btn-primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #fff; }
.joy .btn svg { width: 16px; height: 16px; }

/* header: a terracotta band */
.jtop { background: var(--terra); color: #fff; }
.jtop-in { display: flex; align-items: center; gap: 1.2rem; min-height: 4.5rem; }
.jtop .seal path { fill: #fff; }
.joy .mark .seal { width: 34px; height: 34px; }
.joy .mark-text { font-weight: 800; }
.jtop .mark-text small { color: var(--on-terra-2); }
.jnav { display: flex; gap: 1.4rem; margin-left: auto; }
.jnav a { text-decoration: none; color: var(--on-terra-2); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.jnav a:hover { color: #fff; }
.jlang select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 0.92rem; font-weight: 600; color: #fff; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.7rem center / 14px no-repeat; border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 0.5rem 2.1rem 0.5rem 0.95rem; cursor: pointer; transition: border-color 160ms; }
.jlang select:hover { border-color: #fff; }
.jlang option { color: var(--ink); background: #fff; }
.jtop .jtop-cta { background: #fff; border-color: #fff; color: var(--terra); padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.jtop .jtop-cta:hover { background: var(--bg-2); border-color: var(--bg-2); color: var(--terra-deep); }
.jtop a:focus-visible, .jtop select:focus-visible { outline-color: #fff; }

/* masthead */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: end; }
.hero h1 { grid-column: 1 / -1; font-size: clamp(3rem, 9vw, 8rem); letter-spacing: -0.055em; line-height: 0.94; }
.hero h1 em { color: var(--terra); }
.hero-side { order: 2; max-width: 36rem; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.facts { list-style: none; margin: 0; padding: 0; order: 1; border-top: 2px solid var(--ink); }
.facts li { padding: 0.75rem 0; border-bottom: 1px solid var(--hair-2); font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -0.025em; }

/* what clients ask us for, on the terracotta field */
.jasks { background: var(--terra); color: #fff; padding-block: clamp(3rem, 6vw, 5rem); }
.jasks h2 { color: #fff; }
.jasks-head { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.jasks-head p { color: var(--on-terra-2); font-size: 1.15rem; }
.ask-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ask-grid li { background: #fff; color: var(--ink); border-radius: 18px; border-bottom-left-radius: 4px; padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: 0.5rem; align-content: start; }
.jwho { font-size: 0.82rem; font-weight: 700; color: var(--terra); }
.ask-grid p { font-size: 1.02rem; line-height: 1.4; }
.build { margin-top: 2rem; color: var(--on-terra-2); max-width: 60ch; font-size: 1.05rem; }

/* how it works: step left, the message right */
.how { padding-block: clamp(3rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.how-head { max-width: 44rem; }
.how-head p { margin-top: 0.8rem; color: var(--ink-2); font-size: 1.15rem; }
.jthread { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.t-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 5vw, 5rem); padding: 1.6rem 0; border-bottom: 1px solid var(--hair-2); align-items: center; }
.t-step { order: 1; }
.t-msg { order: 2; display: grid; gap: 0.5rem; justify-items: start; }
.t-step h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.t-step p { color: var(--ink-2); margin-top: 0.4rem; max-width: 40ch; }
.t-meta { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }
.t-meta .h48 { color: #fff; background: var(--ink); padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: 0.4rem; font-size: 0.74rem; }
.bubble { max-width: 28rem; padding: 0.85rem 1.1rem; border-radius: 18px; border-top-left-radius: 4px; background: var(--terra); color: #fff; font-size: 1.05rem; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem 0.5rem 0.6rem; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.95rem; }
.status .seal { width: 22px; height: 22px; }
.status.ok { background: var(--ink); color: #fff; }
.status svg { width: 18px; height: 18px; }
.preview { width: min(100%, 24rem); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; }
.pv-head { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.9rem; font-size: 0.92rem; border-bottom: 1px solid var(--hair); }
.pv-head .seal { width: 20px; height: 20px; }
.pv-screen { padding: 0.9rem; background: var(--bg-2); display: grid; gap: 0.5rem; justify-items: start; }
.pv-time { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--terra); }
.pv-time svg { width: 15px; height: 15px; }
.pv-screen p { font-size: 0.92rem; color: var(--ink-2); }

/* the demos: four cards, screenshot on top, the whole card is the link */
.demos { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair); scroll-margin-top: 1rem; }
.demos-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; }
.demos-head p { color: var(--ink-2); max-width: 46ch; }
.demo-grid { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.demo a { display: grid; height: 100%; grid-template-rows: auto 1fr; border: 1.5px solid var(--ink); border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.demo a:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px var(--terra-soft); }
.demo a:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.demo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--bg-2); border-bottom: 1px solid var(--hair); }
.demo-body { display: grid; gap: 0.55rem; align-content: start; padding: 1.2rem 1.3rem 1.3rem; }
.demo-body p { color: var(--ink-2); }
.demo-roles { font-size: 0.92rem; color: var(--ink-2); }
.demo-roles b { color: var(--ink); font-weight: 700; }
.demo-open { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.3rem; font-weight: 700; color: var(--terra); }
.demo-open svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo a:hover .demo-open { text-decoration: underline; }
.demos-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .demo a { transition: none; } .demo a:hover { transform: none; } }

/* what you get */
.inc { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair); scroll-margin-top: 1rem; }
.inc-list { margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.inc-list div { padding: 1.3rem 0; border-top: 2px solid var(--ink); }
.inc-list dt { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.inc-list dd { margin: 0.4rem 0 0; color: var(--ink-2); max-width: 32ch; }

/* the quote */
.quote { padding-block: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--hair); }
.quote p { font-size: clamp(1.7rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; max-width: 22em; color: var(--terra); text-wrap: balance; }

/* price: the receipt */
.price { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair); background: var(--bg-2); scroll-margin-top: 1rem; }
.price h2 { text-align: center; max-width: none; }
.plan { position: relative; width: min(100%, 27rem); margin: 2rem auto 0; background: #fff; padding: 1.6rem 1.5rem 2.6rem; box-shadow: 0 24px 50px -30px rgba(29, 26, 23, 0.5), 0 2px 6px -2px rgba(29, 26, 23, 0.25); }
.plan::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 9px, #fff 10px) 0 0 / 20px 10px repeat-x; }
.plan-head { text-align: center; padding-bottom: 1rem; border-bottom: 1px dashed var(--hair-2); }
.plan-name { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.amount { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0.3rem 0.5rem; margin-top: 0.6rem; }
.amount b { font-size: 3.6rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--terra); }
.amount span { font-size: 1.1rem; color: var(--ink-2); }
.amount s { font-size: 1.3rem; color: var(--ink-3); text-decoration-thickness: 2px; }
.founding { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-2); }
.plan-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.plan-list li { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.5rem 0; font-size: 0.98rem; }
.plan-list li::after { content: ""; flex: 1; order: 1; border-bottom: 2px dotted var(--hair-2); transform: translateY(-0.3em); min-width: 1.5rem; }
.plan-list li::before { content: ""; order: 2; flex: none; width: 15px; height: 15px; background: var(--terra); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan-guar { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--hair-2); display: grid; gap: 0.8rem; }
.plan-guar h3 { font-size: 1rem; }
.plan-guar p { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.15rem; }
.joy .plan-cta { width: 100%; margin-top: 1.4rem; font-size: 1.05rem; }

/* questions, two columns */
.faq { padding-block: clamp(3rem, 6vw, 5rem); scroll-margin-top: 1rem; }
.jfaq { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); border-top: 2px solid var(--ink); }
.jfaq details { border-bottom: 1px solid var(--hair-2); }
.jfaq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.015em; }
.jfaq summary::-webkit-details-marker { display: none; }
.jfaq summary:hover { color: var(--terra); }
.jfaq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.jfaq summary i::before, .jfaq summary i::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; background: currentColor; transition: transform 200ms var(--ease); }
.jfaq summary i::after { transform: rotate(90deg); }
.jfaq details[open] summary i::after { transform: none; }
.jfaq details p { padding: 0 0 1.2rem; color: var(--ink-2); }

/* the close */
.end { background: var(--terra); color: #fff; padding-block: clamp(3rem, 7vw, 6rem); text-align: center; }
.end h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.end-p { color: var(--on-terra-2); margin: 1rem auto 0; max-width: 40ch; font-size: 1.15rem; }
.end .ctas { justify-content: center; margin-top: 1.8rem; }
.joy .end .btn-primary { background: #fff; border-color: #fff; color: var(--terra); }
.joy .end .btn-primary:hover { background: var(--bg-2); border-color: var(--bg-2); color: var(--terra-deep); }
.joy .end .btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.joy .end .btn-ghost:hover { background: #fff; color: var(--terra); border-color: #fff; }
.end a:focus-visible { outline-color: #fff; }
.email { margin-top: 1.4rem; color: var(--on-terra-2); font-size: 0.95rem; }
.email a { color: #fff; }

/* footer */
.jfoot { color: var(--ink-2); font-size: 0.95rem; }
.jfoot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.6rem 2.4rem; }
.jfoot ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; margin: 0; padding: 0; }
.jfoot a { text-decoration: none; color: var(--ink); }
.jfoot ul a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .jnav { display: none; }
  .jlang { margin-left: auto; }
  .hero .wrap, .t-row, .jfaq, .demos-head { grid-template-columns: minmax(0, 1fr); }
  .hero-side { order: 1; } .facts { order: 2; }
  .ask-grid, .inc-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .joy .jtop-cta { display: none; }
  .jlang select { max-width: 8rem; }
  .hero h1 { font-size: clamp(2.6rem, 13vw, 3.8rem); }
  .ctas .btn { width: 100%; }
  .ask-grid, .inc-list, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .plan { padding-inline: 1.1rem; }
}
.demo-name { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent, currentColor); }
