/* CoMax Studio — follows Brand Guidelines v1.0 (colour, type, UI elements). */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-500-latin.woff2") format("woff2");
}

:root {
  /* Palette */
  --green: #04ac5b;      /* CoMax Green: logo node, icons, graphics; buttons on dark only */
  --deep-green: #007a3f; /* text-safe green: links and buttons on light */
  --deep-green-hover: #00662f;
  --ink: #0e1411;
  --graphite: #4a5550;
  --mint: #e7f6ee;
  --mist: #f3f5f4;
  --white: #ffffff;
  --border: #d5dad7;     /* card and divider lines (decorative) */
  --field-border: #7b8580; /* form fields: 3.8:1 on white */

  /* Type */
  --font-head: "Manrope", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* 8 pt spacing */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;

  --r-tag: 6px; --r-btn: 10px; --r-card: 16px; --r-panel: 24px;
  --shadow: 0 1px 2px rgba(14, 20, 17, 0.04), 0 8px 24px rgba(14, 20, 17, 0.06);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; letter-spacing: -0.01em; }
.display { font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 40px; font-weight: 700; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 18px; line-height: 28px; color: var(--graphite); }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--graphite); }
.green { color: var(--deep-green); }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }

a { color: var(--deep-green); text-underline-offset: 3px; }
a:hover { color: var(--deep-green-hover); }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--s3); top: -100px;
  background: var(--ink); color: var(--white);
  padding: var(--s2) var(--s3); border-radius: var(--r-btn); z-index: 10;
}
.skip-link:focus { top: var(--s3); color: var(--white); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }

/* Header */
.site-header { border-bottom: 1px solid var(--mist); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: var(--s3); }
/* Logo at 140 px wide keeps clear space (height of the "o") around it via padding */
.logo { display: block; padding: 8px 0; }
.logo img { width: 140px; height: auto; }
.header-link { font-weight: 600; font-size: 16px; text-decoration: none; padding: 10px 4px; }
.header-link:hover { text-decoration: underline; }

/* Hero */
.hero { padding: var(--s7) 0 var(--s8); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s6); align-items: center; }
.hero-copy > * + * { margin-top: var(--s4); }
.hero-copy .label { margin-bottom: calc(var(--s3) * -1 + var(--s2)); }
.hero-art {
  background: var(--mint);
  border-radius: var(--r-panel);
  padding: var(--s5);
}
.hero-art svg { width: 100%; height: auto; }

