/* Dokotela — public website */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #356BDC;
  --brand-strong: #2552B8;
  --brand-deep: #173A8F;
  --sky: #EAF1FF;
  --navy: #0B1A3D;
  --navy-2: #13254F;
  --navy-line: #24396A;
  --canvas: #F7F9FD;
  --surface: #FFFFFF;
  --ink: #0E1A33;
  --ink-2: #4B5A75;
  --ink-3: #74829B;
  --line: #E3E9F3;
  --mint: #12A679;
  --emergency: #B4210B;
  --emergency-wash: #FDECE8;
  --fill: #FFF1B8;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 1px 2px rgba(14, 26, 51, .05), 0 12px 32px -12px rgba(14, 26, 51, .14);
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0A1428; --surface: #111E3A; --ink: #EEF2FA; --ink-2: #B3C0D9; --ink-3: #8696B4;
    --line: #22335A; --sky: #15264A; --emergency: #FFB2A2; --emergency-wash: #3A1C1A; --fill: #4A3F12;
    --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0A1428; --surface: #111E3A; --ink: #EEF2FA; --ink-2: #B3C0D9; --ink-3: #8696B4;
  --line: #22335A; --sky: #15264A; --emergency: #FFB2A2; --emergency-wash: #3A1C1A; --fill: #4A3F12;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #8FB1FF; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.fill { background: var(--fill); color: var(--ink); padding: 0 5px; border-radius: 4px; }
