/* Curcuna — shared design system (warm light, Apple-like; the island stays dark) */

:root {
  --bg: #f7f5ef;        /* warm off-white ground */
  --panel: #ffffff;     /* cards */
  --panel2: #efeee9;    /* subtle fills */
  --line: #e5e3dc;      /* hairlines */
  --ink: #1b1c1f;       /* near-black text */
  --soft: #5f5e57;      /* secondary text */
  --faint: #918f86;     /* tertiary text */
  --accent: #b9791b;    /* amber — the "this needs a decision" signal, also the app/phone/admin accent */
  --fill: #e8a33d;      /* amber button / badge fill */
  --logo1: #c86a2a;
  --logo2: #eaa53d;
  --ok: #1f9d57;
  --no: #d6483f;
  --blue: #2f6fe0;
  --island-bg: #101012; /* the product element stays dark */
  --island-ink: #f4f4f2;
  --maxw: 980px;
  --radius: 4px;
  /* Body: clean neutral sans. Display: rounded + warm (native on Apple). */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Quicksand", var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* ---- Typography (rounded, warm display; clean body) ---- */
h1, h2, h3 { font-family: var(--round); line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; font-weight: 700; }
.display { font-size: clamp(40px, 8vw, 88px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(27px, 4vw, 40px); font-weight: 750; }
h3 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 700; letter-spacing: -0.008em; }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--soft); max-width: 62ch; line-height: 1.6; }
.eyebrow { font-family: var(--round); font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--soft); }
.small { font-size: 15px; }
.tiny { font-size: 13px; color: var(--faint); }
.center { text-align: center; }

/* ---- Nav (fixed and constant — no shrink, no blur, no scroll-triggered border) ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px; padding: 15px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav .links { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav .links a { color: var(--soft); font-size: 15px; font-weight: 500; transition: color .14s ease-out; }
.nav .links a:hover { color: var(--ink); }
@media (max-width: 620px) { .nav .links a.hideSmall { display: none; } }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round);
  font-weight: 750; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand .mark { width: 27px; height: 27px; flex: none; display: block; }
.brand .u-dot { color: var(--accent); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--round); font-size: 16px; font-weight: 650;
  cursor: pointer; padding: 13px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); transition: background-color .14s ease-out, border-color .14s ease-out, filter .14s ease-out; }
.btn:hover { border-color: var(--soft); }
.btn.primary { background: var(--fill); border-color: var(--fill); color: #241704; }
.btn.primary:hover { filter: brightness(1.05); border-color: var(--fill); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Sections ---- */
.band { padding: clamp(56px, 9vw, 104px) 0; }
.band.tight { padding: clamp(36px, 6vw, 68px) 0; }
.band.fill { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Cards ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---- Island (matches the app: square top, rounded bottom — the real notch shape, not a generic card radius) ---- */
.island { background: var(--island-bg); color: var(--island-ink); border-radius: 0 0 22px 22px;
  padding: 15px 16px; width: min(430px, 100%);
  display: flex; align-items: center; gap: 12px; }
.island .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fill); flex: none; }
.island .txt { min-width: 0; }
.island .proj { font-size: 13px; font-weight: 650; }
.island .cmd { font-family: var(--mono); font-size: 12px; color: rgba(244,244,242,.66);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.island .ctrls { margin-left: auto; display: flex; gap: 8px; flex: none; }
.island .pill { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff; }
.island .pill.ok { background: #31c07a; color: #04160c; }
.island .pill.no { background: #f0575c; }
.island .pill.jump { background: rgba(255,255,255,.14); }

/* ---- Badges (small status tags — a distinct component from buttons, pill radius allowed) ---- */
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--soft); }
.badge.claude { color: var(--accent); border-color: rgba(185,121,27,.35); background: #fbf1df; }
.badge.codex { color: var(--ok); border-color: rgba(31,157,87,.3); background: #eaf6ef; }
.badge.gemini { color: var(--blue); border-color: rgba(47,111,224,.3); background: #eaf0fc; }

/* ---- Code (dark block pops on light) ---- */
.codebox { position: relative; background: #14161a; border: 1px solid #22252b; border-radius: var(--radius);
  padding: 14px 56px 14px 16px; margin: 10px 0; font-family: var(--mono); font-size: 13.5px;
  color: #e4e8e0; overflow-x: auto; white-space: pre; }
.codebox .prompt { color: #6f7580; }
.copy { position: absolute; top: 8px; right: 8px; border: 1px solid #2c2f36; background: #1c1f24; color: #b9bdc4;
  border-radius: var(--radius); padding: 6px 9px; font: inherit; font-size: 12px; cursor: pointer; transition: color .14s ease-out, border-color .14s ease-out; }
.copy:hover { color: #fff; border-color: #47505a; }

/* ---- Matrix (data tables) ---- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.matrix { width: 100%; border-collapse: collapse; min-width: 460px; font-size: 15px; }
.matrix th, .matrix td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.matrix th { color: var(--soft); font-weight: 600; font-size: 13px; }
.matrix tr:last-child td { border-bottom: none; }
.matrix .yes { color: var(--ok); font-weight: 600; }
.matrix .partial { color: var(--accent); font-weight: 600; }
.matrix .nope { color: var(--faint); }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--soft); background: var(--panel); }
.footer .row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer a { color: var(--soft); } .footer a:hover { color: var(--ink); }

/* ---- Hero ---- */
.hero { position: relative; }
.hero .inner { position: relative; z-index: 1; text-align: center; padding-top: clamp(24px, 5vw, 56px); }
.hero .island-mount { display: flex; justify-content: center; margin-bottom: clamp(28px, 5vw, 48px);
  animation: dropIn 0.7s cubic-bezier(.16,.84,.36,1) both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-44px); } to { opacity: 1; transform: none; } }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .island-mount { animation: none; }
}

/* ---- Screenshots ("See it") ---- */
.shots { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: center; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #0b0c0e; }
.shot figcaption { margin-top: 15px; font-size: 13.5px; line-height: 1.55; color: var(--soft); }
.shot.phoneshot { display: flex; flex-direction: column; align-items: center; }
.shot.phoneshot figcaption { text-align: center; max-width: 30ch; }

/* ---- Device frame (flat tone, no gradient, no shadow) ---- */
/* Radii here (46px/34px/2px) are a documented exception to --radius: derived
   from a real phone's actual rounded body/screen corners, same rationale as
   .island's notch exception above. */
.device { position: relative; width: 262px; padding: 13px; border-radius: 46px;
  background: #1a1b1f; border: 1px solid #2c2d31; }
.device .screen { position: relative; border-radius: 34px; overflow: hidden; background: #0b0c0e;
  aspect-ratio: 589 / 1280; border: 1px solid rgba(0,0,0,.6); }
.device .screen img { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.device .btn { position: absolute; background: #2a2b30; border-radius: 2px; }
.device .btn.pwr { right: -2px; top: 156px; width: 3px; height: 64px; }
.device .btn.vol { left: -2px; top: 118px; width: 3px; height: 40px; }
.device .btn.vol::after { content: ""; position: absolute; left: 0; top: 54px; width: 3px; height: 40px;
  background: #2a2b30; border-radius: 2px; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr; gap: 34px; }
}

/* ---- Download button + first-launch note ---- */
.btn.big { flex-direction: column; align-items: center; gap: 3px; padding: 15px 36px; font-size: 17px; }
.dl-sub { font-size: 12px; font-weight: 500; opacity: .82; }
