/* Tabito website. Plain CSS, no external fonts or files. Colours come from the app's brand tokens. */
:root {
  color-scheme: light dark;
  --bg: #f4fafa;
  --surface: #ffffff;
  --surface-2: #e9f3f4;
  --line: #d3e2e4;
  --text: #111418;
  --muted: #475560;
  --accent: #1d6a76;
  --accent-ink: #14525c;
  --accent-soft: #d4ecee;
  --on-accent: #ffffff;
  --gold: #8a5200;
  --gold-soft: #fbefd2;
  --deep: #0a5258;
  --focus: #14525c;
  --shadow: 0 1px 2px rgb(10 50 56 / 0.06), 0 8px 24px rgb(10 50 56 / 0.08);
  --radius: 20px;
  --gutter: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081a1e;
    --surface: #10282d;
    --surface-2: #153339;
    --line: #264249;
    --text: #e6f3f4;
    --muted: #a3bcc0;
    --accent: #5fc0cb;
    --accent-ink: #8fd6de;
    --accent-soft: #12353b;
    --on-accent: #062428;
    --gold: #f2c25c;
    --gold-soft: #3a2d0e;
    --deep: #0a3a40;
    --focus: #f2c25c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font: 800 1.45rem/1 var(--font-brand); letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-nav a { display: inline-block; padding: 0.55rem 0; color: var(--text); text-decoration: none; font-weight: 500; font-size: 1rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 650; }

/* Hero */
.hero { background: linear-gradient(145deg, #0a5258 0%, #1d6a76 100%); color: #ffffff; }
.hero .wrap { display: grid; gap: 2rem; align-items: center; padding-block: 3rem 3.5rem; }
.hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }
.hero h1 { font: 700 clamp(1.6rem, 4.2vw, 2.4rem)/1.2 var(--font-brand); letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 26ch; }
.hero .lead { font-size: 1.1rem; max-width: 36rem; margin: 0 0 1.5rem; color: #e6f3f4; }
.soon { display: inline-flex; flex-direction: column; gap: 0.1rem; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.4); border-radius: 14px; padding: 0.6rem 1.1rem; }
.soon strong { font-size: 1.05rem; }
.soon span { font-size: 0.9rem; color: #e6f3f4; }
@media (min-width: 48rem) {
  .hero .wrap { grid-template-columns: auto 1fr; gap: 3rem; padding-block: 4.5rem 5rem; }
  .hero-icon { width: 200px; height: 200px; border-radius: 44px; }
}

/* Sections and cards */
.section { padding-block: 3rem; }
.section h2 { font: 800 clamp(1.5rem, 4vw, 2rem)/1.2 var(--font-brand); letter-spacing: -0.01em; margin: 0 0 0.5rem; }
.section .intro { color: var(--muted); max-width: 40rem; margin: 0 0 2rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.band { background: var(--surface-2); border-block: 1px solid var(--line); }
.band .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .band .wrap { grid-template-columns: 2fr 1fr; } }
.band p { margin: 0 0 1rem; max-width: 40rem; }
.button { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 650; text-decoration: none; padding: 0.8rem 1.4rem; border-radius: 999px; min-height: 48px; }
.button:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--accent-ink); border: 2px solid var(--accent); }

/* Reading pages */
.page-head { background: linear-gradient(145deg, #0a5258 0%, #1d6a76 100%); color: #ffffff; }
.page-head .wrap { padding-block: 2.5rem 2.75rem; }
.page-head h1 { font: 800 clamp(1.8rem, 5vw, 2.6rem)/1.15 var(--font-brand); letter-spacing: -0.02em; margin: 0 0 0.5rem; }
.page-head p { margin: 0; color: #e6f3f4; max-width: 40rem; }
.prose { max-width: 46rem; padding-block: 2.5rem 4rem; }
.prose h2 { font: 800 1.5rem/1.25 var(--font-brand); letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }
.notice { background: var(--accent-soft); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.notice.warn { background: var(--gold-soft); border-left-color: var(--gold); }
.notice > :last-child { margin-bottom: 0; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 2rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
@media (min-width: 40rem) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { margin-bottom: 0.25rem; break-inside: avoid; }
.steps { padding-left: 1.4rem; }
.steps li { padding-left: 0.3rem; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; }

/* Data table that stacks on phones */
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.97rem; }
.data-table caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
.data-table th, .data-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--surface-2); font-size: 0.9rem; }
@media (max-width: 45.99rem) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.5rem 0.25rem; margin-bottom: 0.9rem; }
  .data-table td { border: 0; padding: 0.35rem 0.8rem; }
  .data-table td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
}

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 0.75rem; }
summary { cursor: pointer; padding: 0.95rem 1.1rem; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-ink); }
details[open] summary::after { content: "\2212"; }
details > :not(summary) { margin-inline: 1.1rem; }
details > :last-child { margin-bottom: 1rem; }

