/* Ink preset: homepage, order page, login page. */
:root {
  --bg: #f4f3ef; --surface: #ffffff; --surface-2: #e9e7df; --ink: #14140f; --hairline: #14140f;
  --text: #14140f; --text-2: #55554c; --accent: #14140f; --accent-text: #f4f3ef;
  --good: #2f7a3a; --bad: #b8321f; --warn: #9a6400;
  /* The one spot color: a highlighter. Same in light and dark. */
  --spot: #ffdd33; --on-spot: #14140f;
  --display: "Luckiest Guy", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #14140f; --surface: #1d1d17; --surface-2: #26261f; --ink: #f4f3ef; --hairline: #f4f3ef;
  --text: #f4f3ef; --text-2: #b4b3a8; --accent: #f4f3ef; --accent-text: #14140f;
  --good: #7fcf8a; --bad: #ff8a75; --warn: #f0c060;
}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Open values still to be decided. Search for "todo" to find them. */
.todo { background: var(--spot); color: var(--on-spot); padding: 0 4px; border-radius: 4px; }

/* Display type */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
h2.display { font-size: clamp(44px, 7vw, 76px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 26px; border-radius: 999px;
  border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  background: var(--surface); color: var(--text);
  font: 800 17px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--spot); color: var(--on-spot); }
.btn-big { min-height: 60px; padding: 14px 38px; font-size: 20px; }
.btn-small { min-height: 44px; padding: 6px 18px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-round { width: 52px; height: 52px; min-height: 0; padding: 0; font-size: 26px; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), box-shadow .25s cubic-bezier(.3, 1.8, .5, 1); }
  .btn:hover:not([disabled]) { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
  .btn:active:not([disabled]) { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); transition-duration: .05s; }
}