/* Demo videos and pictures */
.hero .wrap.wrap { grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); }
.hero { padding-bottom: var(--s7); }
.hero-media { margin: 0; background: var(--mint); border-radius: var(--r-panel); padding: var(--s3); }
.hero-media figcaption { margin-top: var(--s3); }
.pair { display: grid; grid-template-columns: 256fr 81fr; gap: var(--s3); align-items: end; }
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(14, 20, 17, 0.08), 0 16px 40px rgba(14, 20, 17, 0.14);
}
.media-frame video, .media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.media-frame.window { aspect-ratio: 1600 / 1004; border-radius: 12px; }
.media-frame .tag {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--font-mono); font-size: 11px; line-height: 16px; letter-spacing: 0.06em;
  background: rgba(14, 20, 17, 0.75); color: var(--white);
  padding: 2px 8px; border-radius: var(--r-tag);
}
.ratio-9-16 .tag { font-size: 10px; padding: 2px 6px; }
.play-toggle {
  position: absolute; right: 8px; bottom: 8px;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  color: var(--white); background: rgba(14, 20, 17, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.play-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.media-frame:hover .play-toggle, .play-toggle:focus-visible { opacity: 1; }
@media (hover: none) { .play-toggle { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { .play-toggle { opacity: 1; } }

.section-ink { background: var(--ink); color: var(--white); }
.section-ink h2 { color: var(--white); }
.section-ink .lead { color: #c9d0cc; }
.label-on-dark { color: #c9d0cc; }
.app-shot { margin: 0; }
.app-shot .media-frame { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); border: 1px solid #2c3631; }

.feature-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6); align-items: center; margin-bottom: var(--s8); }
.feature-row.reverse { grid-template-columns: 1fr 1.3fr; }
.feature-row.reverse > :first-child { order: 2; }
.feature-copy > * + * { margin-top: var(--s3); }
.feature-copy h3 { font-size: 28px; line-height: 36px; font-weight: 700; }
.feature-copy p:not(.label) { color: var(--graphite); font-size: 18px; line-height: 28px; }
.pair-small { background: var(--mist); border-radius: var(--r-panel); padding: var(--s4); }
.prompter-shot { background: var(--mist); border-radius: var(--r-panel); padding: var(--s6) var(--s5); }
.prompter-shot img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 16px 40px rgba(14, 20, 17, 0.18); }

.mini-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); list-style: none; margin: 0; padding: 0; }

.site-footer .credit { flex-basis: 100%; }

@media (max-width: 1024px) {
  .mini-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero .wrap.wrap { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: var(--s4); margin-bottom: var(--s7); }
  .feature-row.reverse > :first-child { order: 0; }
}
@media (max-width: 600px) {
  .hero-media, .pair-small { padding: var(--s3); border-radius: var(--r-card); }
  .pair { gap: var(--s2); }
  .media-frame .tag { font-size: 10px; padding: 1px 6px; top: 6px; left: 6px; }
  .ratio-9-16 .tag { display: none; }
  .prompter-shot { padding: var(--s4) var(--s3); border-radius: var(--r-card); }
  .mini-features { grid-template-columns: 1fr; }
  .feature-copy h3 { font-size: 24px; line-height: 32px; }
}

/* Tester applications */
.section-mint { background: var(--mint); }
.tester-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; }
.tester-grid .section-head { margin-bottom: 0; }
.ticks { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; font-size: 18px; line-height: 28px; }
.ticks li + li { margin-top: var(--s2); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
}
.tester-form { padding: var(--s5); }
.tester-form > * + * { margin-top: var(--s4); }
.tester-form .field .input { width: 100%; }
.tester-form .field .small { margin-top: var(--s2); }
textarea.input { resize: vertical; min-height: 96px; line-height: 24px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--deep-green); flex: none; margin: 0; }
.check input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 2px; }
.tester-form .btn { width: 100%; }

