/* Loomoku website. Paper and thread: flat colour, stitched edges, the app's own felt art.
   Radius rule: cards 18px, buttons 20px (compact 15px), keys 16px, phone frames 13% of width, pills full. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--ink);
  background-color: var(--linen-tint); background-image: var(--linen); background-size: 512px auto; background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.ic { width: 1em; height: 1em; display: inline-block; flex: none; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* Buttons (same clay pill as the app) */
.btn {
  --lip: 4px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; margin-bottom: var(--lip); border-radius: 20px; font-weight: 700; font-size: 19px; line-height: 1.1;
  text-decoration: none; white-space: nowrap; color: #fff; background: var(--clay); border: 1px solid color-mix(in srgb, var(--clay-deep) 60%, transparent);
  box-shadow: 0 var(--lip) 0 var(--clay-deep); transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), box-shadow .18s cubic-bezier(.3, 1.4, .5, 1); cursor: pointer;
}
.btn::after { content: ""; position: absolute; inset: 3.5px; border-radius: 16px; border: 1.2px dashed rgb(255 255 255 / .45); pointer-events: none; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 calc(var(--lip) + 1px) 0 var(--clay-deep); }
.btn:active { transform: translateY(var(--lip)); box-shadow: 0 0 0 var(--clay-deep); }
.btn.paperbtn { color: var(--clay-text); background: var(--card); border: 1.5px solid var(--clay); box-shadow: 0 var(--lip) 0 var(--clay-tint); }
.btn.paperbtn::after { border-color: color-mix(in srgb, var(--clay) 55%, transparent); }
.btn.paperbtn:hover { box-shadow: 0 calc(var(--lip) + 1px) 0 var(--clay-tint); }
.btn.paperbtn:active { box-shadow: 0 0 0 var(--clay-tint); }
.btn.compact { --lip: 3px; min-height: 44px; padding: 0 18px; border-radius: 15px; font-size: 16px; background: var(--clay-deep); box-shadow: 0 var(--lip) 0 #7E3A20; }
.btn.compact:hover { box-shadow: 0 calc(var(--lip) + 1px) 0 #7E3A20; }
.btn.compact::after { border-radius: 11.5px; }
.btn[aria-disabled="true"] { filter: saturate(.5); opacity: .8; pointer-events: none; }
.textbtn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--clay-text); text-decoration: none; background: none; border: 0; padding: 8px 2px; cursor: pointer; font-family: inherit; }
.textbtn:hover { text-decoration: underline; }
.key { display: grid; place-items: center; width: 44px; height: 44px; font-size: 17px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line); cursor: pointer; transition: transform .16s, box-shadow .16s; }
.key:active { transform: translateY(2.5px); box-shadow: 0 .5px 0 var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 3px 6px rgb(var(--shadow) / .08); }
.card::after { content: ""; position: absolute; inset: 4px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent); pointer-events: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px dashed var(--line); }
.nav-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; white-space: nowrap; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--clay-text); }
@media (max-width: 720px) {
  .nav-in { gap: 14px; height: 60px; } .nav nav { gap: 16px; } .nav nav a { font-size: 15px; }
  .nav-cta { display: none; } .nav .brand span { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); align-items: center; gap: 48px; min-height: min(calc(100dvh - 68px), 720px); padding-top: clamp(32px, 5vh, 64px); padding-bottom: clamp(32px, 5vh, 64px); }
.hero h1 { font-size: clamp(36px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-soft); margin-top: 22px; max-width: 27em; line-height: 1.5; }
.hero .cta-row { margin-top: 34px; }