/* Nav */
.nav { display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.logo { text-transform: uppercase; font-family: var(--display); font-size: 26px; line-height: 1; text-decoration: none; padding-top: 4px; margin-right: auto; }
.nav-links { display: flex; gap: 24px; }
.nav a:not(.btn):not(.logo) { font-weight: 700; text-decoration: none; padding-block: 11px; }
.nav a:not(.btn):not(.logo):hover { text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .nav { gap: 14px; }
  .nav-links { display: none; }
  .logo { font-size: 22px; }
}

/* Drawn lines */
.art { overflow: visible; }
.art * { stroke-linecap: round; stroke-linejoin: round; }
.art text { font-family: var(--display); fill: var(--ink); stroke: none; text-transform: uppercase; }
.art text.on-ink { fill: var(--bg); }
.art text.on-spot { fill: var(--on-spot); }
.wob { filter: url(#wobble); }
.boil { filter: url(#boil); }
.l { fill: none; stroke: var(--ink); stroke-width: 4; }
.t { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.d { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-dasharray: 2 12; }
.p { fill: var(--surface); stroke: var(--ink); stroke-width: 4; }
.b { fill: var(--bg); stroke: var(--ink); stroke-width: 4; }
.g { fill: var(--surface-2); stroke: var(--ink); stroke-width: 4; }
.k { fill: var(--ink); stroke: var(--ink); stroke-width: 4; }
.kf { fill: var(--ink); }
.y { fill: var(--spot); stroke: var(--ink); stroke-width: 4; }
.hl { fill: none; stroke: var(--spot); stroke-width: 15; stroke-linecap: butt !important; }
.ol { fill: none; stroke: var(--on-spot); stroke-width: 2.5; }

@media (prefers-reduced-motion: no-preference) {
  .hop { animation: hop 1.1s cubic-bezier(.4, 0, .4, 1) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  .hop-2 { animation-delay: -.45s; }
  @keyframes hop {
    0%, 100% { transform: translateY(0) rotate(-2deg) scaleY(1); }
    50% { transform: translateY(-12px) rotate(2deg) scaleY(1.02); }
  }
  .sway { animation: sway 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
  @keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
  .bob { animation: bob 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
  /* Things wobble in. Opacity stays at 1 so content is always readable. */
  .in { transform: translateY(26px) rotate(-1.5deg); }
  .in.seen { transform: none; transition: transform .8s cubic-bezier(.25, 1.7, .45, 1); }
}

/* Hero */
.hero { text-align: center; padding-top: clamp(24px, 5vw, 56px); overflow: clip; }
.hero h1 { font-size: clamp(72px, 20vw, 120px); }
.hero-line { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin-top: 12px; text-wrap: balance; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
.hero-cta small { font-size: 16px; font-weight: 700; color: var(--text-2); }
.hero-art { width: 100%; max-width: 1320px; margin: 32px auto 0; padding-inline: 20px; }
@media (min-width: 761px) { .hero h1 { font-size: 120px; } }
@media (max-width: 760px) {
  .hero-art { width: 132%; max-width: none; margin-left: -16%; padding: 0; }
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }

/* How it works */
.step {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center;
  gap: clamp(24px, 6vw, 88px); margin-top: clamp(40px, 6vw, 72px);
}
.step:nth-of-type(even) .step-art { order: 2; }
.step-art { width: 100%; max-width: 520px; justify-self: center; }
.step-n { font-family: var(--display); font-size: clamp(72px, 10vw, 120px); line-height: .9; }
.step p { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; line-height: 1.22; letter-spacing: -.01em; max-width: 19em; margin-top: 8px; }
@media (max-width: 760px) {
  .step { grid-template-columns: 1fr; }
  .step:nth-of-type(even) .step-art { order: 0; }
}

/* Pricing */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.stack-wrap { display: grid; justify-items: center; gap: 20px; }
.stack { width: 100%; max-width: 420px; }
.stack-ctl { display: flex; align-items: center; gap: 20px; }
.stack-n { font-weight: 800; font-size: 19px; min-width: 7em; text-align: center; }
.price-list { margin-top: 24px; font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; display: grid; gap: 4px; }
.price-now { margin-top: 28px; font-size: 19px; font-weight: 700; color: var(--text-2); }
.price-total { font-family: var(--display); font-size: clamp(88px, 12vw, 136px); line-height: 1; padding-top: 8px; }
.price .btn { margin-top: 20px; }
@media (max-width: 760px) {
  .price { grid-template-columns: 1fr; }
  .price-text { order: -1; }
  .stack { max-width: 320px; }
}
.book-new { transform-box: fill-box; transform-origin: center bottom; }
@media (prefers-reduced-motion: no-preference) {
  .book-new { animation: drop .55s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes drop { from { transform: translateY(-90px) rotate(-5deg); } to { transform: none; } }
}

/* Questions */
.faq-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.faq-art { width: clamp(90px, 14vw, 150px); flex: none; }
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(32px, 6vw, 80px); margin-top: 48px; }
.faq h3 { font-size: 21px; font-weight: 800; line-height: 1.25; }
.faq p { margin-top: 6px; color: var(--text-2); }
.faq a { font-weight: 700; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.foot { background: var(--ink); color: var(--bg); margin-top: 40px; padding-block: 56px 32px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot .logo { color: var(--bg); font-size: 44px; margin: 0; }
.foot .btn { border-color: var(--bg); box-shadow: 4px 4px 0 var(--bg); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 32px; }
.foot-links a { font-weight: 700; text-decoration: none; padding-block: 11px; }
.foot-links a:hover { text-decoration: underline; }
.foot :focus-visible { outline-color: var(--bg); }
.foot-note { margin-top: 16px; font-size: 14px; opacity: .75; }

/* Order page and login */
.page-title { font-size: clamp(52px, 9vw, 92px); }
.order-title { margin-top: 16px; }
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 7vw, 96px); align-items: start; padding-block: 0 96px; }
.order-side { position: sticky; top: 32px; display: grid; gap: 8px; margin-top: 48px; }
.order-side .stack { max-width: 400px; justify-self: center; }
.fs { border: 0; padding: 0; margin: 48px 0 0; min-width: 0; }
.field > label.btn { display: inline-flex; font-weight: 800; }
.fs legend, .fs h2 { padding: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.help { color: var(--text-2); margin-top: 4px; }
.field { margin-top: 20px; }
.field > label, .group-label { display: block; font-weight: 800; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--text-2); }
input[type="text"], input[type="email"], input[type="date"], textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px;
  background: var(--surface-2); color: var(--text); font: 400 17px/1.4 var(--body);
}
input::placeholder, textarea::placeholder { color: var(--text-2); }
textarea { min-height: 112px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-radius: 14px; }
.row { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.row input { flex: 1; min-width: 0; }
.row-x {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text);
  font: 800 22px/1 var(--body); cursor: pointer;
}
.row-x:hover { background: var(--surface-2); }
.row-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.total { font-weight: 800; font-size: 19px; }
.total b { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; margin-left: 8px; vertical-align: -5px; }
.files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 4px 4px 4px 16px; }
.files span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.choice span {
  display: flex; align-items: center; min-height: 46px; padding: 8px 20px; border-radius: 999px;
  border: 2.5px solid var(--ink); background: var(--surface); font-weight: 800;
}
.choice input:checked + span { background: var(--spot); color: var(--on-spot); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.tick { display: flex; gap: 14px; margin-top: 14px; align-items: flex-start; cursor: pointer; padding-block: 4px; }
.tick input {
  appearance: none; flex: none; width: 28px; height: 28px; margin: 0; border: 2.5px solid var(--ink); border-radius: 8px;
  background: var(--surface); cursor: pointer; display: grid; place-items: center;
}
.tick input:checked { background: var(--spot); }
.tick input:checked::after { content: ""; width: 7px; height: 13px; border: solid var(--on-spot); border-width: 0 3px 3px 0; transform: rotate(42deg) translate(-1px, -1px); }
.pay { margin-top: 36px; }
.pay .btn { width: 100%; }
.pay p { margin-top: 16px; color: var(--text-2); font-size: 15px; text-align: center; }
.err { color: var(--bad); font-weight: 700; margin-top: 8px; }
.err:empty { display: none; }
.note { background: var(--surface-2); border-radius: 20px; padding: 24px; margin-top: 24px; font-weight: 700; }
.note a { font-weight: 800; }
@media (max-width: 860px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .order-side { position: static; order: -1; margin-top: 24px; }
  .order-side .stack { max-width: 260px; }
  .fs:first-of-type { margin-top: 24px; }
}

.login { min-height: 76vh; display: grid; place-content: center; justify-items: center; text-align: center; padding-block: 24px 96px; }
.login-art { width: min(300px, 70vw); }
.login h1 { margin-top: 16px; }
.login form { width: min(400px, calc(100vw - 40px)); text-align: left; margin-top: 8px; }
.login .btn { width: 100%; margin-top: 20px; }
.login-help { color: var(--text-2); font-size: 15px; margin-top: 16px; text-align: center; }

/* Terms, privacy, refunds, imprint */
.legal { padding-block: 16px 96px; }
.legal > *:not(.page-title) { max-width: 42em; }
.legal h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin-top: 40px; }
.legal p { margin-top: 10px; }
.legal ul { margin: 10px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) { font-weight: 700; }
.legal-date { color: var(--text-2); margin-top: 16px !important; }
.legal-lead { font-size: 22px; font-weight: 700; margin-top: 16px !important; }
