/* krivo site — the app's look on the web: warm light with soft glows,
   frosted glass, big round corners, Source Serif 4 for the few large lines
   and the phone's own face for everything else. Colours mirror
   core/design_system/lib/src/presets.dart (DsLook); keep them in step. */

@font-face {
  font-family: "Source Serif";
  src: url("/assets/serif.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("/assets/serif-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --page: #FBF8F4;
  --ink: #231F1C;
  --soft: #6B6159;
  --faint: #978C83;
  --line: #E9E1D9;
  --field: #F3EEE8;
  --accent: #B93D70;
  --partner: #7458C4;
  --glass: rgba(255, 255, 255, 0.62);
  --rim: rgba(255, 255, 255, 0.78);
  --btn: #231F1C;
  --on-btn: #FFFFFF;
  --glow-a: rgba(255, 190, 140, 0.55);
  --glow-b: rgba(230, 210, 250, 0.60);
  --glow-c: rgba(236, 160, 220, 0.32);
  --day: linear-gradient(120deg, #FFE3D1 0%, #F9D5E6 50%, #E9DDFB 100%);
  --lift: 0 24px 48px -24px rgba(90, 50, 40, 0.28);
  --serif: "Source Serif", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #15100E;
    --ink: #F7F1EC;
    --soft: #A89C93;
    --faint: #7A7069;
    --line: #3A3431;
    --field: #38312E;
    --accent: #FF7AA8;
    --partner: #B9A2FF;
    --glass: rgba(255, 255, 255, 0.07);
    --rim: rgba(255, 255, 255, 0.12);
    --btn: #F7F1EC;
    --on-btn: #1D1614;
    --glow-a: rgba(240, 140, 70, 0.30);
    --glow-b: rgba(150, 110, 230, 0.22);
    --glow-c: rgba(220, 80, 140, 0.20);
    --day: linear-gradient(120deg, #3A2620 0%, #3A2030 50%, #2C2440 100%);
    --lift: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
/* The glows behind every page: amber top right, lilac on the left, rose low
   down — the same three as the app's page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 100% 0%, var(--glow-a), transparent 60%),
    radial-gradient(50vmax 45vmax at 0% 32%, var(--glow-b), transparent 62%),
    radial-gradient(55vmax 45vmax at 10% 95%, var(--glow-c), transparent 60%);
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

h1, h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em { font-style: italic; color: var(--accent); }
h1 { font-size: clamp(42px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--soft); max-width: 34em; }
.muted { color: var(--soft); }
.small { font-size: 15px; color: var(--soft); }
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--ink); }
.top nav a.btn, .top nav a.btn:hover { color: var(--on-btn); }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 15px; }
@media (max-width: 560px) { .top .hide-sm { display: none; } }

/* Buttons — dark pills, like the app's primary button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px;
  background: var(--btn); color: var(--on-btn);
  font-weight: 600; font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 54px; padding: 0 20px;
  border-radius: 999px;
  background: var(--glass); border: 1px solid var(--rim);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  color: var(--soft); font-size: 15px;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 14px; }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--rim);
  border-radius: 28px;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

/* Hero */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin: 14px 0 22px; }
@media (min-width: 920px) {
  .hero { padding: 56px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}
.crumbs { font-size: 15px; color: var(--soft); }
.crumbs a { color: inherit; }

/* Phone */
.stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(300px, 74vw);
  padding: 9px;
  border-radius: 46px;
  background: #1C1917;
  box-shadow: var(--lift), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 660 / 1434; object-fit: cover; }
.float {
  position: absolute;
  left: max(0px, calc(50% - 250px));
  bottom: 12%;
  width: min(260px, 70vw);
  padding: 16px 18px;
  border-radius: 22px;
  box-shadow: var(--lift);
}
.float .eyebrow { font-size: 11px; }
.float p { margin-top: 4px; font-weight: 600; line-height: 1.35; }
.float .small { margin-top: 2px; font-weight: 400; }
@media (max-width: 919px) { .float { left: 0; bottom: 6%; } }
@media (max-width: 420px) { .float { position: static; width: 100%; margin-top: -40px; } .stage { flex-direction: column; align-items: center; } }

/* Sections */
section.block { padding: 48px 0; }
@media (min-width: 920px) { section.block { padding: 72px 0; } }
.head { max-width: 40em; margin-bottom: 32px; }
.head p { margin-top: 14px; }

/* Feature rows: text beside a phone */
.row { display: grid; gap: 36px; align-items: center; padding: 28px 0; }
.row .copy p { margin-top: 16px; }
.row ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row li { display: flex; gap: 12px; align-items: baseline; }
.row li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.row .more { display: inline-block; margin-top: 22px; font-weight: 600; }
@media (min-width: 860px) {
  .row { grid-template-columns: 1fr 1fr; gap: 64px; padding: 40px 0; }
  .row.flip .copy { order: 2; }
}

/* Tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 0; padding: 0; list-style: none; }
.tile { padding: 22px; border-radius: 24px; }
.tile svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.tile p { margin-top: 6px; color: var(--soft); font-size: 16px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); } .tiles.n4 { grid-template-columns: repeat(2, 1fr); } .hero .phone { width: 330px; } }
@media (max-width: 599px) {
  .tile { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 18px; }
  .tile svg { grid-row: span 2; margin: 2px 0 0; }
  .tile p { margin-top: 2px; }
  .row .phone { width: min(250px, 64vw); }
  .row { padding: 20px 0; }
}

/* The day's card — the app's gradient card, for the one band that matters */
.day {
  background: var(--day);
  border-radius: 32px;
  padding: 36px 28px;
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) { .day { padding: 52px 56px; grid-template-columns: 1.2fr 1fr; align-items: center; } }
.day p { margin-top: 14px; color: var(--soft); }
.plans { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plans li { padding: 10px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--rim); font-size: 15px; font-weight: 600; }

/* Lists of questions */
.qgroups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.qgroup { padding: 22px 24px; border-radius: 24px; }
.qgroup ul { margin: 10px 0 0; padding: 0; list-style: none; }
.qgroup li { font-family: var(--serif); font-size: 19px; line-height: 1.35; padding: 10px 0; border-top: 1px solid var(--line); }
.qgroup li:first-child { border-top: 0; }

ol.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
ol.steps li { counter-increment: s; padding: 22px; border-radius: 24px; }
ol.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 34px; color: var(--accent); line-height: 1; margin-bottom: 10px; }

ul.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
ul.points li { padding: 16px 20px; border-radius: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 20px; padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--soft); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--soft); }

/* Guides */
.guides { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 0; padding: 0; list-style: none; }
.guides a { display: block; height: 100%; padding: 22px 24px; border-radius: 24px; text-decoration: none; }
.guides a:hover { border-color: var(--accent); }
.guides strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.2; }
.guides span { display: block; margin-top: 8px; color: var(--soft); font-size: 15px; }

.note { font-size: 14px; color: var(--faint); max-width: 48em; }

/* Closing call */
.closing { text-align: center; padding: 56px 0 72px; }
.closing .cta { justify-content: center; }

/* Footer */
footer.site { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }
