/* Permitame: Kitsap colors. Evergreen, Puget Sound blue, Olympic sunset orange and kelp gold
   on warm sand (light) or deep Sound navy (dark). Every text/background pair meets WCAG AA. */
:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --surface-2: #f2ecdf;
  --ink: #142320;
  --muted: #4f605a;
  --line: #e6dccb;
  --primary: #13795b;
  --primary-ink: #ffffff;
  --primary-soft: #d5f0e4;
  --sound: #0f6f93;
  --sound-soft: #dbf0f7;
  --sunset: #d9572b;
  --sunset-soft: #fde6dc;
  --kelp: #b07d12;
  --kelp-soft: #fbf0d3;
  --warn: #8a5a12;
  --warn-soft: #fbf0d3;
  --yes: #13795b;
  --no: #b8341f;
  --hero: linear-gradient(135deg, #0f4f43 0%, #13795b 45%, #0f6f93 100%);
  --hero-ink: #ffffff;
  --hero-muted: #d7efe6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 35 32 / 6%), 0 8px 28px rgb(20 35 32 / 9%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1a22;
    --surface: #10242e;
    --surface-2: #163140;
    --ink: #eef4f2;
    --muted: #a9c0c4;
    --line: #23404e;
    --primary: #3fd39f;
    --primary-ink: #04201a;
    --primary-soft: #133d36;
    --sound: #5cc8f0;
    --sound-soft: #12384a;
    --sunset: #ff8a5c;
    --sunset-soft: #3d2219;
    --kelp: #f2c14e;
    --kelp-soft: #3a2f12;
    --warn: #f2c14e;
    --warn-soft: #3a2f12;
    --yes: #3fd39f;
    --no: #ff8a75;
    --hero: linear-gradient(135deg, #0d3b39 0%, #0f5a52 45%, #0d4a66 100%);
    --hero-ink: #ffffff;
    --hero-muted: #c5e6e0;
    --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 8px 28px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; }
a { color: var(--sound); text-underline-offset: 2px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--sound); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 4rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 88%, transparent); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font: 700 1.25rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header nav a.btn { color: var(--primary-ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3.2rem 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .4rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.6rem; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sound); margin: 0 0 .8rem; }
.muted { color: var(--muted); }
small, .small { font-size: .9rem; }

/* Buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--primary); background: var(--primary); color: var(--primary-ink);
  border-radius: 10px; padding: .65rem 1.1rem; font: 600 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: transform .08s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); color: var(--primary-ink); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--primary); }
.btn.secondary:hover { background: var(--primary-soft); color: var(--primary); }
.btn.danger { background: transparent; border-color: var(--no); color: var(--no); }
.btn.small { padding: .4rem .75rem; font-size: .9rem; }
.btn:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
input[type=email], input[type=text] { font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; max-width: 26rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.notice { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); color: var(--ink); border-radius: 12px; padding: .9rem 1.1rem; }
.notice.info { background: var(--sound-soft); border-color: color-mix(in srgb, var(--sound) 35%, transparent); }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: .6rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.meter { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; max-width: 26rem; margin: .5rem 0; }
.meter > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
[hidden] { display: none !important; }

/* Hero */
.hero { display: grid; gap: 2.5rem; grid-template-columns: 1.05fr .95fr; align-items: center; padding: 3.5rem 0 1rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 2rem; } }
.demo { padding: 1.2rem; }
.demo .ask { background: var(--sound-soft); border-radius: 12px 12px 12px 4px; padding: .7rem .9rem; font-weight: 600; margin-bottom: .9rem; }
.answers { display: grid; gap: .55rem; }
.answer { display: grid; grid-template-columns: 1fr auto; gap: .25rem .8rem; align-items: start; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.answer strong { font-size: .98rem; }
.answer .why { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.pill { display: inline-block; font: 700 .75rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 99px; white-space: nowrap; }
.pill.yes { background: color-mix(in srgb, var(--no) 14%, transparent); color: var(--no); }
.pill.no { background: color-mix(in srgb, var(--yes) 16%, transparent); color: var(--yes); }
.pill.ask { background: var(--warn-soft); color: var(--warn); }
.demo .foot { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; }

/* Feature and coverage lists */
.feature h3 { display: flex; align-items: center; gap: .5rem; }
.feature .dot { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 700 .95rem/1 var(--sans); flex: none; }
.coverage .card h3 { margin-bottom: .2rem; }
.tag { display: inline-block; font: 600 .75rem/1 var(--sans); padding: .3rem .5rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-bottom: .6rem; }

/* Install cards */
.install .card { display: flex; flex-direction: column; gap: .5rem; }
.install .card .btn { align-self: flex-start; margin-top: auto; }
.address { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.address pre { flex: 1; margin: 0; font-size: 1rem; min-width: 14rem; }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan .price { font: 700 2.2rem/1 var(--serif); margin: .6rem 0 .2rem; }
.plan .price span { font: 400 1rem var(--sans); color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin: .8rem 0 1.2rem; flex: 1; }
.plan.featured { border: 2px solid var(--primary); }
details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
summary { cursor: pointer; font-weight: 600; }

/* Wave divider and footer */
.wave { display: block; width: 100%; height: 40px; color: var(--line); margin-top: 3rem; }
.site-footer { color: var(--muted); font-size: .92rem; padding: 1rem 0 2.5rem; }
.site-footer .cols { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer .disclaim { max-width: 42rem; }

/* Per-app accents on the install cards, so each app is easy to spot. Text on each accent
   meets WCAG AA contrast in both themes. */
.app-claude  { --accent: #b9532f; --accent-ink: #ffffff; }
.app-cursor  { --accent: #23272e; --accent-ink: #ffffff; }
.app-vscode  { --accent: #0062b0; --accent-ink: #ffffff; }
.app-chatgpt { --accent: #0b7a5f; --accent-ink: #ffffff; }
.app-gemini  { --accent: #4f4bc9; --accent-ink: #ffffff; }
@media (prefers-color-scheme: dark) {
  .app-claude  { --accent: #e48b66; --accent-ink: #1d0e07; }
  .app-cursor  { --accent: #e8e8e8; --accent-ink: #121212; }
  .app-vscode  { --accent: #5aaeff; --accent-ink: #04121f; }
  .app-chatgpt { --accent: #47d3a5; --accent-ink: #04201a; }
  .app-gemini  { --accent: #a8a5ff; --accent-ink: #0e0c26; }
}
.install .card[class*="app-"] { border-top: 4px solid var(--accent); }
.install .card[class*="app-"] .btn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.install .card[class*="app-"] .btn.secondary { background: transparent; color: var(--ink); border-color: var(--accent); }
.install .card[class*="app-"] .btn.secondary:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.install .card[class*="app-"] .btn:hover { filter: brightness(1.08); }
.install .card h3::before { content: ""; display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; background: var(--accent, var(--primary)); margin-right: .5rem; vertical-align: .1em; }
/* Commands scroll sideways instead of breaking mid-word. */
.install pre, .address pre { white-space: pre; word-break: normal; overflow-x: auto; }

/* Color pass: hero band, tinted sections and per-item accents. */
.hero-band { background: var(--hero); color: var(--hero-ink); position: relative; overflow: hidden; }
.hero-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q150 10 300 40 T600 40 T900 40 T1200 40 V70 H0Z' fill='%23ffffff' fill-opacity='.10'/%3E%3Cpath d='M0 52 Q150 26 300 52 T600 52 T900 52 T1200 52 V70 H0Z' fill='%23ffffff' fill-opacity='.10'/%3E%3C/svg%3E") bottom/100% 70px no-repeat; }
.hero-band .hero { padding-bottom: 4.5rem; }
.hero-band h1 { color: var(--hero-ink); }
.hero-band .lede, .hero-band .small { color: var(--hero-muted); }
.hero-band .eyebrow { color: #ffd38a; }
.hero-band .btn { background: #ffffff; border-color: #ffffff; color: #0f4f43; }
.hero-band .btn:hover { color: #0f4f43; filter: none; background: #eafbf3; }
.hero-band .btn.secondary { background: transparent; color: #ffffff; border-color: rgb(255 255 255 / 70%); }
.hero-band .btn.secondary:hover { background: rgb(255 255 255 / 12%); color: #ffffff; }
.hero-band .demo { color: var(--ink); }
.band { background: var(--surface-2); padding: .5rem 0 2.5rem; margin-top: 3rem; }
.band h2 { margin-top: 2.2rem; }
.feature:nth-child(1) { border-top: 4px solid var(--primary); }
.feature:nth-child(2) { border-top: 4px solid var(--sound); }
.feature:nth-child(3) { border-top: 4px solid var(--sunset); }
.feature:nth-child(1) .dot { background: var(--primary-soft); color: var(--primary); }
.feature:nth-child(2) .dot { background: var(--sound-soft); color: var(--sound); }
.feature:nth-child(3) .dot { background: var(--sunset-soft); color: var(--sunset); }
.coverage .card:nth-child(1) .tag { background: var(--primary-soft); color: var(--primary); }
.coverage .card:nth-child(2) .tag { background: var(--sound-soft); color: var(--sound); }
.coverage .card:nth-child(3) .tag { background: var(--sunset-soft); color: var(--sunset); }
.coverage .card:nth-child(4) .tag { background: var(--kelp-soft); color: var(--kelp); }
.eyebrow { color: var(--sunset); }
.plan.featured { border: 2px solid var(--sunset); }
.plan.featured .tag { background: var(--sunset-soft); color: var(--sunset); }
.cursor-badge { display: inline-block; margin-top: auto; line-height: 0; }
.cursor-badge img { height: 40px; width: auto; }
.cursor-badge .dark { display: none; }
@media (prefers-color-scheme: dark) { .cursor-badge .light { display: none; } .cursor-badge .dark { display: inline; } }

/* Languages: the footer switcher and the one-line suggestion lang.js shows. */
.site-footer .langs { flex-basis: 100%; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.site-footer .langs [aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
.lang-suggest { margin: 0; padding: .55rem 16px; text-align: center; background: var(--sound-soft); color: var(--ink); font-size: .95rem; }
.lang-suggest a { color: var(--sound); font-weight: 600; }
.lang-suggest button { font: inherit; color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
/* The serif headings have no Chinese or Korean glyphs; use the system sans-serif instead. */
:is(:lang(zh), :lang(ko)) :is(h1, h2, h3) { font-family: var(--sans); letter-spacing: 0; }
