/* FoamCalc marketing site — palette and type drawn directly from the app's
   own "Rise & Crust" design system (see the app repo's DESIGN.md), not a
   generic template. */

:root {
  --violet: #4A2A63;
  --violet-dark: #3A2050;
  --cyan: #0B7A8C;
  --bg: #F1EEF6;
  --surface: #FFFFFF;
  --surface-alt: #F8F5FB;
  --ink: #211A2A;
  --ink-soft: #655C71;
  --line: #DFD9E8;
  --success: #2E7D4F;
  --warning: #A8720C;
  --max-width: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(26, 16, 41, 0.08);
  --violet-soft: rgba(74, 42, 99, 0.08);
  --cyan-soft: rgba(11, 122, 140, 0.10);
  --on-violet: #FFFFFF;
  --shadow-deep: 0 12px 32px rgba(26, 16, 41, 0.22);
  /* The hero phone's bezel, the same in both themes. */
  --frame: #0e0a16;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161320;
    --surface: #1F1B2B;
    --surface-alt: #241F32;
    --ink: #F1ECF7;
    --ink-soft: #B3A8C2;
    --line: #332C42;
    --violet: #B48FD1;
    --violet-dark: #C9A9DE;
    --cyan: #4FC3D6;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    --violet-soft: rgba(180, 143, 209, 0.14);
    --cyan-soft: rgba(79, 195, 214, 0.14);
    --on-violet: #241537;
    --shadow-deep: 0 12px 32px rgba(0, 0, 0, 0.5);
    --success: #6FBF7F;
    --warning: #E2AC4E;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .display {
  font-family: "Baloo 2", "Rubik", sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

.mono, .stat-number {
  font-family: "Martian Mono", "SFMono-Regular", Consolas, monospace;
}

a {
  color: var(--violet);
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
}

img, svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.9;
}

.wordmark .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.wordmark .mark svg {
  width: 17px;
  height: 17px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--violet);
  color: var(--on-violet) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.92;
  text-decoration: none !important;
}

/* Hero */

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: pretty;
}

.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

.hero .badge-note {
  max-width: 46ch;
  margin: 0 0 0.5rem;
}

.hero .badge-note:last-child {
  margin-bottom: 0;
}

/* The hero's solid button and the quiet link beside it, before launch
   (tool/app_section.py writes them into the hero slot). */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-block;
  background: var(--violet);
  color: var(--on-violet);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
}

.btn:hover, .btn:focus {
  text-decoration: none;
  opacity: 0.92;
}

.btn-quiet {
  display: inline-block;
  color: var(--violet);
  padding: 0.75rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* The proposal with the Price screen in front of it. Widths in px, so the
   pair does not grow with the text size. */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.hero-doc {
  position: absolute;
  left: 0;
  top: 44px;
  width: 76%;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-doc img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual .phone-frame {
  position: relative;
  margin-left: auto;
  width: 184px;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(26, 16, 41, 0.28);
}

.hero-visual .phone-screen-img {
  height: auto;
  border-radius: 21px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

/* Store badges, Apple's and Google's own artwork, unmodified, shown only
   for a store that lists FoamCalc (tool/app_section.py). Both at the same
   VISIBLE height, 56px, at every width (40px until 7 Oct 2026, the
   smallest a badge may be, too small for the hero's main action). Apple's
   SVG is all badge, so 56px of image is 56 by 168 of badge. Google's PNG
   (646 x 250) carries its own clear space, 41px on every side, so the
   badge inside is 564 by 168 of it: 56 / 168 * 250 = 83.33px of image,
   188px of visible badge, and the clear space (41 / 250 of that, 13.67px)
   is taken back with a negative margin, so the visible badge lines up
   with the text beside it and with Apple's. On a narrow phone the two
   wrap onto two lines rather than shrink. */
.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
}

.store-badge-apple img {
  height: 56px;
}

.store-badge-google img {
  height: 83.33px;
  margin: -13.67px;
}

/* In the hero: about 20px from the paragraph above to the badge's visible
   top (the lede's 24px less 4), and 16px from its visible bottom to the
   note under it. */
.hero .badge-row {
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

.badge-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Phone mockup */

.phone-mockup {
  justify-self: center;
  position: relative;
}

.phone-frame {
  width: 260px;
  border-radius: 34px;
  background: var(--frame);
  padding: 10px;
  box-shadow: var(--shadow);
}

.phone-screen-img {
  display: block;
  width: 100%;
  border-radius: 26px;
  overflow: hidden;
}

/* Sections */

section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head h2 {
  font-size: 2rem;
  line-height: 1.15;
  text-wrap: pretty;
}

.section-head .pill {
  margin-bottom: 0.9rem;
}

.section-head-wide {
  max-width: 680px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Section leads beside a picture, rather than centred over it */

.steps-grid h2,
.yield-grid h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0.4em;
  text-wrap: pretty;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}

.yield-grid .section-lead {
  margin-bottom: 1rem;
}

.small-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

/* Pro in one picture: what you see beside what the customer gets */

.two-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.view-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.view-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.view-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.view-caption {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Paper stays white in dark mode. */
.shot-paper {
  background: #FFFFFF;
}

/* A job in seven steps */

.steps-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
}

.step-num {
  font-family: "Martian Mono", monospace;
  font-weight: 700;
  color: var(--violet);
  flex: none;
  width: 1.6rem;
  line-height: 1.6;
  font-size: 1rem;
}

.side-phone {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* A phone screen with no bezel, so an Android capture never sits inside
   something that looks like an iPhone. */
.bare-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-deep);
}

.side-phone figcaption {
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* Three documents from one job. Hover shows the full page in a sheet
   floating over the cards; a click pins it. Below 860px the page opens
   under the card instead (script.js). */

.documents {
  position: relative;
  z-index: 2;
}

.doc-hint {
  font-size: 0.85rem !important;
  margin: 0.5rem 0 0;
}

.doc-hint-touch {
  display: none;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.doc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: zoom-in;
}

.doc-card:hover,
.doc-card:focus-visible,
.doc-card.is-open {
  border-color: var(--violet);
  outline: none;
}

.doc-strip {
  padding: 1.25rem 1.25rem 0;
  background: var(--violet-soft);
}

.doc-crop {
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: var(--shadow);
}

.doc-crop img {
  display: block;
  width: 100%;
  height: auto;
}

.doc-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.doc-body h3 {
  font-size: 1.3rem;
  margin: 0;
}

.doc-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.doc-for {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.doc-zoom {
  display: none;
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 720px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 28px 80px rgba(26, 16, 41, 0.38);
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.doc-zoom img {
  display: none;
  width: 100%;
  height: auto;
}

.documents[data-zoom] .doc-zoom {
  display: block;
}

.documents[data-zoom="proposal"] .doc-zoom [data-doc-full="proposal"],
.documents[data-zoom="order"] .doc-zoom [data-doc-full="order"],
.documents[data-zoom="crew"] .doc-zoom [data-doc-full="crew"] {
  display: block;
}

.doc-inline {
  display: none;
}

/* The yield, supporting */

.yield-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-row .stat-card {
  padding: 1.25rem 1rem;
}

.stat-row .stat-number {
  font-size: 1.45rem;
  white-space: nowrap;
  margin-bottom: 0.3rem;
}

.stat-row .stat-label {
  font-size: 0.88rem;
}

/* Tiles: the rest of Pro, and the trust block */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.tile strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.tile-grid-surface .tile {
  background: var(--surface);
}

#tools .section-head,
#trust .section-head {
  margin-bottom: 2rem;
}

#trust .not-in-app {
  margin-top: 1.5rem;
}

/* Problem / solution */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--violet);
  display: block;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* Feature grid */

.tier-toggle-label {
  text-align: center;
  margin-bottom: 2rem;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pill-free {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.pill-pro {
  background: var(--violet-soft);
  color: var(--violet);
}

.feature-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.feature-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.feature-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-col h3 + .feature-list {
  margin-top: 0;
}

.feature-col-free {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 1.5rem;
  align-items: start;
}

.free-screen {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
  justify-self: center;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.feature-list li:first-child {
  border-top: none;
}

.feature-list .check {
  color: var(--success);
  flex: none;
  font-weight: 700;
  line-height: 1.5;
}

.feature-text {
  flex: 1;
}

.feature-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.5;
}

.feature-desc {
  display: block;
  font-size: 0.88rem;
  margin-top: 0.1rem;
}

.not-in-app {
  margin-top: 2rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.not-in-app strong {
  color: var(--ink);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}

.price-card .plan-name {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.price-card .plan-price {
  font-family: "Martian Mono", monospace;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--ink);
}

.price-card .plan-period {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.price-card .plan-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0;
}

#pricing .price-card {
  background: var(--bg);
}

.price-card-featured {
  border: 2px solid var(--violet);
}

.pill-solid {
  background: var(--violet);
  color: var(--on-violet);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.pricing-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 1.75rem auto 0;
  max-width: 640px;
}

/* CTA band */

.cta-band {
  background: var(--violet);
  color: var(--on-violet);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 0 1.5rem;
}

.cta-band h2 {
  color: inherit;
  margin-bottom: 0.4em;
}

.cta-band .band-line {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cta-band .band-fixed {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.cta-band .badge-row {
  justify-content: center;
  margin-top: 1.5rem;
}



/* Support / FAQ */

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question .icon {
  transition: transform 0.15s ease;
  color: var(--violet);
  flex: none;
  margin-left: 1rem;
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  color: var(--ink-soft);
}

/* Tall enough for the longest answer at 360 wide and 1.3x text (the
   backup answer runs past 900px there); 400px cut answers off. */
.faq-item.open .faq-answer {
  max-height: 2000px;
}

.faq-answer p {
  margin: 0 0 1.25rem;
}

.support-wrap {
  max-width: 720px;
}

.support h1 {
  font-size: 2.25rem;
}

.support-lead {
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-label {
  margin: 0 0 0.35rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.faq-group {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.25rem;
}

.contact-block a {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Legal pages */

.legal main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.legal h1 {
  font-size: 2rem;
}

.legal h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.legal p, .legal li {
  color: var(--ink-soft);
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-links a {
  color: var(--ink-soft);
  margin-right: 1.25rem;
}

.footer-links a:last-child {
  margin-right: 0;
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-grid,
  .steps-grid,
  .yield-grid {
    gap: 2.5rem;
  }

  .hero-visual {
    max-width: 340px;
  }

  .hero-doc {
    top: 28px;
  }

  .hero-visual .phone-frame {
    width: 132px;
    border-radius: 22px;
    padding: 6px;
  }

  .hero-visual .phone-screen-img {
    border-radius: 17px;
  }

  .problem-grid,
  .feature-columns,
  .two-views,
  .steps-grid,
  .doc-grid,
  .yield-grid,
  .stat-row,
  .feature-col-free {
    grid-template-columns: 1fr;
  }

  .side-phone {
    max-width: 260px;
  }

  .doc-hint-pointer {
    display: none;
  }

  .doc-hint-touch {
    display: block;
  }

  /* No floating sheet on a narrow screen: the page opens under the card. */
  .documents[data-zoom] .doc-zoom {
    display: none;
  }

  .doc-inline.is-open {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 48px rgba(26, 16, 41, 0.3);
    overflow: hidden;
  }

  .doc-inline img {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .cta-band {
    margin: 0;
    border-radius: 0;
  }
}

@media (max-width: 1023px) {
  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .tile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* At 360 by 740 the cookie banner starts at 557px; these keep the hero's
   buttons above it, so the first screen still holds the whole pitch. */
@media (max-width: 400px) {
  .hero {
    padding-top: 1.5rem;
  }

  /* With the 56px Play badge (7 Oct 2026) these 12px keep it clear of the
     banner at 360 by 740 too. */
  .hero h1 {
    margin-bottom: 0.75rem;
  }

  .hero .eyebrow {
    margin-bottom: 0.8rem;
  }

  .hero .lede {
    margin-bottom: 1.25rem;
  }

  /* The lede's 20px here is already the badge's gap. */
  .hero .badge-row {
    margin-top: 0;
  }
}

/* Cookie consent banner (analytics.js). Here rather than injected, so the
   Content-Security-Policy needs no exception for it. */
.fc-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-family: 'Rubik', system-ui, sans-serif;
}

.fc-consent p {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.fc-consent p a {
  color: var(--ink);
}

.fc-consent-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.fc-consent button {
  cursor: pointer;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font: 600 0.9rem 'Baloo 2', system-ui, sans-serif;
}

.fc-consent-decline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.fc-consent-accept {
  background: var(--violet);
  color: var(--on-violet);
  border: 1px solid transparent;
}

/* On a phone the banner is a column, so the text's 320px flex basis (a
   width in the wide layout) would become its height: 414px of banner on a
   390x844 screen until 5 Oct 2026. The text sizes to its words here, and
   the banner sits tighter to the edge. tool/check_banner.mjs fails if it is
   taller than 220px at 390 wide. */
@media (max-width: 639px) {
  .fc-consent {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px 14px;
  }
  .fc-consent p { flex: 0 0 auto; font-size: 0.85rem; line-height: 1.4; }
  .fc-consent-actions { justify-content: flex-end; }
  .fc-consent button { padding: 8px 16px; }
}