/* Footer */
.site-footer { background: var(--deep); color: #e6f3f4; margin-top: 2rem; }
.site-footer .wrap { display: grid; gap: 1.75rem; padding-block: 2.5rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: #ffffff; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.6rem; color: #bfe0e4; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer p { margin: 0 0 0.5rem; }
.site-footer .small { font-size: 0.92rem; color: #bfe0e4; }
.site-footer :focus-visible { outline-color: #f2c25c; }

.not-found { padding-block: 4rem; text-align: center; }
.not-found h1 { font: 800 clamp(2rem, 6vw, 3rem)/1.1 var(--font-brand); margin: 0 0 1rem; }
.links-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }

/* Wordmark, hero links, phone frames */
.wordmark { display: block; width: 150px; height: auto; margin: 0 0 1rem; }
.hero .text-link { color: #ffffff; font-weight: 600; }
.hero :focus-visible { outline-color: #f2c25c; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.25rem 0 0; }
.phone { margin: 0; text-align: center; }
.phone-frame { display: block; width: min(100%, 15rem); margin-inline: auto; padding: 8px; border-radius: 34px; background: #1a2428; box-shadow: var(--shadow); }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 26px; background: var(--surface); }
.phone figcaption { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); }
.showcase { display: grid; gap: 2rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* Features page */
.badge { display: inline-block; font: 700 0.78rem/1.4 var(--font); letter-spacing: 0.03em; padding: 0.15rem 0.65rem; border-radius: 999px; border: 1px solid currentColor; vertical-align: middle; white-space: nowrap; }
.badge.available { color: #146c3a; background: #dff3e6; }
.badge.built { color: #8a5200; background: var(--gold-soft); }
.badge.dev { color: #3a3f9e; background: #e4e6fb; }
.badge.planned { color: #475560; background: #e9eef0; }
@media (prefers-color-scheme: dark) {
  .badge.available { color: #7fdc9f; background: #12341f; }
  .badge.built { color: #f2c25c; background: #3a2d0e; }
  .badge.dev { color: #b3b8ff; background: #23265a; }
  .badge.planned { color: #b7c7cb; background: #1c3238; }
}
.features-layout { display: grid; gap: 1.5rem; padding-block: 2rem 4rem; }
@media (min-width: 62rem) { .features-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; } }
.features-layout > * { min-width: 0; }
.area-media > * { min-width: 0; }
.side-toc ul { list-style: none; margin: 0; padding: 0; }
.side-toc a { display: block; padding: 0.45rem 0.7rem; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.98rem; }
.side-toc a:hover { background: var(--surface-2); }
@media (max-width: 61.99rem) {
  .side-toc { position: sticky; top: 0; z-index: 5; background: var(--bg); margin-inline: calc(var(--gutter) * -1); padding: 0.5rem var(--gutter); border-bottom: 1px solid var(--line); }
  .side-toc ul { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.25rem; }
  .side-toc a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0.5rem 0.9rem; min-height: 44px; }
}
@media (min-width: 62rem) { .side-toc { position: sticky; top: 1rem; } }
.area { margin-bottom: 2.75rem; scroll-margin-top: 5rem; }
.area h2 { font: 800 1.6rem/1.2 var(--font-brand); margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; }
.area p { color: var(--muted); max-width: 42rem; }
.area ul { padding-left: 1.25rem; max-width: 44rem; }
.area li { margin-bottom: 0.4rem; }
.area-media { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .area-media { grid-template-columns: minmax(0, 1fr) 14rem; align-items: start; } }

/* How it works */
.journey { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.journey > li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; box-shadow: var(--shadow); }
.journey > li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; }
.journey h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.journey p { margin: 0 0 0.6rem; color: var(--muted); }
.tip { font-size: 0.95rem; background: var(--gold-soft); border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0.5rem 0 0; }
.journey .tip, .prose .tip { color: var(--text); }

/* Pricing */
.price-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin: 1.5rem 0; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.price-card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.price { font: 800 2rem/1.2 var(--font-brand); margin: 0; }
.price-card p { margin: 0.35rem 0 0; color: var(--muted); }
.wide { max-width: 68rem; }
