/* ============================================================
   Pretzel Search – landing page
   Palette: Salt Cream #F5EAD6 · Teal #20807A · Mustard #E0A32E
            Tomato #D0512C · Pretzel Brown #3E2718
   ============================================================ */

:root{
  --cream:#F5EAD6;
  --cream-deep:#EFE1C7;
  --paper:#FBF6EC;
  --teal:#20807A;
  --teal-dark:#175a56;
  --mustard:#E0A32E;
  --tomato:#D0512C;
  --brown:#3E2718;
  --ink-70:rgba(62,39,24,0.72);
  --ink-55:rgba(62,39,24,0.55);
  --line:rgba(62,39,24,0.12);
  --card-line:rgba(62,39,24,0.09);
  --display:'Jost',sans-serif;
  --body:'Hanken Grotesk',system-ui,sans-serif;
  --mono:'IBM Plex Mono',monospace;
}

*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
html,body{ margin:0; padding:0; }
a, button{ -webkit-tap-highlight-color:transparent; }
h1, h2{ text-wrap:balance; }
body{
  background:var(--cream);
  color:var(--brown);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
}
a{ color:var(--teal); text-decoration:none; }
a:hover{ color:var(--teal-dark); }
::selection{ background:var(--mustard); color:var(--brown); }
img{ max-width:100%; height:auto; }

.container{ max-width:1180px; margin:0 auto; padding:0 clamp(18px,4.5vw,28px); }
.container-narrow{ max-width:820px; }

h1,h2,h3{ font-family:var(--display); font-weight:600; color:var(--brown); margin:0; }
/* The headline is three set lines (two <br> in index.html). Its longest line, "The internet's
   most", is 8.11 times the font size wide, and it has to fit the column or the headline runs
   to four or five lines. These sizes keep it inside with room to spare at every width: 10.6vw
   covers phones under 377px, 5.2vw and the 64px cap cover the two-column layout. */
h1{ font-size:min(10.6vw, clamp(40px,5.2vw,64px)); line-height:1.03; letter-spacing:-0.02em; margin-bottom:22px; }
h2{ font-size:clamp(30px,3.6vw,46px); line-height:1.08; letter-spacing:-0.015em; }
h3{ font-size:21px; margin-bottom:10px; }

.microlabel{
  font-family:var(--mono); font-size:11px; letter-spacing:0.18em;
  text-transform:uppercase; color:var(--ink-55);
}
.microlabel-light{ color:rgba(245,234,214,0.62); margin-bottom:16px; }

.fineprint{
  font-family:var(--mono); font-size:12.5px; letter-spacing:0.04em;
  color:var(--ink-55); margin-top:22px;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; white-space:nowrap;
  border-radius:999px; font-family:var(--display); font-weight:600;
  transition:background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor:pointer;
}
.btn-primary{ background:var(--teal); color:var(--paper); }
.btn-primary:hover{ background:var(--teal-dark); color:var(--paper); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--brown); border:1.5px solid rgba(62,39,24,0.26); }
.btn-ghost:hover{ color:var(--brown); border-color:var(--brown); background:rgba(62,39,24,0.04); }
.btn-light{ background:var(--cream); color:var(--teal-dark); }
.btn-light:hover{ background:#fff; color:var(--teal-dark); transform:translateY(-1px); }
.btn-cream{ background:var(--cream); color:#B23E1E; font-size:18px; padding:17px 36px; }
.btn-cream:hover{ background:#fff; color:#B23E1E; transform:translateY(-2px); }
.btn-sm{ padding:11px 21px; font-size:15px; }
.btn-lg{ padding:16px 30px; font-size:17px; }
.btn-block{ width:100%; padding:14px 24px; font-size:16px; margin-top:22px; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(245,234,214,0.82);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(62,39,24,0.10);
  transition:box-shadow .3s ease;
}
.site-header.scrolled{ box-shadow:0 8px 28px -16px rgba(62,39,24,0.35); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:13px; padding-bottom:13px; }
.brand{ display:flex; align-items:center; gap:11px; }
.brand img{ width:38px; height:auto; }
.brand span{ font-family:var(--display); font-weight:600; font-size:23px; letter-spacing:-0.01em; color:var(--brown); }
.brand-light span{ color:var(--cream); font-size:21px; }
.brand-light img{ width:34px; }
.nav-links{ display:flex; align-items:center; gap:30px; font-size:15px; font-weight:500; }
.nav-links a{ color:var(--brown); position:relative; }
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:-4px; height:2px;
  background:var(--teal); transition:right .22s ease;
}
.nav-links a:hover::after{ right:0; }
.nav-actions{ display:flex; align-items:center; gap:16px; }
.nav-login{ font-weight:600; font-size:15px; color:var(--brown); white-space:nowrap; }
@media (max-width:960px){
  .nav-links{ display:none; }
}
/* "Pretzel Search" plus Log in and the button don't fit on one line on a phone, so the name
   stacks into two short lines beside the logo. Without this it wraps anyway, at full size, and
   makes the bar taller. */
@media (max-width:480px){
  .site-header .brand{ gap:9px; }
  .site-header .brand span{ width:min-content; font-size:18px; line-height:0.98; }
}
@media (max-width:380px){
  .nav{ gap:12px; }
  .site-header .brand span{ font-size:17px; }
  .brand img{ width:32px; }
  .nav-actions{ gap:10px; }
  .nav-login{ font-size:14px; }
  .btn-sm{ padding:10px 15px; font-size:14px; }
}
@media (min-width:961px) and (max-width:1080px){
  .nav-links{ gap:20px; font-size:14.5px; }
}

/* ---------- hero ---------- */
.hero{ padding:clamp(56px,7vw,96px) 0 clamp(44px,5vw,72px); overflow-x:clip; }
.hero-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));
  gap:clamp(40px,5vw,72px); align-items:center;
}
.lede{
  font-size:clamp(17px,1.5vw,19px); line-height:1.6; color:var(--ink-70);
  max-width:34em; margin:0 0 32px;
}
.hero-ctas{ display:flex; flex-wrap:wrap; gap:14px; align-items:center; }

