/* Shared styles for index, details, choose, terms and privacy. upsell.html keeps its own. The landing page adds landing.css. */

@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-body.woff2') format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-body-ext.woff2') format('woff2'); font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-display.woff2') format('woff2'); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-display-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }

:root {
  --paper: #f7f2e9; --surface: #fffdf8; --sand: #efe7d8;
  --ink: #1c2725; --muted: #59635f;
  --teal: #14433f; --teal-dark: #0e322f; --teal-tint: #e3ece7; --clay: #8a6426;
  --pine: #12322f; --pine-2: #1a4440;
  --brass: #8a6426; --brass-light: #e2c48c;
  --on-teal: #f6f0e4; --on-teal-soft: rgba(246,240,228,.78);
  --line: rgba(28,39,37,.13); --line-strong: rgba(28,39,37,.28); --line-teal: rgba(246,240,228,.18);
  --yellow: #fff3b0; --yellow-line: #d8bf3f; --error: #9a3412;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(28,39,37,.05), 0 30px 60px -32px rgba(28,39,37,.42);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; background-image: radial-gradient(900px 480px at 88% 0, #efe3cb 0, rgba(239,227,203,0) 70%); background-repeat: no-repeat; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: #e6d2a6; color: var(--ink); }

.wrap { width: min(1280px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { width: min(760px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -.018em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.75rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 400; letter-spacing: -.008em; }
em { font-style: italic; }
.eyebrow { font-size: .95rem; font-weight: 500; color: var(--brass); }
.lede { font-size: clamp(1.08rem, 1.04rem + .2vw, 1.18rem); line-height: 1.58; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }

section { padding-block: clamp(64px, 9vw, 128px); }
.sec-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 + p { margin-top: 14px; color: var(--muted); }

/* Yellow = something Petr has to decide or fill in before launch */
.ph { background: var(--yellow); color: var(--ink); padding: .05em .3em; border-radius: 3px; }
.ph-note { background: var(--yellow); color: var(--ink); border: 1px solid var(--yellow-line); border-radius: 8px; padding: 10px 14px; font-size: .95rem; }

/* Header and footer */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { font-family: var(--display); font-size: 1.4rem; font-weight: 400; letter-spacing: -.015em; text-decoration: none; }
.wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .97rem; text-decoration: none; min-height: 44px; white-space: nowrap; }
.wa svg { width: 19px; height: 19px; flex: none; color: var(--brass); }
.wa:hover { text-decoration: underline; }

.foot { border-top: 1px solid var(--line); padding-block: 32px 40px; font-size: .92rem; color: var(--muted); }
.foot .wrap { display: grid; gap: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--ink); }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 56px; padding: 14px 30px; background: var(--teal); color: #fff; border: 0; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .35s ease, box-shadow .35s ease; box-shadow: 0 14px 28px -16px rgba(18,50,47,.7); }
.btn:hover { background: var(--teal-dark); box-shadow: 0 18px 34px -16px rgba(18,50,47,.85); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--light { background: var(--on-teal); color: var(--teal-dark); box-shadow: none; }
.btn--light:hover { background: #fff; }
.btn--full { width: 100%; }
.btn--quiet { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1px var(--line-strong); min-height: 48px; padding: 10px 18px; font-size: 1rem; }
.btn--quiet:hover { background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal); }
.cta-note { margin-top: 12px; font-size: .95rem; color: var(--muted); max-width: 44ch; }

/* Screenshots: a desktop view with a phone view laid over its corner */
.shots { position: relative; padding: 0 13% 9% 0; }
.shots__desk { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; }
.shots__phone { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: 16px; border: 4px solid var(--ink); box-shadow: var(--shadow); background: var(--ink); }

/* Gentle page entrance for the form and picker. Only a start state inside the keyframes, so no script is needed. */
@keyframes enter { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
.page > .wrap > * > h1, .page > .wrap > h1, .page__intro, .sample-note, .form > *, .side, .pick { animation: enter 1s var(--ease) both; }
.page__intro { animation-delay: .06s; }
.sample-note { animation-delay: .1s; }
.side { animation-delay: .28s; }
.form > :nth-child(1) { animation-delay: .1s; } .form > :nth-child(2) { animation-delay: .14s; } .form > :nth-child(3) { animation-delay: .18s; }
.form > :nth-child(4) { animation-delay: .22s; } .form > :nth-child(5) { animation-delay: .26s; } .form > :nth-child(6) { animation-delay: .3s; } .form > :nth-child(7) { animation-delay: .34s; }
.pick:nth-child(1) { animation-delay: .14s; } .pick:nth-child(2) { animation-delay: .22s; } .pick:nth-child(3) { animation-delay: .3s; } .pick:nth-child(4) { animation-delay: .38s; }

/* Form and picker: progress */
.progress { display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); padding-block: 16px; border-bottom: 1px solid var(--line); }
.progress li[aria-current] { color: var(--ink); font-weight: 600; }
.progress li span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; font-size: .8rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.progress li[aria-current] span { background: var(--teal); color: #fff; box-shadow: none; animation: pop .8s var(--ease) both; }
.progress li.done span { background: var(--teal-tint); color: var(--teal); box-shadow: none; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Form */
.page { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 8vw, 104px); }
.form-grid { display: grid; gap: 40px; }
.page__intro { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.form { margin-top: 30px; display: grid; gap: 22px; }
.fields-2 { display: grid; gap: 22px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; }
.field__hint { font-size: .92rem; color: var(--muted); margin-top: 7px; }
.field__hint a { color: var(--ink); }
.field input, .field select { display: block; width: 100%; min-height: 56px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; font-size: 1.0625rem; transition: border-color .3s ease, box-shadow .3s ease; }
.field input:hover, .field select:hover { border-color: var(--teal); }
.field select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2314433f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,67,63,.16); }
.field.is-bad input, .field.is-bad select { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field__err { display: none; margin-top: 6px; color: var(--error); font-size: .95rem; font-weight: 500; }
.field.is-bad .field__err { display: block; animation: enter .5s var(--ease) both; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 16px 18px; background: var(--sand); border-radius: 12px; font-size: 1rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.side { background: var(--pine); color: var(--on-teal); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); align-self: start; box-shadow: var(--shadow); }
.side h2 { font-size: 1.5rem; margin-bottom: 10px; }
.side__list li { padding-block: 14px; border-top: 1px solid var(--line-teal); font-size: 1rem; color: var(--on-teal-soft); }
.side__list b { font-weight: 600; color: var(--brass-light); }

/* Picker */
.picker { display: grid; gap: 32px; margin-top: 30px; }
.pick-grid { display: grid; gap: 24px; }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 18px; box-shadow: 0 1px 2px rgba(28,39,37,.04); transition: border-color .35s ease, box-shadow .5s var(--ease), transform .7s var(--ease); }
.pick:hover { box-shadow: var(--shadow); }
.pick.is-selected { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal), var(--shadow); }
.pick__shot { display: block; width: 100%; padding: 0; background: var(--sand); border: 0; border-radius: 12px; cursor: pointer; overflow: hidden; transition: background .4s ease; }
.pick[data-design="elegant"] .pick__shot { background: #eadfc8; }
.pick[data-design="studio"] .pick__shot { background: #e6ecee; }
.pick[data-design="hearth"] .pick__shot { background: #f3d9c2; }
.pick[data-design="nocturne"] .pick__shot { background: #26241f; }
.pick__shot .shots { display: block; padding: 14px 15% 24px 14px; transition: transform .9s var(--ease); }
.pick:hover .pick__shot .shots { transform: translateY(-4px); }
.pick__shot .shots__desk { transition: transform .9s var(--ease); }
.pick__shot .shots__phone { right: 14px; bottom: 12px; width: 22%; border-width: 3px; border-radius: 12px; transition: transform .9s var(--ease); }
.pick:hover .pick__shot .shots__phone { transform: translateY(-6px); }
.pick__body { padding: 16px 6px 0; }
.pick__body h2 { font-size: 1.55rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pick__body p { color: var(--muted); margin-top: 4px; font-size: 1rem; }
.pick__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-inline: 6px; }
.pick__acts .btn { flex: 1 1 100%; min-height: 48px; padding: 10px 16px; font-size: 1rem; }
.pick__acts .btn svg { width: 15px; height: 15px; }
.pick.is-selected .pick__choose { background: var(--teal-dark); }
.sample-note { margin-top: 14px; padding: 14px 18px; background: var(--sand); border-radius: 12px; font-size: 1rem; }

.summary { display: none; scroll-margin-top: 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); align-self: start; box-shadow: var(--shadow); }
.has-choice .summary { display: block; }
.summary__empty { color: var(--muted); }
.summary__full { display: none; }
.has-choice .summary__full { display: block; animation: enter .8s var(--ease) both; }
.has-choice .summary__empty { display: none; }
.summary h2 { font-size: 1.5rem; }
.summary__rows { margin-top: 12px; }
.summary__rows > div { padding-block: 13px; border-top: 1px solid var(--line); }
.summary__rows dt { font-weight: 600; }
.summary__rows dd { color: var(--muted); font-size: .98rem; overflow-wrap: anywhere; }
.picker > * { min-width: 0; }
#heading { overflow-wrap: anywhere; }
.summary .btn { margin-top: 8px; }
.summary .ph-note, .summary .need { margin-top: 12px; }
.summary__terms { margin-top: 14px; font-size: .92rem; color: var(--muted); }
.summary__change { margin-top: 8px; padding: 8px 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .95rem; min-height: 44px; }

/* Terms and privacy */
.doc { padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.doc h1 { font-size: clamp(2rem, 1.7rem + 1.3vw, 2.8rem); margin-top: 18px; }
.doc h2 { font-size: 1.5rem; font-weight: 400; margin-top: 36px; }
.doc h3 { font-size: 1.2rem; margin-top: 24px; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; list-style: disc; padding-left: 22px; }
.doc li { margin-top: 6px; }

@media (min-width: 620px) {
  .btn:not(.btn--full) { min-width: 280px; }
  .pick__acts .btn, .btn--quiet { min-width: 0; }
  .pick-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .form-grid { grid-template-columns: 1.35fr 1fr; gap: 72px; }
  .form-grid .side { margin-top: 72px; position: sticky; top: 24px; }
  .fields-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .picker { grid-template-columns: 1fr 390px; gap: 36px; align-items: start; }
  .summary { display: block; position: sticky; top: 16px; padding: 20px 24px; }
  .summary h2 { font-size: 1.35rem; }
  .summary__rows { margin-top: 8px; }
  .summary__rows > div { padding-block: 8px; }
  .summary__rows dd { font-size: .93rem; line-height: 1.45; }
  .summary__terms { margin-top: 10px; font-size: .86rem; line-height: 1.45; }
  .summary__change { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Live funnel additions */
.form-problem { color: var(--error); font-weight: 600; }
.form-problem[hidden] { display: none; }
.check--terms { margin-block: 14px 12px; }
.pick.is-taken { opacity: .55; }
.pick.is-taken .pick__shot { cursor: default; }
.pick.is-taken .pick__choose { background: var(--sand); color: var(--muted); cursor: not-allowed; box-shadow: none; }