/* Hero art: a felt sun rising behind two real screenshots. Everything is placed in % of one box so it scales as a unit. */
.hero-art { position: relative; width: 100%; max-width: 540px; aspect-ratio: 5 / 6; justify-self: center; }
.phone { position: absolute; aspect-ratio: 786 / 1704; border-radius: 13% / 6%; padding: 1.6%; background: var(--ink); box-shadow: 0 2px 0 1px color-mix(in srgb, var(--ink) 70%, #000), 0 24px 40px rgb(var(--shadow) / .22); }
@media (prefers-color-scheme: dark) { .phone { background: #3A3F4A; box-shadow: 0 2px 0 1px #2A2E36, 0 24px 40px rgb(0 0 0 / .45); } }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 11.5% / 5.3%; }
.hero-art .front { height: 90%; left: 6%; top: 7%; transform: rotate(-4deg); z-index: 3; }
.hero-art .back { height: 76%; right: 1%; top: 17%; transform: rotate(6deg); z-index: 2; }
.felt { position: absolute; pointer-events: none; }
.hero-art .sun { width: 66%; right: -9%; top: -5%; z-index: 1; animation: turn 120s linear infinite; }
.hero-art .cloud { width: 40%; left: -14%; bottom: 3%; z-index: 2; animation: drift 10s ease-in-out infinite alternate; }
.hero-art .b1 { width: 13%; left: -8%; top: 2%; z-index: 4; animation: bob 6s ease-in-out infinite alternate; }
.hero-art .b2 { width: 11%; right: -2%; bottom: 4%; z-index: 4; animation: bob 7.5s ease-in-out -2s infinite alternate; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translateX(18px); } }
@keyframes bob { to { transform: translateY(-14px) rotate(3deg); } }
@media (prefers-color-scheme: dark) { .felt { filter: brightness(.82) saturate(.9); } }
.hero-copy > * { animation: rise .7s cubic-bezier(.16, 1, .3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-art { animation: rise .9s cubic-bezier(.16, 1, .3, 1) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding-top: 40px; padding-bottom: 56px; }
  .hero-copy { text-align: center; } .lede { margin-left: auto; margin-right: auto; } .hero .cta-row { justify-content: center; }
  .hero h1 { font-size: clamp(34px, 6.4vw, 50px); max-width: 15em; margin: 0 auto; }
  .hero-art { max-width: min(440px, 88%); }
}
@media (max-width: 520px) {
  .hero .cta-row { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
}
/* Sections */
.sec { padding: clamp(72px, 9vw, 120px) 0; overflow-x: clip; }
.sec h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 17em; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }
.sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); margin-top: 16px; max-width: 34em; }
.band { background: color-mix(in srgb, var(--paper-deep) 82%, transparent); border-block: 1px dashed var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split p { color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 20px); margin-top: 16px; max-width: 28em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Tile demo */
.tile-demo { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.tile-demo canvas { width: 100%; aspect-ratio: 1; filter: drop-shadow(0 10px 18px rgb(var(--shadow) / .16)); transform: rotate(-2.5deg); }
.tile-demo .pin { width: 21%; right: -7%; top: -8%; transform: rotate(14deg); }
@media (max-width: 860px) { .tile-demo { max-width: min(400px, 86%); } .tile-demo .pin { right: -5%; } }
@media (min-width: 700px) and (max-width: 860px) { .tile-sec .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tile-demo { max-width: 100%; } }
.cloth-sec { padding-bottom: clamp(48px, 6vw, 80px); }
.palettes { display: grid; grid-template-columns: repeat(6, 34px); gap: 12px; margin-top: 28px; }
.palettes button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--card); outline: 1px solid var(--line); cursor: pointer; padding: 0; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1); }
.palettes button:hover { transform: scale(1.12); }
.palettes button[aria-pressed="true"] { outline: 2.5px solid var(--clay); outline-offset: 2px; }
.tile-sec .textbtn { margin-top: 14px; }

/* Chapter cloths */
.cloth-rail { margin-top: 44px; }
.cloths { list-style: none; margin: 0; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px max(24px, calc((100vw - 1132px) / 2)) 22px; scroll-padding-inline: max(24px, calc((100vw - 1132px) / 2)); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cloth { flex: 0 0 clamp(190px, 19vw, 232px); scroll-snap-align: start; }
.cloth img { width: 100%; aspect-ratio: 448 / 560; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 5px 10px rgb(var(--shadow) / .10); background: var(--paper-deep); }
@media (prefers-color-scheme: dark) { .cloth img { filter: brightness(.6) saturate(.92); } }
.cloth:nth-child(even) img { transform: scaleX(-1); }
.cloth p { margin-top: 12px; display: flex; flex-direction: column; line-height: 1.3; }
.cloth b { font-family: var(--serif); font-size: 18px; }
.cloth span { font-size: 14px; color: var(--ink-soft); }
.rail-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
@media (hover: none) { .rail-btns { display: none; } }

/* Bento: five cells, 4+2 then 2+2+2 */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.cell { position: relative; border-radius: 18px; padding: 28px; overflow: hidden; border: 1px solid var(--line); grid-column: span 2; display: flex; flex-direction: column; min-height: 250px; transition-delay: var(--rd, 0s); }
.cell::after { content: ""; position: absolute; inset: 5px; border-radius: 13px; border: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent); pointer-events: none; }
.cell h3 { font-size: 24px; margin-top: auto; }
.cell p { color: var(--ink-soft); margin-top: 10px; font-size: 16px; line-height: 1.5; }
.c-hint { grid-column: span 4; background: var(--gold-tint); flex-direction: row; gap: 24px; padding-bottom: 0; min-height: 330px; }
.c-hint > div:first-child { flex: 1 1 46%; display: flex; flex-direction: column; padding-bottom: 28px; }
.c-hint .crop { position: relative; flex: 0 1 320px; align-self: flex-end; height: 300px; border-radius: 24px 24px 0 0; border: 7px solid var(--ink); border-bottom: 0; overflow: hidden; background: var(--card); box-shadow: 0 -6px 20px rgb(var(--shadow) / .14); }
@media (prefers-color-scheme: dark) { .c-hint .crop { border-color: #3A3F4A; } }
.c-hint .crop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; margin-top: -62%; }
.c-gentle { background: color-mix(in srgb, var(--sage) 22%, var(--card)); }
.c-slip { background: var(--clay-tint); }
.c-slip p, .ladder li:nth-child(3) p { color: color-mix(in srgb, var(--ink) 80%, var(--clay-tint)); }
.c-free { background: var(--indigo-tint); }
.c-tools { background: var(--card); }
.badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: var(--card); border: 1px dashed currentColor; }
.c-gentle .badge { color: var(--sage); } .c-free .badge { color: var(--indigo); }
.c-slip .hearts { display: flex; gap: 4px; } .c-slip .hearts img { width: 50px; height: 50px; }
.c-slip .hearts img:nth-child(2) { animation: shake 3.2s ease-in-out infinite; }
@keyframes shake { 0%, 86%, 100% { transform: none; } 89% { transform: translateX(-5px) rotate(-6deg); } 92% { transform: translateX(5px) rotate(6deg); } 95% { transform: translateX(-3px); } }
.c-tools .keys { display: flex; gap: 8px; }
.c-tools .keys span { width: 50px; height: 50px; display: grid; place-items: center; font-size: 21px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 0 var(--line); }
.c-tools .keys .on { background: var(--clay-tint); border-color: var(--clay); color: var(--clay-text); box-shadow: 0 3px 0 color-mix(in srgb, var(--clay) 70%, transparent); }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cell { grid-column: span 1; } .c-hint { grid-column: span 2; } .c-tools { grid-column: span 2; min-height: 0; } }
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; } .cell, .c-hint, .c-tools { grid-column: span 1; min-height: 0; } .cell h3 { margin-top: 22px; }
  .c-hint { flex-direction: column; gap: 22px; } .c-hint > div:first-child { padding-bottom: 0; } .c-hint .crop { align-self: center; flex: none; width: min(100%, 300px); height: 260px; }
}