@media (max-width: 880px) {
  .tester-grid { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 600px) {
  .tester-form { padding: var(--s4); }
}

/* Waitlist form */
.waitlist { max-width: 520px; }
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: var(--s2);
}
.form-row { display: flex; gap: var(--s2); flex-wrap: wrap; }
.input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 12px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: var(--r-btn);
}
.input::placeholder { color: #6b7570; }
.input[aria-invalid="true"] { border-color: #b3261e; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 16px; line-height: 24px; font-weight: 600;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--deep-green); color: var(--white); }
.btn-primary:hover { background: var(--deep-green-hover); color: var(--white); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.btn-on-dark { background: var(--green); color: var(--ink); }
.btn-on-dark:hover { background: #2bbd73; color: var(--ink); }

.form-note { margin-top: var(--s2); }
.form-status { margin-top: var(--s3); min-height: 24px; font-weight: 500; }
.form-status.is-error { color: #b3261e; }
.form-status.is-ok {
  color: var(--ink);
  background: var(--mint);
  border-radius: var(--r-btn);
  padding: 12px 16px;
}

/* Honeypot: hidden from people, visible to simple bots */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Sections */
.section { padding: var(--s8) 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: var(--s6); }
.section-head > * + * { margin-top: var(--s3); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: var(--s4);
}
.card > * + * { margin-top: var(--s2); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--mist);
  display: grid; place-items: center; margin-bottom: var(--s3);
}
.card .icon svg { width: 24px; height: 24px; }
.card p { color: var(--graphite); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: var(--s3); }
.step .label { margin-bottom: var(--s2); }
.step p { color: var(--graphite); margin-top: var(--s2); }

/* Questions */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 28px;
  padding: var(--s4) 40px var(--s4) 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 var(--s4); color: var(--graphite); max-width: 640px; }

/* Closing call to action, on Ink */
.cta { background: var(--ink); color: var(--white); border-radius: var(--r-panel); padding: var(--s7) var(--s6); position: relative; overflow: hidden; }
.cta h2 { color: var(--white); max-width: 560px; }
.cta p { color: #c9d0cc; margin-top: var(--s3); max-width: 520px; }
.cta .btn { margin-top: var(--s5); }
.cta-motif { position: absolute; right: 24px; bottom: -12px; width: 420px; pointer-events: none; }
.cta > :not(.cta-motif) { position: relative; }

/* Footer */
.site-footer { padding: var(--s6) 0 var(--s5); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.site-footer .logo img { width: 120px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; margin: 0; padding: 0; }

/* Privacy page */
.prose { max-width: 720px; padding: var(--s7) 0 var(--s8); }
.prose h1 { font-size: 40px; line-height: 48px; font-weight: 700; margin: var(--s3) 0 var(--s4); }
.prose h2 { font-size: 24px; line-height: 32px; font-weight: 600; margin: var(--s6) 0 var(--s3); }
.prose p, .prose ul { color: var(--graphite); margin: 0 0 var(--s3); }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: var(--s2); }
.prose strong { color: var(--ink); }

/* Tablet */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
}

/* Phone */
@media (max-width: 600px) {
  .wrap { padding: 0 var(--s3); }
  .site-header .wrap { min-height: 64px; }
  .logo img { width: 120px; }
  .hero { padding: var(--s6) 0 var(--s7); }
  .display { font-size: 40px; line-height: 48px; }
  h2 { font-size: 28px; line-height: 36px; }
  .hero-art { padding: var(--s4); border-radius: var(--r-card); }
  .section { padding: var(--s7) 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .form-row .btn { width: 100%; }
  .cta { padding: var(--s6) var(--s4); border-radius: var(--r-card); }
  .cta-motif { display: none; }
  .prose h1 { font-size: 32px; line-height: 40px; }
}

/* Buy page */
.page-title { font-size: 40px; line-height: 48px; font-weight: 700; }
.test-mode {
  background: #fff4d6; color: var(--ink); border: 1px solid #e8cf86; border-radius: var(--r-btn);
  padding: 12px 16px; margin-bottom: var(--s5); font-weight: 500;
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.plan > p:last-of-type { margin-bottom: var(--s4); }
.plan-featured { border: 2px solid var(--deep-green); }
.plan-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 12px; line-height: 16px; text-transform: uppercase;
  letter-spacing: 0.04em; background: var(--mint); color: var(--deep-green); border-radius: var(--r-tag); padding: 4px 8px;
}
.plan-name { font-size: 24px; line-height: 32px; }
.plan-price { color: var(--graphite); }
.plan-price .amount { font-family: var(--font-head); font-size: 40px; line-height: 48px; font-weight: 800; color: var(--ink); }
.buy-notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s6); }
.buy-notes ul { margin: var(--s3) 0 0; padding-left: 20px; color: var(--graphite); }
.buy-notes li + li { margin-top: var(--s2); }
.small-heading { font-size: 20px; line-height: 28px; font-weight: 600; }
@media (max-width: 880px) {
  .plans, .buy-notes { grid-template-columns: 1fr; }
  .page-title { font-size: 32px; line-height: 40px; }
}
.buy-agree { margin-top: var(--s4); }

/* Main navigation */
.site-nav { display: flex; align-items: center; gap: var(--s4); }
.site-nav a:not(.header-link) {
  color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 4px;
}
.site-nav a:not(.header-link):hover, .site-nav a[aria-current="page"] { color: var(--deep-green); text-decoration: underline; }
@media (max-width: 600px) {
  .site-nav { gap: var(--s3); }
  .site-nav a:not(.header-link) { font-size: 15px; }
  .site-nav .header-link { display: none; }
}

/* Features page */
.page-hero { padding: var(--s7) 0 var(--s6); }
.page-hero .page-title { font-size: 48px; line-height: 56px; font-weight: 800; letter-spacing: -0.02em; margin-top: var(--s3); max-width: 760px; }
.page-hero .lead { margin-top: var(--s3); max-width: 720px; }
.jump { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.jump a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border-radius: 999px; background: var(--mist); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--border);
}
.jump a:hover { background: var(--mint); color: var(--deep-green); }
html { scroll-padding-top: var(--s4); }

.feature { padding: var(--s8) 0; }
.feature-mist { background: var(--mist); }
.feature-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--s7); align-items: center; }
.feature-grid.reverse { grid-template-columns: 1.25fr 1fr; }
.feature-grid.reverse > .feature-text { order: 2; }
.feature-text > * + * { margin-top: var(--s3); }
.feature-text h2 { font-size: 36px; line-height: 44px; }
.feature-text p:not(.label) { color: var(--graphite); font-size: 18px; line-height: 28px; }
.section-ink .feature-text p:not(.label), .section-ink .how-steps li { color: #c9d0cc; }
.section-ink .how { color: var(--white); }
.feature-text.wide { max-width: 760px; margin-bottom: var(--s6); }
.feature-media { margin: 0; }
.feature-media figcaption { margin-top: var(--s3); }
.how { font-size: 14px; line-height: 20px; font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-top: var(--s5) !important; }
.how-steps { list-style: none; counter-reset: step; margin: var(--s3) 0 0; padding: 0; }
.how-steps li { counter-increment: step; position: relative; padding-left: 40px; min-height: 28px; line-height: 26px; }
.how-steps li + li { margin-top: var(--s3); }
.how-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--white); font: 700 13px/1 var(--font-head);
}
.section-ink .how-steps li::before { background: var(--green); color: var(--ink); }
.note { font-size: 15px !important; line-height: 22px !important; padding: 12px 16px; background: var(--mint); border-radius: var(--r-btn); color: var(--ink) !important; }
kbd {
  display: inline-block; min-width: 22px; padding: 0 6px; font: 500 13px/20px var(--font-body);
  text-align: center; color: var(--ink); background: var(--white);
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px;
}
.section-ink kbd { background: #1d2622; color: var(--white); border-color: #3a4540; }

.layouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.layouts li { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-card); padding: var(--s4); }
.layout-pics { display: grid; grid-template-columns: 256fr 81fr; gap: 6px; align-items: end; margin-bottom: var(--s3); }
.layout-pics img { width: 100%; height: auto; border-radius: 6px; display: block; }
.layouts h3 { font-size: 18px; line-height: 26px; }
.layouts p { color: var(--graphite); font-size: 15px; line-height: 22px; margin-top: 4px; }
.how-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s6); align-items: start; }
.extras { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.extras li { background: var(--white); border-radius: var(--r-card); padding: var(--s3) var(--s4); color: var(--graphite); line-height: 24px; border: 1px solid var(--border); }
.extras li strong { color: var(--ink); }
.extras.compact { margin-top: var(--s4); }
.extras.compact li { background: var(--mist); border: 0; padding: 12px 16px; font-size: 15px; line-height: 22px; }
.extras.three { grid-template-columns: repeat(3, 1fr); margin-top: var(--s5); }
.extras.three li { background: var(--mist); border: 0; }

.modes { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.modes li { background: var(--mist); border-radius: var(--r-btn); padding: 12px 14px; }
.modes strong { display: block; font-size: 15px; }
.modes span { display: block; color: var(--graphite); font-size: 14px; line-height: 20px; margin-top: 4px; }
.window-shot img { display: block; width: 100%; height: auto; }
.media-frame.window-shot { aspect-ratio: auto; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.compare figure { margin: 0; }
.compare img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: var(--shadow); }
.compare figcaption { margin-top: var(--s2); }

.needs { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s6); align-items: start; }
.on-dark-link { color: var(--green); }
.on-dark-link:hover { color: #2bbd73; }

@media (max-width: 880px) {
  .feature-grid, .feature-grid.reverse, .how-row, .needs { grid-template-columns: 1fr; gap: var(--s5); }
  .feature-grid.reverse > .feature-text { order: 0; }
  .extras.three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-hero { padding: var(--s6) 0 var(--s5); }
  .page-hero .page-title { font-size: 34px; line-height: 42px; }
  .feature { padding: var(--s7) 0; }
  .feature-text h2 { font-size: 28px; line-height: 36px; }
  .layouts, .compare, .modes { grid-template-columns: 1fr; }
}
.feature-mist .modes li, .feature-mist .extras.compact li, .feature-mist .prompter-shot { background: var(--white); }
.media-frame.notes-shot { max-width: 340px; margin: 0 auto; aspect-ratio: auto; border-radius: 16px; }
.media-frame.notes-shot img { display: block; width: 100%; height: auto; }
.launch-note { background: var(--mint); border-radius: var(--r-btn); padding: 16px 20px; margin-bottom: var(--s5); line-height: 26px; }
.launch-note[hidden] { display: none; }
.plan .btn[disabled] { background: var(--mist); color: var(--graphite); border: 1px solid var(--border); opacity: 1; cursor: default; }

/* CoMax Prompter page: real iPhone screenshots in a simple device frame, on Mint or Mist (Brand Guidelines: imagery) */
.app-badge { display: flex; align-items: center; gap: var(--s3); }
.app-badge img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--border), var(--shadow); }
.app-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--mist); color: var(--ink); }
.prompter-hero .wrap.wrap { grid-template-columns: 1.1fr 0.9fr; }
.hero-phones { margin: 0; background: var(--mint); border-radius: var(--r-panel); padding: var(--s6) var(--s4) var(--s4); text-align: center; }
.hero-phones figcaption { margin-top: var(--s4); }
.phone {
  background: #0b0f0d; border-radius: 44px; padding: 10px; margin: 0 auto;
  box-shadow: 0 0 0 1px #2c3631, 0 2px 4px rgba(14, 20, 17, 0.08), 0 24px 56px rgba(14, 20, 17, 0.22);
  max-width: 300px;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone-lg { max-width: 320px; }
.phone-wide { max-width: 860px; border-radius: 48px; padding: 12px; }
.phone-wide img { border-radius: 38px; }
.phone-stage { background: var(--mist); border-radius: var(--r-panel); padding: var(--s6) var(--s4); }
.feature-mist .phone-stage { background: var(--white); }
.phone-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); background: var(--white); border-radius: var(--r-panel); padding: var(--s5) var(--s4); }
.phone-pair .phone { border-radius: 36px; padding: 8px; }
.phone-pair .phone img { border-radius: 28px; }
.use-photo { margin: 0; }
.use-photo img { width: 100%; height: auto; border-radius: var(--r-panel); }
.beta-card { text-align: center; padding: var(--s5); }
.beta-card > * + * { margin-top: var(--s3); }
.beta-qr { width: 200px; height: 200px; margin: 0 auto; image-rendering: pixelated; }
.beta-card .btn { width: 100%; }
.beta-link { font-family: var(--font-mono); font-size: 13px; word-break: break-all; }
#download .how-steps { margin-top: var(--s4); }
#download .how-steps + .small { margin-top: var(--s4); }
@media (max-width: 880px) {
  .prompter-hero .wrap.wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-actions .btn { width: 100%; }
  .hero-phones, .phone-stage, .phone-pair { padding: var(--s4) var(--s3); border-radius: var(--r-card); }
  .phone { border-radius: 36px; padding: 8px; max-width: 260px; }
  .phone img { border-radius: 28px; }
  .phone-wide { border-radius: 26px; padding: 6px; }
  .phone-wide img { border-radius: 20px; }
  .phone-pair { gap: var(--s2); }
  .phone-pair .phone { border-radius: 24px; padding: 5px; }
  .phone-pair .phone img { border-radius: 19px; }
}
/* On a phone the QR code is no use: you're already on the iPhone. */
@media (max-width: 600px) and (pointer: coarse) {
  .beta-qr, .beta-qr + .small { display: none; }
}

/* Apple's App Store badge: shown unaltered, at least 40px tall, with clear space around it */
.store-badge { display: inline-block; line-height: 0; border-radius: 9px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.beta-card .store-badge { margin-left: auto; margin-right: auto; }
.cta .store-badge { margin-top: var(--s5); }