.hero-visual{ position:relative; padding-top:70px; }

/* The pretzel. Bigger, and it dances. */
.hero-pretzel{
  position:absolute; top:-46px; right:-40px; width:clamp(150px,21vw,272px);
  z-index:3; display:block;
  filter:drop-shadow(0 22px 26px rgba(62,39,24,0.28));
}
.hero-pretzel img{ display:block; width:100%; height:auto; }
.hero-pretzel img{
  transform-origin:50% 14%;
  animation:pretzel-sway 2.7s ease-in-out infinite;
}
.js .hero-pretzel{ animation:fadein .6s .45s both; }
/* Nudge: pointing at the pretzel gives it a push. It wobbles and settles, like something
   hanging from a hook. The wobble uses the separate `rotate` and `translate` properties, so
   it adds to the sway (which uses `transform`) and the sway never restarts. It begins and
   ends at zero, so there is no snap on the way in; main.js adds the class and removes it
   only when the wobble has finished, so there is no snap on the way out either. */
.hero-pretzel.nudged img{
  animation:pretzel-sway 2.7s ease-in-out infinite, pretzel-nudge 1.2s ease-in-out;
}
@keyframes pretzel-sway{
  0%,100%{ transform:rotate(-15deg) translateX(-12px); }
  50%    { transform:rotate(3deg) translateX(14px); }
}
@keyframes pretzel-nudge{
  0%  { rotate:0deg;  translate:0 0; }
  16% { rotate:9deg;  translate:0 -6px; }
  36% { rotate:-6deg; translate:0 0; }
  56% { rotate:4deg;  translate:0 -2px; }
  76% { rotate:-2deg; translate:0 0; }
  100%{ rotate:0deg;  translate:0 0; }
}
@media (min-width:841px) and (max-width:1260px){
  .hero-pretzel{ right:-6px; width:clamp(150px,19vw,240px); }
}
@media (max-width:840px){
  .hero-visual{ padding-top:clamp(72px,24vw,96px); }
  .hero-pretzel{ right:-8px; top:-10px; width:clamp(150px,44vw,210px); }
}