/* Quilt */
.quilt { position: relative; margin: 44px auto 0; max-width: 520px; }
.quilt .corner { width: 26%; left: -9%; top: -7%; z-index: 0; transform: rotate(180deg); }
.quilt .quiltgrid { z-index: 1; }
.quiltgrid b { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-align: center; letter-spacing: .02em; }
.quiltgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 5px 12px rgb(var(--shadow) / .10); position: relative; }
.quiltgrid::after { content: ""; position: absolute; inset: 5px; border-radius: 13px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); pointer-events: none; }
.quiltgrid canvas, .quiltgrid i, .quiltgrid span { width: 100%; aspect-ratio: 1; border-radius: 6px; }
.quiltgrid canvas { box-shadow: 0 1px 2px rgb(var(--shadow) / .14); }
@media (max-width: 600px) { .quilt .corner { display: none; } .quiltgrid { gap: 5px; padding: 14px; } }
.quiltgrid i { border: 1px dashed var(--line); }
.quilt figcaption { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }

/* Ladder */
.ladder { list-style: none; padding: 0; margin: 48px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.ladder li { position: relative; border-radius: 18px; padding: 22px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; justify-content: flex-end; transition-delay: var(--rd, 0s); }
.ladder li::after { content: ""; position: absolute; inset: 5px; border-radius: 13px; border: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent); pointer-events: none; }
.ladder .pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 0 0 auto; padding-bottom: 22px; }
.ladder .pips i { aspect-ratio: 1; border-radius: 3px; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.ladder .pips i.past { background: color-mix(in srgb, var(--ink) 16%, transparent); border-color: transparent; }
.ladder .pips i.on { background: var(--ink); border-color: var(--ink); }
.ladder li:nth-child(1) { min-height: 150px; } .ladder li:nth-child(2) { min-height: 200px; background: var(--gold-tint); }
.ladder li:nth-child(3) { min-height: 250px; background: var(--clay-tint); } .ladder li:nth-child(4) { min-height: 300px; background: var(--indigo-tint); }
.ladder b { font-family: var(--serif); font-size: 25px; line-height: 1.1; }
.ladder b + span { font-size: 14px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ladder p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; line-height: 1.4; }
@media (max-width: 800px) { .ladder { grid-template-columns: 1fr 1fr; } .ladder li { min-height: 0 !important; } .ladder .pips { padding-bottom: 18px; } }
@media (max-width: 460px) { .ladder { grid-template-columns: 1fr; } }

.play-sec { padding-block: clamp(16px, 3vw, 40px) clamp(56px, 7vw, 96px); }
/* Play stage: an indigo cloth panel, phones rising from its lower edge */
.stage { --stage: #2F4A8A; --stage-ink: #FBF8F1; --stage-soft: #DCE3F2; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; background: var(--stage); color: var(--stage-ink); border-radius: 28px; padding: 0 0 0 clamp(28px, 5vw, 72px); min-height: 480px; box-shadow: 0 10px 30px rgb(var(--shadow) / .16); }
@media (prefers-color-scheme: dark) { .stage { --stage: #24304F; --stage-soft: #C9D3EA; } }
.stage::after { content: ""; position: absolute; inset: 7px; border-radius: 22px; border: 1.2px dashed rgb(255 255 255 / .28); pointer-events: none; z-index: 3; }
.stage-copy { padding: clamp(44px, 6vw, 72px) 0; position: relative; z-index: 2; }
.stage h2 { color: var(--stage-ink); }
.stage p { color: var(--stage-soft); font-size: clamp(17px, 1.5vw, 20px); margin-top: 16px; max-width: 26em; }
.stage .corner { width: 124px; left: 0; top: 0; z-index: 1; transform: rotate(180deg); }
.stage .btn { box-shadow: 0 var(--lip) 0 #7E3A20; }
.trio { position: relative; align-self: stretch; min-height: 440px; }
.trio .phone { height: auto; width: 34%; box-shadow: 0 2px 0 1px #10172B, 0 24px 40px rgb(0 0 0 / .35); }
.trio .phone:nth-child(1) { left: 2%; top: 22%; transform: rotate(-6deg); z-index: 1; }
.trio .phone:nth-child(2) { left: 33%; top: 12%; width: 37%; z-index: 2; }
.trio .phone:nth-child(3) { right: 0; top: 24%; transform: rotate(6deg); z-index: 1; }
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; padding: 0 28px; text-align: center; gap: 0; }
  .stage p { margin-left: auto; margin-right: auto; } .stage .cta-row { justify-content: center; }
  .stage-copy { padding-bottom: 8px; }
  .trio { min-height: 0; aspect-ratio: 1 / .78; width: 100%; max-width: 460px; margin: 0 auto -1px; }
  .trio .phone:nth-child(1) { top: 16%; } .trio .phone:nth-child(2) { top: 6%; } .trio .phone:nth-child(3) { top: 18%; }
  .stage .corner { width: 96px; }
}
@media (max-width: 520px) { .stage { padding: 0 20px; border-radius: 22px; } .stage::after { border-radius: 16px; } .stage .btn { width: 100%; } }

/* FAQ */
.faq-sec h2 { margin-bottom: 30px; }
.qa { border-bottom: 1px dashed var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: 0; line-height: 1.35; flex: 1; }
.qa summary .ic { color: var(--clay-text); font-size: 18px; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.qa[open] summary .ic { transform: rotate(45deg); }
.qa p { color: var(--ink-soft); padding: 0 34px 22px 0; }
.more { margin-top: 26px; color: var(--ink-soft); }

/* Final */
.final { padding-top: 32px; padding-bottom: clamp(40px, 6vw, 72px); }
.appicon { width: 112px; height: 112px; border-radius: 22%; margin: 0 auto 28px; box-shadow: 0 8px 18px rgb(var(--shadow) / .18); }
.qr { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 860px) {
  .qr { display: inline-flex; align-items: center; gap: 16px; text-align: left; margin-top: 34px; padding: 12px 18px 12px 12px; background: var(--card); border: 1px dashed var(--line); border-radius: 18px; font-size: 15px; color: var(--ink-soft); max-width: 380px; }
  .qr img { width: 104px; height: 104px; border-radius: 8px; background: #fff; flex: none; }
}

/* Footer */
.foot { border-top: 1px dashed var(--line); background: color-mix(in srgb, var(--paper-deep) 82%, transparent); padding: 52px 0 40px; margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; }
.foot-brand p { color: var(--ink-soft); margin-top: 10px; font-size: 15px; }
.foot nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--clay-text); text-decoration: underline; }
.copy { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 22px; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } }

/* Documents: guide, support, legal */
.doc { padding: clamp(44px, 7vw, 88px) 0 40px; }
.doc-head h1 { font-size: clamp(36px, 5vw, 54px); }
.doc-head .meta { color: var(--ink-soft); font-size: 15px; margin-top: 14px; }
.doc-head .lede { max-width: none; }
.doc h2 { font-size: clamp(25px, 3vw, 32px); margin: 56px 0 14px; }
.doc h3 { font-size: 20px; margin: 26px 0 8px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 86%, var(--ink-soft)); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0; } .doc li { margin: 8px 0; }
.doc code { font-size: .9em; background: var(--paper-deep); padding: 2px 6px; border-radius: 6px; }
.legal h2 { font-size: 24px; margin-top: 44px; }
.example { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: center; margin: 28px 0; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.example h3 { margin-top: 0; font-size: 23px; }
.example figure { margin: 0; } .example figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; text-align: center; }
.board { width: 100%; border-radius: 4px; box-shadow: 0 4px 8px rgb(var(--shadow) / .10); }
@media (max-width: 680px) { .example { grid-template-columns: 1fr; } .example figure { max-width: 320px; margin: 0 auto; } }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px !important; padding: 18px 20px; background: var(--gold-tint); border-radius: 18px; border: 1px dashed var(--gold); }
.callout span { color: var(--ink); }
.defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; }
.defs h3 { margin-top: 18px; }
@media (max-width: 680px) { .defs { grid-template-columns: 1fr; } }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.tiers > div { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.tiers > div:nth-child(2) { background: var(--gold-tint); } .tiers > div:nth-child(3) { background: var(--clay-tint); } .tiers > div:nth-child(4) { background: var(--indigo-tint); }
.tiers b { font-family: var(--serif); font-size: 20px; display: block; } .tiers span { font-size: 13px; font-weight: 600; } .tiers p { font-size: 15px; margin-top: 8px; line-height: 1.45; }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }
.tech h3 { font-size: 22px; margin-top: 34px; display: flex; align-items: baseline; gap: 12px; }
.tech h3 span { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.tech dl { margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tech dl > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.tech dt { font-weight: 700; } .tech dd { margin: 6px 0 0; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 680px) { .tech dl { grid-template-columns: 1fr; } }
.keysheet { margin: 18px 0 0; border-top: 1px dashed var(--line); }
.keysheet > div { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 6px 20px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.keysheet dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 14px; } .keysheet dd { margin: 0; }
.doc-head .intro { margin-top: 16px; font-size: 16px; color: var(--ink-soft); max-width: 62ch; }
.grid-table { width: 100%; max-width: 420px; border-collapse: separate; border-spacing: 0; margin: 20px 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; font-size: 15px; font-variant-numeric: tabular-nums; }
.grid-table caption { caption-side: top; text-align: left; font-weight: 600; font-size: 14px; color: var(--ink-soft); padding: 0 2px 8px; }
.grid-table th, .grid-table td { text-align: left; padding: 7px 18px; border-bottom: 1px dashed var(--line); }
.grid-table th { font-size: 13px; font-weight: 700; background: var(--paper-deep); border-bottom-style: solid; }
.grid-table th:first-child { border-top-left-radius: 17px; } .grid-table th:last-child { border-top-right-radius: 17px; }
.grid-table tr:last-child td { border-bottom: 0; }
.glance { margin: 16px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 22px; }
.glance > div { display: grid; grid-template-columns: 160px 1fr; gap: 4px 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.glance > div:last-child { border-bottom: 0; }
.glance dt { font-weight: 700; font-size: 15px; } .glance dd { margin: 0; color: color-mix(in srgb, var(--ink) 86%, var(--ink-soft)); }
@media (max-width: 560px) { .glance > div, .keysheet > div { grid-template-columns: 1fr; } }
.legal ol { padding-left: 24px; margin: 12px 0; } .legal ol li { margin: 12px 0; padding-left: 4px; }
.legal strong { color: var(--ink); }
.legal p, .legal li { max-width: 68ch; }
.nf-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px !important; font-size: 15px; }
kbd { font-family: var(--sans); font-size: 13px; font-weight: 600; background: var(--card); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 8px; padding: 3px 8px; }
.doc-cta { text-align: center; margin-top: 72px; padding: 44px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.doc-cta h2 { margin: 0; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 26px; margin-top: 34px; }
.contact > div { flex: 1 1 320px; } .contact h2 { margin: 0 0 8px; font-size: 24px; } .contact .btn { position: relative; z-index: 1; }
.links { list-style: none; padding: 0 !important; } .links li { padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.notfound { padding: 12vh 0; } .notfound img { margin: 0 auto 10px; } .notfound h1 { font-size: clamp(36px, 6vw, 56px); } .notfound .lede { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
