/* Cutfish website. Brand tokens from the Cutfish brand kit (concept A2):
   Ink #0E1A2B, Coral #FF5B3A, white; Bricolage Grotesque for display. */

:root {
  --ink: #0e1a2b;
  --ink-2: #1b2a40;
  --coral: #ff5b3a;
  --coral-deep: #c93a17; /* coral text on white: passes contrast for body copy */
  --coral-soft: #ffe9e3;
  --paper: #ffffff;
  --mist: #f6f7f9;
  --line: #e3e7ee;
  --muted: #566176;
  --on-ink: #e9eef5;
  --on-ink-muted: #9aa7ba;
  --good: #17794a;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --wrap: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--coral-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 60ch; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-deep); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--coral-deep); }
.nav a[aria-current="page"] { color: var(--coral-deep); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--coral); color: var(--ink); }
.btn-primary:hover { background: #ff7556; color: var(--ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero { padding: 84px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero .lede { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip { font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); }

/* Phone mock */
.phone { position: relative; justify-self: center; width: min(320px, 78vw); aspect-ratio: 9 / 19; border-radius: 44px; background: var(--ink); padding: 12px; box-shadow: 0 40px 80px -30px rgba(14, 26, 43, 0.45), 0 0 0 1px rgba(14, 26, 43, 0.08); }
.phone .screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(120% 70% at 30% 10%, #ff8a6c 0%, #ff5b3a 38%, #b8331a 70%, #2a1a1e 100%); color: #fff; }
.phone .label { position: absolute; top: 18px; left: 16px; font-size: 11px; font-weight: 600; background: rgba(14, 26, 43, 0.72); padding: 4px 9px; border-radius: 6px; }
.phone .hook { position: absolute; top: 34%; left: 18px; right: 18px; font-family: var(--display); font-weight: 700; font-size: 25px; line-height: 1.12; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.phone .caption { position: absolute; left: 16px; right: 64px; bottom: 26px; font-size: 13px; line-height: 1.4; }
.phone .caption b { display: block; margin-bottom: 4px; }
.phone .rail { position: absolute; right: 14px; bottom: 30px; display: grid; gap: 16px; }
.phone .rail span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.phone .karaoke { position: absolute; left: 18px; right: 18px; top: 58%; text-align: center; font-weight: 700; font-size: 15px; }
.phone .karaoke mark { background: var(--paper); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.status { position: absolute; left: -46px; bottom: 132px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; box-shadow: 0 18px 40px -20px rgba(14, 26, 43, 0.4); display: flex; align-items: center; gap: 10px; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.status.two { left: auto; right: -40px; bottom: auto; top: 70px; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head h2 + p { margin-top: 16px; }
.mist { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ink { background: var(--ink); color: var(--on-ink); }
.ink .lede, .ink p.muted { color: var(--on-ink-muted); }
.ink .eyebrow { color: var(--coral); }
.ink a { color: #ffb4a3; }

/* Private beta badge */
.beta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; background: var(--coral-soft); color: var(--coral-deep); margin-bottom: 18px; }
.beta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.hero .eyebrow { margin-bottom: 14px; }

/* How it works: flowchart. Three stages in a row (Plan is wider), steps
   stacked inside each, arrows between, and a loop from the end back to Plan. */
.flow-fig { margin: 0; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 3fr 2fr 2fr; gap: 44px; }
.stage { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stage-plan { background: var(--coral-soft); border-color: #ffc6b8; }
.stage-name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-deep); }
.stage + .stage::before { content: ""; position: absolute; left: -32px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 10h14M11 4l6 6-6 6' fill='none' stroke='%23c93a17' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.nodes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 22px; }
.stage-plan .nodes { grid-template-columns: repeat(3, 1fr); gap: 26px; }
.nodes li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 13px; }
.nodes b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.nodes span { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
/* down arrow between stacked steps; side arrow inside the wide Plan stage */
.nodes li + li::before { content: ""; position: absolute; left: 50%; top: -19px; width: 14px; height: 14px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v11M2.5 7.5 7 12l4.5-4.5' fill='none' stroke='%23566176' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.stage-plan .nodes li + li::before { left: -21px; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.loop { position: relative; height: 40px; margin: 0 calc(100% / 7) 0 calc(100% * 1.5 / 7); border: 2px dashed #b4bccb; border-top: 0; border-radius: 0 0 14px 14px; }
.loop::before { content: ""; position: absolute; left: -9px; top: -6px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 10l5-6 5 6' fill='none' stroke='%23566176' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.loop span { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); white-space: nowrap; background: var(--mist); padding: 0 12px; font-size: 15px; color: var(--muted); }
.loop b { color: var(--ink); }
.native-title { margin-top: 64px; font-size: 22px; }
.native { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.native li { border-top: 2px solid var(--coral); padding-top: 14px; color: var(--muted); font-size: 16px; }
.native b { display: block; color: var(--ink); font-family: var(--display); font-size: 19px; font-weight: 600; margin-bottom: 2px; }
.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; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(233, 238, 245, 0.12); border: 1px solid rgba(233, 238, 245, 0.12); border-radius: var(--radius); overflow: hidden; }
.features > div { background: var(--ink); padding: 30px; }
.features .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); }
.features h3 { margin: 10px 0 10px; color: #fff; }
.features ul { margin: 0; padding-left: 18px; color: var(--on-ink-muted); font-size: 15.5px; display: grid; gap: 6px; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.trust .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.trust .card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.trust .card p { color: var(--muted); font-size: 16px; }
.icon { width: 34px; height: 34px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-deep); display: grid; place-items: center; flex: none; }
.icon svg { width: 18px; height: 18px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta .lede { margin: 18px auto 0; }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 56px 0 40px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 28px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink); margin: 0 0 12px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--coral); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(233, 238, 245, 0.12); padding-top: 22px; margin-top: 12px; font-size: 13.5px; }

/* Long-form pages (privacy, terms) */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .meta { color: var(--muted); margin-top: 14px; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 48px 0 14px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { color: #2a3547; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; margin: 12px 0; }
.doc .summary { background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 10px; padding: 20px 22px; margin-top: 32px; }
.doc .summary ul { margin-bottom: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.todo { background: #fff4c2; border-bottom: 2px solid #e0b400; padding: 0 3px; border-radius: 3px; }

/* Brand kit */
.kit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.tile .art { display: grid; place-items: center; padding: 44px 28px; min-height: 220px; }
.tile .art.dark { background: var(--ink); }
.tile .art.mist { background: var(--mist); }
.tile .art img { max-height: 110px; width: auto; }
.tile .info { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.tile .info a { font-size: 14px; white-space: nowrap; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.swatch .chipcol { height: 120px; }
.swatch .info { padding: 14px 16px; font-size: 14.5px; }
.swatch .info b { display: block; font-size: 16px; }
.swatch code { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.type-sample { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 10px; }
.type-sample .big { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -0.03em; }
.type-sample .body-sample { font-size: 18px; color: var(--muted); max-width: 60ch; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dos > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.dos h3 { font-size: 18px; margin-bottom: 10px; }
.dos ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #2a3547; font-size: 16px; }
.dos .yes h3 { color: var(--good); }
.dos .no h3 { color: var(--coral-deep); }
.kit-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .phone { margin-top: 12px; }
  .stage-plan .nodes { grid-template-columns: 1fr; gap: 22px; }
  .stage-plan .nodes li + li::before { left: 50%; top: -19px; transform: translateX(-50%); }
  .flow { gap: 36px; }
  .stage + .stage::before { left: -28px; }
  .swatches { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .nav a:not(.btn) { display: none; }
  .features, .trust, .kit-grid, .dos, .native { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 40px; }
  .stage + .stage::before { left: 50%; top: -30px; transform: translateX(-50%) rotate(90deg); }
  .loop { height: auto; margin: 20px 0 0; border: 2px dashed #b4bccb; border-radius: 12px; padding: 12px 16px; text-align: center; }
  .loop::before { display: none; }
  .loop span { position: static; transform: none; white-space: normal; background: none; padding: 0; }
  .loop span::before { content: "↺ "; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .status { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