.score-card{
  position:relative; z-index:2; background:var(--paper);
  border:1px solid rgba(62,39,24,0.10); border-radius:22px;
  box-shadow:0 30px 70px -38px rgba(62,39,24,0.55);
  padding:26px 28px 28px;
}
.score-card-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:6px; }
.score-card-name{
  font-family:var(--display); font-weight:600; font-size:18px; margin-top:3px;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.live-pill{
  display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px;
  background:rgba(32,128,122,0.12); color:var(--teal-dark);
  font-family:var(--mono); font-size:11px; letter-spacing:0.06em;
}
.score-card-body{ display:flex; align-items:center; gap:20px; padding:6px 0 14px; flex-wrap:wrap; }
.score-card-gauge{ width:150px; height:150px; flex:0 0 auto; }
.score-card-metrics{ flex:1; min-width:150px; }
.metric-row{ display:flex; flex-direction:column; gap:6px; margin-bottom:13px; }
.metric-row:last-child{ margin-bottom:0; }
.metric-top{ display:flex; justify-content:space-between; align-items:baseline; }
.metric-top b{ font-size:13px; font-weight:500; }
.metric-top span{ font-family:var(--mono); font-size:11.5px; color:var(--ink-55); }
.metric-bar{ height:8px; border-radius:99px; background:rgba(62,39,24,0.08); overflow:hidden; }
.metric-fill{ height:100%; border-radius:99px; background:var(--teal); transition:width .3s ease; }

.next-tip{
  display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-radius:14px;
  background:rgba(224,163,46,0.14); border:1px solid rgba(224,163,46,0.35);
  font-size:14.5px; line-height:1.45;
}
.next-tip-tag{
  font-family:var(--mono); font-size:10px; font-weight:600; letter-spacing:0.14em;
  color:#a9741a; padding-top:2px;
}

/* ---------- trust strip ---------- */
.trust{ padding:8px 0 clamp(48px,6vw,72px); }
.trust-strip{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding:26px 0; display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:22px;
}
.trust-strip .microlabel{ text-wrap:balance; }  /* two even lines on phones, not one word left over */
.trust-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.trust-chips span{
  font-family:var(--display); font-weight:500; font-size:15px;
  padding:7px 15px; border-radius:999px; border:1px solid rgba(62,39,24,0.16);
}

/* ---------- sections ---------- */
.section{ padding:clamp(64px,8vw,110px) 0; scroll-margin-top:80px; }
.section-flush-top{ padding-top:clamp(30px,4vw,50px); }
.section-alt{ background:var(--cream-deep); }
.section-teal{ background:var(--teal); color:var(--cream); padding:clamp(70px,9vw,120px) 0; }
.section-teal h2{ color:var(--cream); }
.section-head{ max-width:640px; margin-bottom:clamp(40px,5vw,60px); }
/* Spans the whole content width, and lets the heading fill its lines instead of balancing them
   into short ones ("pretty" still keeps a lone word off the last line) (the plans heading, Steve 2026-11-16). */
.section-head-wide{ max-width:none; }
.section-head-wide h2{ text-wrap:pretty; }
.section-sub{ font-size:17px; line-height:1.6; color:var(--ink-70); margin:18px 0 0; }
.section-lede{
  font-size:17px; line-height:1.62; color:rgba(245,234,214,0.82);
  max-width:36em; margin:20px 0 28px;
}

/* ---------- how it works ---------- */
/* Steps on the left as three colour bars, the explainer video on the right and larger. From
   1040px down the video takes the full width with the steps three across under it; at 840px
   and below the video stands alone and the steps are hidden. */
.how{
  display:grid; grid-template-columns:minmax(0,0.58fr) minmax(0,1fr);
  gap:clamp(32px,4.5vw,64px); align-items:center;
}
.how .steps{ grid-column:1; grid-row:1; }
.how .explainer{ grid-column:2; grid-row:1; }
.explainer{
  position:relative; margin:0;
  background:var(--paper); border:1px solid rgba(62,39,24,0.10); border-radius:22px;
  box-shadow:0 30px 60px -34px rgba(62,39,24,0.45), 0 2px 6px rgba(62,39,24,0.05);
  overflow:hidden;
}
.explainer video{ display:block; width:100%; height:auto; aspect-ratio:16/9; background:var(--cream-deep); }
.explainer-play{
  position:absolute; left:20px; bottom:20px; border:0; padding:14px 26px; font-size:17px;
  box-shadow:0 8px 18px -10px rgba(23,90,86,0.7);
}
.explainer-play[hidden]{ display:none; }
.steps{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(20px,2.2vw,28px);
}
.step-bar{
  display:flex; align-items:center; gap:14px;
  min-height:40px; padding:8px 16px; margin:0 0 11px; border-radius:10px;
  font-size:16.5px; line-height:1.2;
}
.step-n{ flex:0 0 1ch; font-family:var(--mono); font-size:14px; }
.step-bar-mustard{ background:var(--mustard); color:var(--brown); }
.step-bar-teal{ background:var(--teal); color:var(--paper); }
.step-bar-tomato{ background:var(--tomato); color:var(--paper); }
.steps p{
  font-size:15.5px; line-height:1.55; color:var(--ink-70); margin:0;
  padding:0 8px 0 calc(16px + 1ch + 14px);  /* lines up under the step's title */
}
/* The video is centred on the steps column, but that column's box ends a few pixels below the
   last line of text (the line spacing under the letters), which left the video sitting low by
   eye. Pulling that spacing in makes the column end where its text ends (Steve, 2026-11-16). */
@media (min-width:1041px){
  .how .steps li:last-child p{ margin-bottom:-0.5em; }
}
@media (max-width:1040px){
  .how{ grid-template-columns:minmax(0,1fr); }
  .how .explainer{ grid-column:1; grid-row:1; }
  .how .steps{ grid-column:1; grid-row:2; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; }
  .step-bar{ padding:8px 14px; gap:11px; font-size:16px; }
  .steps p{ padding:0 4px 0 14px; }
}
@media (max-width:840px){
  .how .steps{ display:none; }
  .explainer{ border-radius:18px; }
  .explainer-play{ left:12px; bottom:12px; padding:9px 17px; font-size:14.5px; gap:8px; }
}

/* ---------- feature cards ---------- */
.feature-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:20px;
}
.card{
  background:var(--paper); border:1px solid var(--card-line);
  border-radius:18px; padding:28px 26px; margin:0;
  transition:transform .22s ease, box-shadow .22s ease;
}
.feature-grid .card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 44px -28px rgba(62,39,24,0.45);
}
.card h3{ font-size:20px; }
.card p{ font-size:15.5px; line-height:1.55; color:var(--ink-70); margin:0; }
.feature-icon{
  width:52px; height:52px; border-radius:14px;
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.icon-teal{ background:var(--teal); }
.icon-mustard{ background:var(--mustard); }
.icon-tomato{ background:var(--tomato); }

/* ---------- score section ---------- */
.score-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap:clamp(44px,5vw,72px); align-items:center;
}
.score-demo{ display:flex; flex-direction:column; align-items:center; }
.score-demo-gauge{ width:min(320px,80vw); aspect-ratio:1; margin-bottom:8px; }
.factor-chips{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; max-width:440px; }
.chip{
  display:inline-flex; align-items:center; gap:9px; cursor:pointer;
  padding:10px 15px; border-radius:999px; font-family:var(--body);
  font-size:14px; font-weight:600; line-height:1; transition:all .18s ease;
  border:1.5px solid rgba(245,234,214,0.25); background:transparent;
  color:var(--cream); -webkit-tap-highlight-color:transparent;
}
.chip:hover{ transform:translateY(-1px); }
.chip.on{ border-color:rgba(245,234,214,0.85); background:rgba(245,234,214,0.16); }
.chip .dot{
  width:13px; height:13px; border-radius:99px; flex:0 0 auto; box-sizing:border-box;
  border:2px solid rgba(245,234,214,0.45); background:transparent;
  transition:all .18s ease;
}
.chip.on .dot{ background:var(--mustard); border-color:var(--mustard); }
.chip .pts{ font-family:var(--mono); font-size:11.5px; opacity:0.7; }
.dot-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.dot-list li{ display:flex; align-items:center; gap:14px; font-size:16px; color:var(--cream); }
.dot-list li::before{
  content:''; width:8px; height:8px; border-radius:99px; background:var(--mustard); flex:0 0 auto;
}
.score-cta{ margin-top:32px; align-self:flex-start; }
.feature-grid-3{ grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }

/* ---------- plans ---------- */
/* Three plans: all three across, or one per row. Never two and one. */
.plans-grid{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(18px,2vw,24px); align-items:stretch;
}
@media (max-width:1040px){
  .plans-grid{ grid-template-columns:minmax(0,1fr); max-width:560px; margin:0 auto; gap:28px; }
}
.plan-card{
  position:relative; background:var(--paper); border:1px solid var(--card-line);
  border-radius:22px; padding:32px 30px;
  display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 54px -34px rgba(62,39,24,0.5);
}
/* Pro isn't on sale yet (Steve, 2026-11-18): a dashed outline instead of a card, no lift on
   hover, everything inside greyed out except the "Coming soon" badge and the "Join the Waitlist"
   button. Its features are plain rows that don't open (Steve, 2026-11-27); their descriptions
   are kept in a comment in index.html. */
.plan-card-soon{ background:transparent; border:1.5px dashed rgba(62,39,24,0.3); }
.plan-card-soon:hover{ transform:none; box-shadow:none; }
.plan-card-soon > :not(.plan-flag, .plan-waitlist){ filter:grayscale(1); opacity:0.62; }
.plan-flag{
  position:absolute; top:-13px; left:30px;
  background:var(--mustard); color:var(--brown);
  font-family:var(--mono); font-size:10.5px; font-weight:600; letter-spacing:0.12em;
  text-transform:uppercase; padding:5px 12px; border-radius:999px;
}
.plan-flag-soon{ background:var(--cream-deep); color:var(--brown); box-shadow:inset 0 0 0 1px rgba(62,39,24,0.22); }
.plan-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; }  /* name and price share a baseline */
.plan-name{ font-family:var(--display); font-weight:600; font-size:30px; letter-spacing:-0.01em; }
.plan-price{ text-align:right; white-space:nowrap; }
.plan-amount{ font-family:var(--mono); font-weight:600; font-size:26px; }
.plan-per{ font-family:var(--mono); font-size:13px; color:var(--ink-55); }
.plan-blurb{ font-size:15.5px; line-height:1.55; color:var(--ink-70); margin:12px 0 20px; }
.plan-features{ display:flex; flex-direction:column; flex:1; }
.plan-feature{ border-top:1px solid var(--line); }
.plan-feature-static{
  display:flex; align-items:center; gap:11px;
  padding:13px 2px; font-family:var(--display); font-weight:600; font-size:15.5px;
  color:var(--ink-70);
}
.tick{ width:19px; height:19px; border-radius:99px; flex:0 0 auto; position:relative; }
.tick::after{
  content:''; position:absolute; left:5px; top:4px; width:7px; height:4.5px;
  border-left:2px solid; border-bottom:2px solid; transform:rotate(-45deg);
}
.tick-teal{ background:rgba(32,128,122,0.16); } .tick-teal::after{ color:var(--teal-dark); }
.tick-mustard{ background:rgba(224,163,46,0.25); } .tick-mustard::after{ color:#8a5f14; }
.tick-tomato{ background:rgba(208,81,44,0.16); } .tick-tomato::after{ color:#9c3a1d; }

/* ---------- accordions (plans + FAQ) ---------- */
.acc-toggle{
  width:100%; display:flex; align-items:center; gap:11px; text-align:left;
  background:none; border:none; padding:13px 2px; cursor:pointer;
  font-family:var(--display); font-weight:600; font-size:15.5px; color:var(--brown);
}
.acc-mark{
  margin-left:auto; font-family:var(--mono); font-size:19px; line-height:1;
  color:var(--teal); flex:0 0 auto;
  transition:transform .3s cubic-bezier(.4,0,.2,1);
}
.acc.open .acc-mark{ transform:rotate(45deg); }
.acc-panel{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .34s cubic-bezier(.4,0,.2,1);
}
.acc.open .acc-panel{ grid-template-rows:1fr; }
.acc-inner{
  overflow:hidden; min-height:0;
  font-size:14.5px; line-height:1.58; color:var(--ink-70);
  opacity:0; transform:translateY(-4px);
  transition:opacity .26s ease, transform .3s ease, padding-bottom .34s cubic-bezier(.4,0,.2,1);
}
.acc.open .acc-inner{ opacity:1; transform:none; }
.plan-feature .acc-inner{ padding:0 2px 0 32px; }
.plan-feature.open .acc-inner{ padding-bottom:14px; }

/* FAQ flavor: larger type, thicker rows */
.faq-item .acc-toggle{ font-size:19px; padding:22px 2px; justify-content:space-between; gap:20px; }
.faq-item .acc-mark{ font-size:22px; margin-left:0; }
.faq-item{ border-top:1px solid rgba(62,39,24,0.16); }
.faq-list .faq-item:last-child{ border-bottom:1px solid rgba(62,39,24,0.16); }
.faq-item .acc-inner{ padding:0 2px; font-size:16px; line-height:1.6; }
.faq-item.open .acc-inner{ padding-bottom:24px; }
.acc-inner a{ text-decoration:underline; text-decoration-color:rgba(32,128,122,0.35); text-underline-offset:3px; }
.acc-inner a:hover{ text-decoration-color:currentColor; }

/* ---------- final CTA ---------- */
.cta-final{
  scroll-margin-top:80px; padding:0;
  background:var(--tomato); color:var(--cream);
  overflow:hidden;
}
.cta-grid{
  display:grid; grid-template-columns:1.15fr .85fr;
  gap:clamp(24px,4vw,64px); align-items:center;
}
.cta-copy{
  padding:clamp(72px,9vw,120px) 0;
  display:flex; flex-direction:column; align-items:flex-start;
}
.cta-person{ display:block; justify-self:center; align-self:center; line-height:0; padding:40px 0; }
.cta-person img{
  display:block; width:auto; max-height:min(480px,48vw);
}
@media (max-width:840px){
  .cta-grid{ grid-template-columns:1fr; }
  .cta-copy{ align-items:center; text-align:center; padding-bottom:clamp(72px,9vw,120px); }
  .cta-person{ display:none; }
  .cta-pretzel{ width:104px; }
}
.cta-pretzel{ width:84px; margin-bottom:24px; display:block; }
.cta-pretzel img{ display:block; transform:rotate(-7deg); transform-origin:50% 14%; }
.cta-pretzel.nudged img{ animation:pretzel-nudge 1.2s ease-in-out; }
.cta-final h2{ color:var(--cream); font-size:clamp(32px,4.2vw,54px); line-height:1.05; letter-spacing:-0.02em; margin-bottom:18px; }
@media (max-width:360px){ .cta-final h2{ font-size:28px; } }  /* keeps "Get on with your day" on one line */
.cta-final p{
  font-size:clamp(17px,1.6vw,19px); line-height:1.55; color:rgba(245,234,214,0.9);
  max-width:32em; margin:0 0 32px; text-wrap:balance;  /* no lone word on the second line */
}

/* ---------- footer ---------- */
.footer{ background:var(--brown); color:var(--cream); padding:clamp(52px,6vw,76px) 0 40px; }
/* Brand on the left, three links on the right with no column headings (Steve, 2026-11-27:
   just Methodology, Contact Us and Privacy Policy). The links drop below the brand when the
   two don't fit side by side. */
.footer-grid{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start;
  gap:32px 40px; padding-bottom:44px; border-bottom:1px solid rgba(245,234,214,0.16);
}
.footer-brand{ min-width:200px; }
.footer-brand .brand{ margin-bottom:14px; }
.footer-brand p{ font-size:14.5px; line-height:1.55; color:rgba(245,234,214,0.7); max-width:26em; margin:0; }
.footer-links{ display:flex; flex-direction:column; gap:11px; font-size:15px; }
.footer-links a{ color:var(--cream); }
.footer-links a:hover{ color:var(--mustard); }
.footer-bottom{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center;
  padding-top:24px; font-size:13.5px; color:rgba(245,234,214,0.6);
}
.footer-joke{ font-family:var(--mono); letter-spacing:0.04em; }

/* ---------- methodology page (/methodology) ---------- */
/* The research behind the Pretzel Score as an annotated works-cited list. Sources are grouped
   by the part of the score they back; each group opens with a colour bar, the same device as
   the steps in "How it Works". Citations are MLA 9, set with a hanging indent. A sticky list of
   sources sits on the left on wide screens and is hidden below 961px. */
.method-hero{ padding:clamp(56px,7vw,96px) 0 clamp(40px,5vw,64px); }
.method-hero .lede{ max-width:36em; margin:0; }

.method{ padding:0 0 clamp(72px,9vw,120px); }
.method-grid{
  display:grid; grid-template-columns:230px minmax(0,1fr);
  gap:clamp(40px,5vw,72px); align-items:start;
}
.method-toc{ position:sticky; top:100px; }
.method-toc-title{ font-family:var(--display); font-weight:600; font-size:17px; margin:0 0 14px; }
.method-toc ol{ list-style:none; margin:0; padding:0; }
.method-toc > ol > li + li{ margin-top:16px; }
.method-toc-group{
  display:flex; align-items:center; gap:10px;
  font-family:var(--display); font-weight:600; font-size:15px; color:var(--brown);
}
.method-toc-group::before{ content:''; width:10px; height:10px; border-radius:3px; flex:0 0 auto; background:var(--swatch); }
.method-toc ol ol{ margin-top:6px; padding-left:20px; display:grid; gap:5px; }
.method-toc ol ol a{ font-size:14.5px; color:var(--ink-70); }
.method-toc a:hover{ color:var(--teal-dark); }
@media (max-width:960px){
  .method-grid{ grid-template-columns:minmax(0,1fr); }
  .method-toc{ display:none; }
}

.method-group{ scroll-margin-top:90px; }
.method-group + .method-group{ margin-top:clamp(56px,6vw,84px); }
.group-bar{
  display:flex; align-items:center; min-height:50px; padding:10px 20px; margin:0 0 14px;
  border-radius:12px; font-size:clamp(20px,2.1vw,24px); line-height:1.2; letter-spacing:-0.005em;
}
.group-bar-brown{ background:var(--brown); color:var(--cream); }
.group-intro{
  font-size:16.5px; line-height:1.6; color:var(--ink-70);
  max-width:40em; margin:0 0 26px; padding:0 20px;  /* lines up under the bar's title */
  text-wrap:balance;  /* two even lines, not "on it" left over */
}

.source{
  background:var(--paper); border:1px solid var(--card-line); border-radius:18px;
  padding:clamp(22px,2.6vw,32px) clamp(20px,2.8vw,34px);
  scroll-margin-top:90px;
}
.source + .source{ margin-top:18px; }
/* MLA: second and later lines indent half an inch; 2em is that at this size. */
.cite{
  margin:0; padding-left:2em; text-indent:-2em;
  font-size:16.5px; line-height:1.62; color:var(--brown); text-wrap:pretty;
}
.cite a{ overflow-wrap:anywhere; text-decoration:underline; text-decoration-color:rgba(32,128,122,0.35); text-underline-offset:3px; }
.cite a:hover{ text-decoration-color:currentColor; }
.cite + .cite{ margin-top:12px; }  /* two works by one author; MLA puts "---." for the repeated name */
.source-more{ margin:20px 0 0; font-size:14.5px; line-height:1.55; color:var(--ink-55); }
.source-more a{ font-weight:600; }
.source-note{ margin-top:22px; padding-top:22px; border-top:1px solid var(--line); }
.source-note h3{ font-size:18px; margin-bottom:14px; }
.know{
  display:grid; grid-template-columns:9.2em minmax(0,1fr);
  column-gap:22px; row-gap:14px; margin:0;
}
.know dt{ font-family:var(--display); font-weight:600; font-size:15px; line-height:1.55; padding-top:1px; }
.know dd{ margin:0; font-size:15.5px; line-height:1.6; color:var(--ink-70); }
.know a{ text-decoration:underline; text-decoration-color:rgba(32,128,122,0.35); text-underline-offset:3px; }
.know a:hover{ text-decoration-color:currentColor; }
@media (max-width:600px){
  .group-intro{ padding:0 4px; }
  .know{ grid-template-columns:minmax(0,1fr); row-gap:4px; }
  .know dd + dt{ margin-top:12px; }
  .cite{ font-size:16px; }
}

/* ---------- contact page (/contact) ---------- */
/* Copy on the left, the form on the right in a card like the hero's score card, with the
   small pretzel perched on its corner (it wobbles like the closing section's: main.js handles
   .cta-pretzel). Below 961px it stacks: copy, form, then the two notes. The form is plain HTML
   posted to worker.js; the topic pills are radio buttons. */
.contact{ padding:clamp(56px,7vw,96px) 0 clamp(72px,9vw,120px); }
.contact-grid{
  display:grid; grid-template-columns:minmax(0,0.8fr) minmax(0,1fr); grid-template-rows:auto 1fr;
  column-gap:clamp(40px,5.5vw,80px); row-gap:0; align-items:start;
}
.contact-copy{ grid-column:1; grid-row:1; }
.contact-copy .lede{ margin-bottom:30px; }
.contact-card{ grid-column:2; grid-row:1 / span 2; }
.contact-notes{
  grid-column:1; grid-row:2;
  list-style:none; margin:0; padding:24px 0 0; border-top:1px solid var(--line);
  display:grid; gap:12px; max-width:30em;
}
.contact-notes li{ font-size:15.5px; line-height:1.55; color:var(--ink-70); }
.contact-notes a, .legal a{
  text-decoration:underline; text-decoration-color:rgba(32,128,122,0.35); text-underline-offset:3px;
}
.contact-notes a:hover, .legal a:hover{ text-decoration-color:currentColor; }
@media (max-width:960px){
  .contact-grid{ grid-template-columns:minmax(0,1fr); grid-template-rows:none; row-gap:48px; }  /* room for the pretzel above the card */
  .contact-copy, .contact-card, .contact-notes{ grid-column:1; grid-row:auto; }
  .contact-copy .lede{ margin-bottom:0; }
}

.contact-card{
  position:relative; background:var(--paper);
  border:1px solid rgba(62,39,24,0.10); border-radius:22px;
  box-shadow:0 30px 70px -38px rgba(62,39,24,0.55);
  padding:clamp(24px,3vw,36px); scroll-margin-top:110px;
}
.contact-card .contact-pretzel{ position:absolute; top:-50px; right:-18px; width:108px; margin:0; }
@media (max-width:600px){
  .contact-card .contact-pretzel{ top:-40px; right:-6px; width:86px; }
}
.contact-form{ display:grid; gap:22px; }
.field-row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:22px; }
.field{ display:grid; gap:8px; min-width:0; }
.field label, .field legend{ font-family:var(--display); font-weight:600; font-size:15.5px; color:var(--brown); }
.field-hint{ margin-left:6px; font-family:var(--body); font-weight:400; font-size:14px; color:var(--ink-55); }
.field input, .field textarea, .notify-row input{
  width:100%; margin:0; font-family:var(--body); font-size:16px; line-height:1.4; color:var(--brown);
  background:var(--cream); border:1.5px solid rgba(62,39,24,0.16); border-radius:12px;
  padding:13px 15px; transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea{ min-height:156px; line-height:1.55; resize:vertical; }
.field input::placeholder, .notify-row input::placeholder{ color:var(--ink-55); }
.field input:hover, .field textarea:hover, .notify-row input:hover{ border-color:rgba(62,39,24,0.32); }
.field input:focus, .field textarea:focus, .notify-row input:focus{
  outline:none; background:var(--paper); border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(32,128,122,0.18);
}
.topic-field{ display:block; border:0; margin:0; padding:0; min-width:0; }
.topic-field legend{ padding:0; margin-bottom:10px; }
.topics{ display:flex; flex-wrap:wrap; gap:9px; }
.topic{ position:relative; cursor:pointer; }
.topic input{ position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; }
.topic span{
  display:inline-flex; align-items:center; padding:9px 15px; border-radius:999px;
  border:1.5px solid rgba(62,39,24,0.16); font-family:var(--display); font-weight:500; font-size:15px;
  color:var(--brown); transition:background .18s ease, border-color .18s ease, color .18s ease;
}
.topic:hover span{ border-color:rgba(62,39,24,0.34); }
.topic input:checked + span{ background:var(--teal); border-color:var(--teal); color:var(--paper); }
.topic input:focus-visible + span{ outline:2px solid var(--teal); outline-offset:2px; }
.hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.contact-send{ justify-self:start; border:0; margin-top:2px; }
/* Turnstile above the button (no height until it needs a tick), the error below it */
.contact-submit{ display:grid; justify-items:start; }
.ts{ width:100%; }
.ts.show{ margin-bottom:16px; }
.form-msg{ margin:14px 0 0; font-size:15px; line-height:1.5; color:#9c3a1d; }
.contact-send:focus-visible{ outline:2px solid var(--teal-dark); outline-offset:3px; }
@media (max-width:600px){
  .contact-send{ justify-self:stretch; }
}

/* ---------- thank-you page (/contact/thanks) ---------- */
/* Where the contact form lands. The man in lederhosen from the closing section stands on the
   footer, giving the thumbs-up. */
.thanks{ padding:clamp(32px,4vw,56px) 0 0; overflow:hidden; }
.thanks-grid{
  display:grid; grid-template-columns:minmax(0,1fr) auto;
  gap:clamp(24px,4vw,56px); align-items:end;
}
.thanks-copy{ align-self:center; padding:clamp(40px,6vw,80px) 0; }
.thanks-person{ display:block; line-height:0; }
.thanks-person img{ display:block; width:auto; height:clamp(340px,40vw,500px); }
@media (max-width:600px){
  .thanks-grid{ grid-template-columns:minmax(0,1fr); gap:8px; }
  .thanks-copy{ padding:24px 0 0; }
  .thanks-person{ justify-self:center; }
  .thanks-person img{ height:300px; }
}

/* ---------- privacy page (/privacy) ---------- */
/* Same frame as the methodology page (.method-hero, .method-grid, the sticky .method-toc),
   with a "short version" card first, then the policy in one readable column. The Google
   section reuses the methodology page's .know list, in a card, so the disclosures Google asks
   for stand out. */
.legal-date{ margin-top:18px; }
.legal-toc > ol{ display:grid; gap:9px; }
.legal-toc > ol > li + li{ margin-top:0; }
.legal-toc a{ font-size:15px; color:var(--ink-70); }
.legal{ max-width:44em; min-width:0; }
.legal > section{ scroll-margin-top:90px; }
.legal > section + section{ margin-top:clamp(40px,4.5vw,56px); }
.legal h2{ font-size:clamp(24px,2.4vw,29px); line-height:1.15; margin-bottom:14px; }
.legal h3{ font-size:18px; margin:26px 0 8px; }
.legal p, .legal li{ font-size:16.5px; line-height:1.65; color:var(--ink-70); }
.legal p{ margin:0 0 14px; }
.legal p:last-child, .legal ul:last-child{ margin-bottom:0; }
.legal ul{ list-style:none; margin:0 0 14px; padding:0; display:grid; gap:8px; }
.legal ul li{ position:relative; padding-left:22px; }
.legal ul li::before{
  content:''; position:absolute; left:4px; top:0.66em;
  width:7px; height:7px; border-radius:50%; background:var(--mustard);
}
.legal strong{ font-weight:600; color:var(--brown); }
.legal code{ font-family:var(--mono); font-size:0.86em; background:var(--cream-deep); padding:2px 6px; border-radius:6px; }

.legal-short{
  background:var(--paper); border:1px solid var(--card-line); border-radius:18px;
  padding:clamp(22px,2.6vw,32px) clamp(20px,2.8vw,34px);
}
.legal-short ul{ gap:12px; margin-bottom:20px; }
/* The tick is positioned, not a flex item: with flex, a link inside the line (the email
   address) became its own column. */
.legal-short ul li{ padding-left:31px; color:var(--brown); }
.legal-short ul li::before{ content:none; }
.legal-short .tick{ position:absolute; left:0; top:4px; }
.legal .legal-short-note{
  margin:0; padding-top:16px; border-top:1px solid var(--line);
  font-size:14.5px; line-height:1.55; color:var(--ink-55);
}
.legal-know{
  margin:18px 0; background:var(--paper); border:1px solid var(--card-line); border-radius:18px;
  padding:clamp(20px,2.6vw,28px) clamp(20px,2.8vw,30px);
}

/* ---------- "Coming soon" dialog (main.js, every [data-notify] button) ---------- */
/* The card from the contact page as a small modal, with the pretzel sitting on its top edge.
   It eases up when it opens (one short move, in answer to the click); the page behind dims. */
.notify{
  width:min(470px, calc(100vw - 32px)); max-width:none; max-height:none;
  padding:0; border:0; overflow:visible;
  background:var(--paper); color:var(--brown); border-radius:22px;
  box-shadow:0 40px 90px -36px rgba(62,39,24,0.75);
}
.notify::backdrop{ background:rgba(62,39,24,0.45); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.notify[open]{ animation:notify-in .28s cubic-bezier(.22,.61,.25,1); }
.notify[open]::backdrop{ animation:notify-dim .28s ease; }
@keyframes notify-in{ from{ opacity:0; transform:translateY(14px) scale(.97); } }
@keyframes notify-dim{ from{ opacity:0; } }
.notify-body{ position:relative; padding:58px clamp(22px,5vw,38px) clamp(24px,4vw,32px); text-align:center; }
.notify .notify-pretzel{ position:absolute; top:-56px; left:50%; width:112px; margin:0 0 0 -56px; }
.notify-close{
  position:absolute; top:14px; right:14px; width:38px; height:38px; border-radius:99px;
  display:flex; align-items:center; justify-content:center;
  border:0; background:transparent; color:var(--ink-55); cursor:pointer;
  transition:background .18s ease, color .18s ease;
}
.notify-close:hover{ background:var(--cream-deep); color:var(--brown); }
.notify-close:focus-visible, .notify-done:focus-visible, .notify-send:focus-visible{ outline:2px solid var(--teal); outline-offset:2px; }
.notify h2{ font-size:clamp(28px,6vw,34px); }
.notify-lede{ margin:10px auto 24px; max-width:24em; font-size:16.5px; line-height:1.55; color:var(--ink-70); overflow-wrap:anywhere; text-wrap:balance; }
.notify-row{ display:flex; gap:10px; text-align:left; }
.notify-row input{ flex:1; min-width:0; }
.notify-send{ border:0; padding:0 22px; font-size:16px; }
.notify-send:disabled{ opacity:0.6; cursor:default; }
.notify-error{ margin:12px 0 0; font-size:14.5px; color:#9c3a1d; }
.notify-form .ts.show{ margin:12px 0 0; }
.notify-fine{ margin:16px 0 0; font-size:13.5px; line-height:1.5; color:var(--ink-55); text-wrap:balance; }
.notify-fine a{ white-space:nowrap; text-decoration:underline; text-decoration-color:rgba(32,128,122,0.35); text-underline-offset:3px; }
.notify-done{ padding:13px 30px; font-size:16px; }
.notify [hidden]{ display:none; }
@media (max-width:420px){
  .notify-row{ flex-direction:column; }
  .notify-send{ padding:14px 22px; }
}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- scroll reveal ---------- */
.reveal{ opacity:1; }
.js .reveal{
  opacity:0; transform:translateY(22px);
  transition:opacity .65s ease var(--reveal-delay,0s), transform .65s cubic-bezier(.22,.61,.25,1) var(--reveal-delay,0s);
}
.js .reveal.in{ opacity:1; transform:none; }

/* ---------- hero entrance ---------- */
@keyframes rise{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:none; }
}
@keyframes fadein{
  from{ opacity:0; }
  to{ opacity:1; }
}
.js .hero-copy > *{ animation:rise .65s cubic-bezier(.22,.61,.25,1) both; }
.js .hero-copy > *:nth-child(1){ animation-delay:.05s; }
.js .hero-copy > *:nth-child(2){ animation-delay:.14s; }
.js .hero-copy > *:nth-child(3){ animation-delay:.23s; }
.js .hero-copy > *:nth-child(4){ animation-delay:.32s; }
.js .hero-copy > *:nth-child(5){ animation-delay:.41s; }
.js .score-card{ animation:rise .7s .25s cubic-bezier(.22,.61,.25,1) both; }
