/* Hush – same palette family as the app ("Sage"). Always light. System fonts only. */
:root {
  color-scheme: light;
  --paper: #EDF2EF;
  --paper-2: #E4EBE7;
  --card: #FBFCFB;
  --ink: #24332D;
  --ink-2: #4E5F58;
  --ink-3: #6F8079;
  --line: rgba(79,125,106,.16);
  --accent: #4F7D6A;
  --accent-soft: rgba(79,125,106,.14);
  --sage: #4F7D6A;
  --sage-soft: rgba(79,125,106,.10);
  --warn-soft: #F4E6E2;
  --radius: 14px;
  --serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; max-width: 1040px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 19px/1 var(--sans); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo-grid{display:grid;grid-template-columns:repeat(3,6px);gap:2px}
.logo-grid b{height:6px;border-radius:1.5px;background:#c5d1cb}.logo-grid b:nth-child(5){background:var(--accent)}
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); text-decoration: underline; }

/* breadcrumbs */
.crumbs ol { list-style: none; padding: 0; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* typography */
.prose { padding-top: 28px; padding-bottom: 64px; }
.page-head { margin-bottom: 28px; }
.eyebrow { font-size: 13px; letter-spacing: 0.04em; color: var(--sage); font-weight: 600; margin: 0 0 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 14px; }
h2 { font-size: 27px; margin: 48px 0 12px; }
h3 { font-size: 21px; margin: 32px 0 8px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.meta { font-size: 14px; color: var(--ink-3); margin: 0; }
p, ul, ol { margin: 0 0 18px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 650; }
blockquote { margin: 24px 0; padding: 4px 20px; border-left: 3px solid var(--sage); color: var(--ink-2); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; border-radius: 5px; }

/* home hero */
.t-home .page-head { padding: 28px 0 8px; }
.t-home h1 { font-size: clamp(38px, 6.5vw, 58px); }
.hero-cta { margin-top: 24px; }
.hero-sub { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

/* callouts: use > **Note:** in markdown, or the classes below via attr_list */
.note, .tip { border-radius: var(--radius); padding: 16px 20px; margin: 24px 0; }
.note { background: var(--accent-soft); }
.tip { background: var(--sage-soft); }

/* buttons + CTA */
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; }
.btn:hover { background: #000; text-decoration: none; }
.btn-soon { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); cursor: default; }
.cta { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 20px; margin: 40px 0; text-align: center; }
.cta-title { font: 600 22px/1.3 var(--serif); margin: 0 0 16px; }
.cta-sub { font-size: 14px; color: var(--ink-3); margin: 14px 0 0; }

/* comparison table */
.table-wrap { overflow-x: auto; margin: 24px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.compare { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--serif); font-size: 16px; background: var(--paper-2); }
.compare tbody th { color: var(--ink-2); font-weight: 600; width: 22%; }
.compare td.us { background: var(--sage-soft); }
.table-note { font-size: 13px; color: var(--ink-3); margin-bottom: 28px; }
.prose table:not(.compare):not(.sgrid) { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 15px; }
.prose table:not(.compare):not(.sgrid) th, .prose table:not(.compare):not(.sgrid) td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* sudoku diagram */
.grid-fig { margin: 28px auto; max-width: 380px; }
.sgrid { display: grid; grid-template-columns: repeat(9, 1fr); background: var(--card); border: 2px solid var(--ink); }
.sgrid .cell { aspect-ratio: 1; display: grid; place-items: center; border-right: 1px solid #CFCAC0; border-bottom: 1px solid #CFCAC0;
  font: 500 clamp(14px, 3.6vw, 20px)/1 var(--sans); color: var(--ink-2); }
.sgrid .cell:nth-child(9n) { border-right: 0; }
.sgrid .cell:nth-child(9n+3), .sgrid .cell:nth-child(9n+6) { border-right: 2px solid var(--ink); }
.sgrid .cell:nth-child(n+19):nth-child(-n+27), .sgrid .cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--ink); }
.sgrid .cell:nth-child(n+73) { border-bottom: 0; }
.sgrid .given { color: var(--ink); font-weight: 650; }
.sgrid .hl, .lg.hl { background: #DCE8F0; color: #2E5B7A; font-weight: 650; }
.sgrid .elim, .lg.elim { background: var(--warn-soft); color: #A0533A; font-weight: 650; }
.sgrid .target, .lg.target { background: rgba(79,125,106,.22); color: var(--ink); font-weight: 700; }
.grid-fig figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.grid-fig .legend { display: block; margin-top: 6px; font-size: 13px; }
.lg { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-size: 12px; margin-right: 3px; vertical-align: -3px; }

/* FAQ */
.faq { margin-top: 56px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 22px; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* cards */
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0 28px; }
.cards li { margin: 0; }
.cards a { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.cards a:hover { border-color: var(--ink-3); }
.card-title { display: block; font: 600 17px/1.3 var(--serif); margin-bottom: 6px; }
.card-desc { display: block; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.related { margin-top: 56px; }
.related h2 { margin-top: 0; }

/* series nav */
.series { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.series a { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); background: var(--card); font-weight: 600; }
.series a span { display: block; font-size: 13px; color: var(--ink-3); font-weight: 400; }
.series .next { text-align: right; grid-column: 2; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0 28px; font-size: 14px; color: var(--ink-2); }
.footer-grid { max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 28px; }
.brand-foot { margin: 0 0 8px; font-size: 19px; }
.foot-tag { margin: 0 0 14px; }
.foot-h { font-weight: 650; margin: 0 0 10px; }
.foot-h a { color: var(--ink); text-decoration: none; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin-bottom: 6px; }
.foot-list a { color: var(--ink-2); text-decoration: none; }
.foot-list a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { max-width: 1040px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-legal a { color: var(--ink-2); }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 12px; }
  .main-nav { gap: 16px; }
  h2 { font-size: 24px; }
  .series { grid-template-columns: 1fr; }
  .series .next { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- landing (home + de) ---------- */
.wrap-wide { width:100%; max-width:1040px; margin:0 auto; padding:0 20px; }
.lang-link { font-weight:600; }
.hero { padding: 40px 0 72px; }
.hero-grid { display:grid; grid-template-columns:1.05fr 1fr; gap:56px; align-items:center; }
.hero h1 { font-size: clamp(40px,6vw,64px); line-height:1.05; letter-spacing:-.02em; font-weight:650; margin:0 0 20px; text-wrap:balance; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size:20px; color:var(--ink-3); max-width:32ch; margin:0 0 30px; }
.hero-sub { font-size:14px; color:var(--ink-3); margin-top:14px; max-width:44ch; }
.demo { display:flex; flex-direction:column; gap:14px; align-items:center; }
.board { width:100%; max-width:440px; aspect-ratio:1; background:var(--card); border-radius:10px; outline:1.5px solid rgba(79,125,106,.42); outline-offset:-1.5px;
  box-shadow:0 1px 2px var(--line),0 24px 48px -28px rgba(79,125,106,.42); display:grid; grid-template-columns:repeat(9,1fr); overflow:hidden; container-type:inline-size; }
.board .c { display:grid; place-items:center; font-size:5.6cqw; color:var(--accent); border-right:.5px solid var(--line); border-bottom:.5px solid var(--line); cursor:pointer; user-select:none; font-variant-numeric:tabular-nums; transition:background .15s; }
.board .c:nth-child(9n){border-right:0}.board .c:nth-child(n+73){border-bottom:0}
.board .c:nth-child(9n+3),.board .c:nth-child(9n+6){border-right:1.5px solid rgba(79,125,106,.42)}
.board .c:nth-child(n+19):nth-child(-n+27),.board .c:nth-child(n+46):nth-child(-n+54){border-bottom:1.5px solid rgba(79,125,106,.42)}
.board .c.g{color:var(--ink)} .board .c.peer{background:rgba(79,125,106,.045)} .board .c.same{background:rgba(79,125,106,.08)} .board .c.sel{background:rgba(79,125,106,.17)} .board .c.glow{background:rgba(79,125,106,.08);transition:background .5s}
.pad { display:grid; grid-template-columns:repeat(9,1fr); width:100%; max-width:440px; }
.pad button { font:inherit; border:0; background:none; cursor:pointer; height:48px; font-size:26px; font-weight:300; color:var(--accent); border-radius:8px; }
.pad button:hover { background:rgba(79,125,106,.08); }
.demo small { color:var(--ink-3); font-size:13px; }
.band { padding: 64px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(28px,4vw,40px); line-height:1.15; letter-spacing:-.015em; font-weight:650; margin:0 0 16px; max-width:22ch; text-wrap:balance; }
.band .eyebrow { text-transform:uppercase; letter-spacing:.08em; color:var(--accent); }
.sub { color:var(--ink-3); max-width:58ch; margin:0 0 8px; }
.nolist { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1px; margin-top:36px; background:var(--line); border-radius:14px; overflow:hidden; }
.nolist div { background:var(--card); padding:22px 20px; min-width:0; }
.nolist strong { display:block; font-size:17px; margin-bottom:4px; }
.nolist strong s { text-decoration-color:var(--accent); text-decoration-thickness:1.5px; }
.nolist span { font-size:15px; color:var(--ink-3); }
.nolist a { display:block; margin-top:6px; font-size:14px; }
.features { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; margin-top:40px; }
.features h3 { font-size:18px; margin:0 0 6px; }
.features p { margin:0; color:var(--ink-3); font-size:16px; }
.levels { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:32px 0 20px; }
.level { background:var(--card); border-radius:14px; padding:18px 18px 8px; }
.level-name { font-weight:650; margin:0 0 8px; }
.level ul { padding-left:18px; font-size:15px; color:var(--ink-2); }
.tag { font-size:11px; font-weight:600; padding:2px 7px; border-radius:99px; background:var(--accent-soft); color:var(--accent); vertical-align:2px; margin-left:4px; }
.tag-plus { background:var(--ink); color:var(--card); }
.price { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:36px; max-width:760px; }
.plan { background:var(--card); border-radius:14px; padding:26px 24px; display:flex; flex-direction:column; gap:6px; }
.plan.full { outline:1.5px solid var(--accent); outline-offset:-1.5px; }
.plan .p { font-size:30px; font-weight:650; font-variant-numeric:tabular-nums; }
.plan .p small { font-size:15px; font-weight:400; color:var(--ink-3); }
.plan ul { margin:10px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:6px; font-size:16px; }
.plan li { padding-left:22px; position:relative; margin:0; }
.plan li::before { content:""; position:absolute; left:2px; top:.62em; width:10px; height:1.5px; background:var(--accent); }
.seo-body .prose { padding-top: 0; }
.btn { display:inline-flex; align-items:center; gap:10px; border-radius:12px; }
@media (max-width:820px) {
  .hero-grid { grid-template-columns:1fr; gap:36px; }
  .hero { padding: 16px 0 48px; }
  .features { grid-template-columns:1fr; gap:24px; }
  .levels { grid-template-columns:1fr 1fr; }
  .price { grid-template-columns:1fr; }
  .band { padding: 48px 0; }
}

/* app screenshots */
.shot { margin: 28px auto; text-align: center; }
.shot img { display: block; height: auto; margin: 0 auto; background: var(--card); box-shadow: 0 1px 2px var(--line), 0 24px 48px -28px rgba(79,125,106,.45); outline: 1px solid var(--line); }
.shot-phone img { width: 100%; max-width: 260px; border-radius: 28px; }
.shot-wide img { width: 100%; max-width: 720px; border-radius: 18px; }
.shot figcaption { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.shots-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.shots-row .shot { margin: 0; }
.shot-center { margin-top: 40px; }
@media (max-width: 700px) {
  .shots-row { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots-row .shot { scroll-snap-align: center; }
}
