/* Kinify website. Layout: ink header band + paper reading column; legal pages use a narrow 66ch column with a sticky contents list on wide screens. */
@font-face { font-family: "Figtree Kinify"; src: url("Figtree-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

:root {
  --ink: #141A33;
  --sticky: #FFD23F;
  --tint: #2F49C8;
  --cheek: #FF8FA3;
  --bg: #F5F4F1;
  --surface: #FFFFFF;
  --fg: #141A33;
  --muted: #5A6079;
  --line: #E2E1DC;
  --band: #141A33;
  --band-fg: #F5F4F1;
  --link: #2F49C8;
  --ph: #FFF1B8;
  --font-display: "Figtree Kinify", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 6vw, 3.6rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0E1A; --surface: #141A33; --fg: #ECEBF2; --muted: #A3A8C2; --line: #262D4D;
    --band: #050710; --band-fg: #F5F4F1; --link: #9DB0FF; --ph: #4A3F12; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0E1A; --surface: #141A33; --fg: #ECEBF2; --muted: #A3A8C2; --line: #262D4D;
  --band: #050710; --band-fg: #F5F4F1; --link: #9DB0FF; --ph: #4A3F12; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--step-0)/1.6 var(--font-body); }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sticky); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.site-head { background: var(--band); color: var(--band-fg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 22%; }
.wordmark { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -0.01em; }
.wordmark .kin { font-weight: 500; opacity: .92; font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif; }
.wordmark .ify { font-weight: 900; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--band-fg); text-decoration: none; opacity: .8; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--sticky); text-decoration-thickness: 2px; }

/* Landing */
.hero { background: var(--band); color: var(--band-fg); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sticky); }
.hero p.lede { font-size: var(--step-1); line-height: 1.5; margin: 0 0 26px; max-width: 34ch; opacity: .9; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .95rem; }
.pill.solid { background: var(--sticky); color: #141A33; }
.pill.ghost { border: 1px solid rgba(245,244,241,.3); color: var(--band-fg); }
.min-w0 { min-width: 0; }

/* Today card mock */
.today { background: #F5F4F1; color: #141A33; border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); max-width: 360px; justify-self: center; width: 100%; }
.today .when { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #5A6079; font-weight: 600; }
.today h2 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.15; margin: 6px 0 16px; letter-spacing: -0.01em; }
.today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.today li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 11px 14px; font-size: .95rem; }
.today li .dot { width: 10px; height: 10px; border-radius: 50%; }
.today li .t { color: #5A6079; font-size: .82rem; font-variant-numeric: tabular-nums; }

section.block { padding-block: 64px; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
h2.sec { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 28px; text-wrap: balance; max-width: 22ch; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.features h3 { font-size: var(--step-1); margin: 0 0 6px; line-height: 1.3; }
.features p { margin: 0; color: var(--muted); }
.features .ex { display: block; margin-top: 10px; font-size: .88rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }

.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.promise div { border-top: 3px solid var(--sticky); padding-top: 14px; }
.promise strong { display: block; font-size: var(--step-1); margin-bottom: 4px; }
.promise p { margin: 0; color: var(--muted); }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 820px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.plan.pro { border: 2px solid var(--sticky); }
.plan h3 { margin: 0; font-size: var(--step-1); }
.plan .price { font-family: var(--font-display); font-size: var(--step-3); font-weight: 900; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.plan .note { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.fine { color: var(--muted); font-size: .9rem; max-width: 70ch; margin-top: 18px; }

/* Legal / text pages */
.page-head { background: var(--band); color: var(--band-fg); }
.page-head .wrap { padding-block: 36px 40px; }
.page-head h1 { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); margin: 0 0 6px; letter-spacing: -0.02em; }
.page-head p { margin: 0; opacity: .8; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-block: 40px 72px; }
.toc { position: sticky; top: 20px; align-self: start; font-size: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--fg); }
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: var(--step-1); line-height: 1.3; margin: 40px 0 10px; scroll-margin-top: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose .num { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: 4px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 32px; }
.summary h2 { margin-top: 0 !important; }
.summary ul { margin: 0; }
.caps { font-weight: 600; }
.ph { background: var(--ph); border-radius: 4px; padding: 0 4px; }
.tbl-wrap { overflow-x: auto; margin: 12px 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }

/* Support */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.contact-card .addr { font-family: var(--font-display); font-size: var(--step-1); user-select: all; word-break: break-all; }
.btn { font: inherit; font-weight: 600; background: var(--sticky); color: #141A33; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; }
details[open] summary { margin-bottom: 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding-block: 28px 36px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 32px 48px; }
  .features, .promise { grid-template-columns: 1fr; gap: 26px; }
  .pricing { grid-template-columns: 1fr; }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* App screens gallery: horizontal snap strip, full-bleed */
.shots-scroll { --edge: max(16px, env(safe-area-inset-left, 0px), calc((100vw - 1080px) / 2 + 16px)); overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-block: 8px 20px; scroll-padding-inline: var(--edge); }
.shots { display: flex; gap: 22px; width: max-content; padding-inline: var(--edge); }
.shot { margin: 0; width: 240px; flex: none; scroll-snap-align: start; display: grid; gap: 12px; }
.shot img { width: 240px; height: auto; aspect-ratio: 390 / 844; border-radius: 30px; border: 6px solid var(--ink); box-shadow: 0 24px 40px -24px rgba(20,26,51,.45); background: var(--surface); }
.shot figcaption { display: grid; gap: 2px; font-size: .9rem; color: var(--muted); }
.shot figcaption strong { color: var(--fg); font-size: 1rem; }
.screens-sec .fine { margin-top: 4px; }
@media (max-width: 860px) { .shot, .shot img { width: 210px; } }
