/* Churnsmith website. Colors and type follow the app. */
:root {
  --ground: #E3E5DF;
  --card: #EEF0EA;
  --ink: #111;
  --muted: #45483f;
  --green: #4ADE80;
  --green-dark: #12964a;
  --pink: #FF3EA5;
  --yellow: #FFB300;
  --orange: #FF6A00;
  --line: #111;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--ground);
  background-image: linear-gradient(rgba(17,17,17,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,17,.06) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--ink);
  font: 18px/1.5 Figtree, system-ui, -apple-system, sans-serif;
  overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', Figtree, system-ui, sans-serif; margin: 0; letter-spacing: -.02em; text-wrap: balance; font-weight: 800; }
p { margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.logo { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.02em; text-decoration: none; }
.logo { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 4px; margin-left: -4px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav .link { display: none; }
@media (min-width: 760px) { .nav .link { display: inline; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); font: 700 17px/1 Figtree, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-pink { background: var(--pink); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-big { min-height: 60px; padding: 0 32px; font-size: 19px; box-shadow: 6px 6px 0 var(--green); }
.btn-green { background: var(--green); color: var(--ink); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding-block: 32px 72px; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr) 520px; padding-block: 48px 96px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 2px solid var(--yellow); border-radius: 999px; padding: 8px 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-dark); }
.hero h1 { font-size: clamp(46px, 8vw, 96px); line-height: .95; }
.lede { font-size: clamp(19px, 2.2vw, 22px); max-width: 34em; color: #2b2d28; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* Signup form */
.signup { display: flex; gap: 8px; max-width: 520px; background: #fff; border: 1px solid var(--ink); border-radius: 999px; padding: 6px; }
.signup input { flex: 1 1 0; min-width: 0; height: 48px; padding: 0 18px; font: 16px Figtree, sans-serif; border: 0; background: transparent; border-radius: 999px; }
.signup input:focus { outline: none; }
.signup:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.signup .btn { min-height: 48px; }
.signup-note { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 480px) {
  .signup { flex-direction: column; border-radius: 24px; }
  .signup .btn { width: 100%; }
}

/* Phones */
.phones { position: relative; height: 620px; max-width: 520px; width: 100%; margin: 0 auto; }
.phone { position: absolute; border: 1px solid var(--ink); border-radius: 34px; overflow: hidden; background: #fff; box-shadow: 10px 12px 0 var(--ink); }
.phone-front { left: 4%; top: 0; width: 58%; transform: rotate(-4deg); z-index: 2; }
.phone-back { left: 40%; top: 40px; width: 54%; transform: rotate(6deg); }
.tag { position: absolute; z-index: 3; padding: 9px 15px; border: 1px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink); white-space: nowrap; font-size: 12px; }
.tag-1 { left: -2%; top: 66%; background: var(--pink); transform: rotate(-7deg); }
.tag-2 { right: 0; bottom: 2%; background: var(--green); transform: rotate(4deg); }
.tag-3 { right: 2%; top: 0; background: var(--orange); transform: rotate(8deg); }
@media (max-width: 600px) {
  .phones { height: 500px; }
  .phone-front { left: 2%; width: 56%; }
  .phone-back { left: 38%; width: 50%; }
  .tag { font-size: 11px; padding: 7px 12px; }
  .tag-1 { left: 0; }
}

/* Ticker */
.ticker { background: var(--ink); color: var(--green); padding-block: 16px; overflow-x: auto; scrollbar-width: none; }
.ticker::-webkit-scrollbar { display: none; }
.ticker .wrap { display: flex; justify-content: space-between; gap: 28px; white-space: nowrap; }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; max-width: 760px; }

/* Cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; } }
.card { border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; background: var(--card); min-width: 0; }
.card h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; }
.card.big { justify-content: flex-end; min-height: 300px; }
.card.big h3 { font-size: clamp(30px, 3.6vw, 40px); }
@media (min-width: 760px) {
  .span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
  .span-4 { grid-column: span 4; } .span-12 { grid-column: span 12; }
}
.c-green { background: var(--green); }
.c-yellow { background: var(--yellow); }
.c-pink { background: var(--pink); }
.c-dark { background: var(--ink); color: #fff; }
.c-dark p { color: #e6e7e2; }
.c-dark .mono { color: var(--green); }
.wide-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.hl { background: var(--green); padding: 2px 9px; border-radius: 999px; font-weight: 700; white-space: nowrap; }

/* Accuracy band */
.band { margin-inline: clamp(0px, 2.5vw, 40px); background: var(--yellow); color: var(--ink); border: 1px solid var(--ink); border-radius: clamp(0px, 3vw, 40px); }
.band-inner { display: grid; gap: 48px; align-items: center; padding-block: clamp(64px, 8vw, 88px); }
@media (min-width: 900px) { .band-inner { grid-template-columns: minmax(0, 1fr) 320px; } }
.band h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1; }
.band p { color: #2b2d28; }
.band .box { background: var(--ground); border: 1px solid var(--ink); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 10px; max-width: 600px; }
.band .box .small { font-size: 15px; color: var(--muted); }
.band .phone-solo { width: 260px; margin: 0 auto; position: relative; transform: rotate(4deg); border: 1px solid var(--ink); border-radius: 34px; overflow: hidden; box-shadow: 10px 12px 0 var(--ink); }

/* Pricing */
.price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.price small { font-size: 20px; letter-spacing: 0; }
.price-alt { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 26px; line-height: 1.1; color: var(--green); }
.badge { position: absolute; right: 24px; top: -18px; background: var(--pink); transform: rotate(5deg); border: 1px solid var(--ink); border-radius: 999px; padding: 8px 14px; box-shadow: 4px 4px 0 var(--ink); font-size: 12px; }
.rel { position: relative; }
.fine { margin-top: 24px; font-size: 16px; color: var(--muted); }

/* Questions */
.faq { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq { grid-template-columns: 300px minmax(0, 1fr); gap: 60px; } }
.faq h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1; }
.qa { border-top: 1px solid var(--ink); padding: 22px 0; display: grid; gap: 8px; }
.qa:last-child { border-bottom: 1px solid var(--ink); }
@media (min-width: 760px) { .qa { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; } }
.qa h3 { font-size: 21px; }

/* Closing */
.closing { margin-inline: clamp(0px, 2.5vw, 40px); background: var(--green); border: 1px solid var(--ink); border-radius: clamp(0px, 3vw, 40px); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(56px, 7vw, 72px); }
.closing h2 { font-size: clamp(36px, 5vw, 64px); line-height: .98; max-width: 720px; }
.closing .btn { box-shadow: 6px 6px 0 var(--pink); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 32px max(32px, env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot nav { display: flex; gap: 24px; }

/* Legal and support pages */
.doc { max-width: 760px; padding-block: 24px 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1; margin: 16px 0 12px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc .note { background: var(--card); border: 1px solid var(--ink); border-radius: 18px; padding: 16px 18px; font-size: 16px; margin: 20px 0; }

@media (prefers-reduced-motion: no-preference) {
  .phone-front, .phone-back { transition: transform .4s ease; }
  .phones:hover .phone-front { transform: rotate(-6deg) translateY(-6px); }
  .phones:hover .phone-back { transform: rotate(8deg) translateY(-4px); }
}
