/* Clanish landing. Tokens from brand/clanish/tokens.css (Kobalt), light by default, dark via prefers-color-scheme. */
:root {
  --primary: #2f66f5;
  --primary-ink: #ffffff;
  --link: #1f4bc4;          /* #2f66f5 on #f2f6ff is only 4.4:1; this is 7:1 */
  --dot: #ee4f76;
  --sun: #ffc531;
  --sky: #22c3d6;
  --text: #0e1b40;
  --muted: #4a5a85;
  --bg: #f2f6ff;
  --card: #ffffff;
  --line: rgba(14, 27, 64, 0.12);
  --shadow: 0 1px 2px rgba(14, 27, 64, 0.06), 0 18px 40px -12px rgba(14, 27, 64, 0.22);
  --ph-bg: #fff0b8;
  --ph-ink: #0e1b40;
  --font-head: "Fraunces", Georgia, serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --link: #9bb8ff;
    --dot: #ffc531;
    --text: #f2f6ff;
    --muted: #b4c0e0;
    --bg: #0e1b40;
    --card: #15286a;
    --line: rgba(242, 246, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -12px rgba(0, 0, 0, 0.55);
    --ph-bg: #ffc531;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.15em; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* dev disclaimer: cannot be dismissed, no script */
.env-note { background: #ffc531; color: #0e1b40; font-size: 0.85rem; font-weight: 600; text-align: center; padding: 0.5rem 1rem; line-height: 1.4; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 36px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--text); text-decoration: none; border-radius: 999px; }
.lang:hover { background: var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 2px solid var(--primary); transition: transform 0.15s ease, box-shadow 0.15s ease; box-shadow: 0 8px 20px -8px rgba(47, 102, 245, 0.65); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(47, 102, 245, 0.7); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--link); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { border-color: var(--link); box-shadow: none; }
.btn--light { background: #fff; color: #1f4bc4; border-color: #fff; box-shadow: none; }

.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); margin-bottom: 0.9em; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 34em; }

/* hero */
.hero { padding: 40px 0 24px; overflow: hidden; }
.hero__in { display: grid; gap: 36px; }
.hero h1 { font-size: clamp(2.4rem, 9.5vw, 3.9rem); margin-bottom: 0.45em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__shot { display: flex; justify-content: center; }
.hero__shot .phone { width: min(300px, 74vw); }

/* phone shots */
.phone { border-radius: 36px; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }

/* how it works */
.how { padding: 56px 0 24px; }
.how__head { margin-bottom: 40px; }
.how__head h2 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); max-width: 16em; }
.block { display: grid; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); align-items: center; }
.block h3 { font-size: clamp(1.6rem, 5.6vw, 2.2rem); margin-bottom: 0.5em; }
.block__shot { display: flex; justify-content: center; }
.block__shot .phone { width: min(280px, 72vw); }
.ticks { list-style: none; margin: 1.2em 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 0.56em; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* closing */
.closing { background: var(--primary); color: #fff; padding: 64px 0; margin-top: 32px; text-align: center; }
.closing h2 { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 0.4em; }
.closing p { color: #e8efff; max-width: 30em; margin-inline: auto; margin-bottom: 1.6em; font-size: 1.1875rem; }
@media (prefers-color-scheme: dark) { .closing { background: #2f66f5; } }

/* footer */
.foot { padding: 40px 0 48px; }
.foot__in { display: grid; gap: 14px; }
.foot__tag { color: var(--muted); margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__nav a { color: var(--text); padding: 6px 0; }
.foot__copy { color: var(--muted); font-size: 0.875rem; margin: 6px 0 0; }

/* legal pages */
.legal { padding: 36px 0 24px; }
.legal h1 { font-size: clamp(2rem, 7.5vw, 3rem); margin-bottom: 0.3em; }
.legal__back { margin-bottom: 1.6em; font-size: 0.95rem; }
.legal__meta { color: var(--muted); font-size: 0.95rem; }
.legal section { margin-top: 2.2em; }
.legal h2 { font-size: 1.45rem; margin-bottom: 0.6em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.5em; padding-left: 0.2em; }
.legal li::marker { color: var(--primary); }
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0.05em 0.35em; border-radius: 6px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .hero { padding: 72px 0 40px; }
  .hero__in { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  .hero__shot .phone { width: min(340px, 100%); }
  .block { grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0; }
  .block--flip .block__text { order: 2; }
  .block__shot .phone { width: min(320px, 100%); }
  .foot__in { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .foot__copy { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