.icon { width: 22px; height: 22px; stroke-width: 1.9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 30px -10px rgba(5, 20, 60, .5); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgba(53, 107, 220, .7); }
.btn-brand:hover { background: var(--brand-strong); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- Header (sits on the blue hero) ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 34px; }
/* Wordmark: Poppins letters with the speech-bubble mark as the first 'o' */
.logo { display: block; width: auto; }
.site-header .logo { height: 34px; }
.site-header .logo .lt, .site-header .logo .bb { fill: #fff; }
.site-header .logo .cx { fill: var(--brand); }
.site-footer .logo { height: 78px; }
.site-footer .logo .lt { fill: #BE341C; }
.site-footer .logo .bb { fill: #436BD5; }
.site-footer .logo .cx { fill: #fff; }
.site-footer .logo .tg { fill: #4A4A4A; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { color: var(--brand-deep); background: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.site-nav .nav-cta:hover { color: var(--brand-deep); }

/* Solid header for the legal pages */
.site-header.solid { position: static; background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(120, 170, 255, .45), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(16, 40, 120, .9), transparent 60%),
    linear-gradient(160deg, #3A73E4 0%, #2655C2 45%, #173A8F 100%);
  padding: 150px 0 0;
}
.hero::after { /* soft fade into the page below */
  content: ""; position: absolute; inset: auto 0 0; height: 120px;
  background: linear-gradient(transparent, rgba(11, 26, 61, .25));
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.hero-copy { padding-bottom: clamp(56px, 9vw, 120px); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14px; font-weight: 500; margin-bottom: 26px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE3B3; box-shadow: 0 0 0 4px rgba(91, 227, 179, .25); }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 12ch; }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 44ch; margin: 24px 0 36px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding: 0; list-style: none; color: rgba(255, 255, 255, .85); font-size: 15px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { width: 18px; height: 18px; color: #A9C6FF; }

/* Phone */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(340px, 100%); background: #0B1630; border-radius: 46px 46px 0 0; padding: 12px 12px 0;
  box-shadow: 0 40px 80px -30px rgba(3, 12, 40, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.screen { background: #F3F6FC; border-radius: 36px 36px 0 0; overflow: hidden; min-height: 470px; color: #0E1A33; }
.screen-top { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; background: #fff; border-bottom: 1px solid #E3E9F3; }
.screen-top .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.screen-top .avatar svg { width: 20px; height: 23px; }
.screen-top strong { display: block; font-size: 15px; font-weight: 700; }
.screen-top small { font-size: 12.5px; color: var(--mint); font-weight: 600; }
.thread { padding: 16px 14px 22px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: 14px; line-height: 1.45; background: #fff; box-shadow: 0 1px 1px rgba(14, 26, 51, .06); color: #0E1A33; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { border-bottom-left-radius: 6px; }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--brand); margin-bottom: 2px; }
.bubble .opts { display: flex; gap: 6px; margin-top: 8px; }
.bubble .opts span { font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--sky); padding: 5px 10px; border-radius: 999px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA8C2; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px;
  padding: 12px 16px 12px 12px; box-shadow: 0 24px 50px -20px rgba(3, 12, 40, .6);
  font-size: 14px; line-height: 1.3;
}
.float-card strong { display: block; font-weight: 700; font-size: 14px; }
.float-card span { color: var(--ink-2); font-size: 13px; }
.float-card .badge { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #E3F7EF; color: var(--mint); flex: none; }
.float-card .badge.blue { background: var(--sky); color: var(--brand); }
.float-card .badge .icon { width: 20px; height: 20px; }
.float-a { left: -8%; top: 61%; }
.float-b { right: -6%; top: 6%; }

/* The conversation plays once */
@media (prefers-reduced-motion: no-preference) {
  .thread > * { opacity: 0; transform: translateY(8px); animation: rise .5s ease-out forwards; }
  .thread > :nth-child(1) { animation-delay: .4s; }
  .thread > :nth-child(2) { animation-delay: 1.2s; }
  .thread > :nth-child(3) { animation-delay: 2.0s; }
  .thread > :nth-child(4) { animation-delay: 2.6s; }
  .thread > :nth-child(5) { animation-delay: 3.4s; }
  .float-card { opacity: 0; animation: rise .6s ease-out forwards; }
  .float-a { animation-delay: 3.9s; }
  .float-b { animation-delay: 1.6s; }
  .typing i { animation: blink 1.2s infinite; }
  .typing i:nth-child(2) { animation-delay: .2s; }
  .typing i:nth-child(3) { animation-delay: .4s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; color: var(--brand); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 18px; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.steps li { position: relative; counter-increment: step; }
.step-icon {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; position: relative;
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow-soft); margin-bottom: 22px;
}
.step-icon::after {
  content: counter(step); position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; display: grid; place-items: center;
}
.steps h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Emergency */
.emergency {
  display: flex; gap: 18px; align-items: flex-start; margin-top: clamp(48px, 6vw, 72px);
  background: var(--emergency-wash); border-radius: var(--radius-md); padding: 22px 24px;
}
.emergency .icon { color: var(--emergency); width: 26px; height: 26px; flex: none; margin-top: 2px; }
.emergency h3 { color: var(--emergency); font-size: 17px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.emergency p { color: var(--ink); font-size: 16px; }
.emergency strong { white-space: nowrap; }

/* Feature bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { background: var(--surface); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-soft); border: 1px solid var(--line); }
.tile .tile-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.tile h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile.wide { grid-column: span 4; }
.tile.narrow { grid-column: span 2; }
.tile.third { grid-column: span 2; }
.tile.feature {
  background: linear-gradient(150deg, #3A73E4, #1E47AE); color: #fff; border: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.tile.feature p { color: rgba(255, 255, 255, .85); }
.tile.feature .tile-icon { background: rgba(255, 255, 255, .15); color: #fff; }
.mini-thread { display: flex; flex-direction: column; gap: 8px; width: 230px; }
.mini-thread .bubble { font-size: 13px; }
.mini-thread .bubble.me { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.tick-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.tick-list .icon { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 3px; }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding-bottom: 22px; }

/* Closing call to action */
.cta-band { padding: 0 0 clamp(72px, 10vw, 128px); }
.cta-card {
  border-radius: 36px; padding: clamp(40px, 6vw, 72px); color: #fff; text-align: center;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(120, 170, 255, .5), transparent 60%),
    linear-gradient(150deg, #3A73E4, #173A8F);
}
.cta-card h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.cta-card p { color: rgba(255, 255, 255, .85); font-size: 18px; margin: 16px auto 32px; max-width: 46ch; }
.cta-card .cta-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-2); padding: 64px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer .brand { margin-bottom: 18px; display: inline-block; }
.site-footer h4 { color: var(--ink); font-size: 15px; font-weight: 700; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-base { border-top: 1px solid var(--line); color: var(--ink-3); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.site-footer .fill { color: var(--ink); }


@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-footer .logo .lt { fill: #F06A4E; }
  :root:not([data-theme="light"]) .site-footer .logo .bb { fill: #5B8DEF; }
  :root:not([data-theme="light"]) .site-footer .logo .tg { fill: #B3C0D9; }
}
:root[data-theme="dark"] .site-footer .logo .lt { fill: #F06A4E; }
:root[data-theme="dark"] .site-footer .logo .bb { fill: #5B8DEF; }
:root[data-theme="dark"] .site-footer .logo .tg { fill: #B3C0D9; }

/* ---------- Legal pages ---------- */
.doc-hero { background: var(--navy); color: #fff; padding: 56px 0 64px; }
.doc-hero h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; }
.doc-hero p { color: #B9C6E2; margin-top: 12px; }
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h2 { font-size: 22px; font-weight: 700; margin: 44px 0 12px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-top: 12px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { color: var(--ink); font-weight: 700; background: var(--sky); }
.doc td { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .faq-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .phone-stage { margin-top: 24px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.wide, .tile.narrow, .tile.third { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-header .logo { height: 28px; }
  .hero { padding-top: 120px; }
  .float-a { left: 0; top: 61%; }
  .float-b { right: 0; top: 4%; }
  .tile.feature { grid-template-columns: 1fr; }
  .mini-thread { width: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide, .tile.narrow, .tile.third { grid-column: span 1; }
  .tile { padding: 24px; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: span 1; }
  .hero .btn { width: 100%; }
}
