/* Miki landing site - one stylesheet for every page. Dark like the app, accent pink by default (visitors can recolor it on the home page). */

@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/google-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0e;
  --surface: #141418;
  --surface-2: #1b1b21;
  --text: #f4f4f6;
  --muted: #a4a4b0;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ec407a;
  --accent-ink: #0c0c0f;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 34%, transparent);
  --radius: 22px;
  --maxw: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: 6px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); background: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 999px; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent-glow); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: #24242c; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn[aria-disabled="true"] { cursor: default; }

/* The store badge: disabled "Coming soon" until config.js has the real Google Play link. */
.store-badge { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 16px; border-radius: 16px; background: #000; border: 1px solid #3a3a42; text-decoration: none; line-height: 1.15; transition: transform .2s, border-color .2s; }
.store-badge svg { width: 30px; height: 30px; flex: none; }
.store-badge small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #c9c9d1; }
.store-badge strong { font-size: 19px; font-weight: 700; }
.store-badge[aria-disabled="true"] { cursor: default; opacity: .92; }
.store-badge:not([aria-disabled="true"]):hover { transform: translateY(-2px); border-color: var(--accent); }
.store-badge .soon { margin-left: 6px; font-size: 11px; font-weight: 700; background: var(--accent-soft); color: var(--accent); padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 40px; isolation: isolate; overflow-x: clip; }
.hero::before { content: ""; position: absolute; inset: -120px -10% auto -10%; height: 720px; background: radial-gradient(50% 55% at 72% 38%, var(--accent-glow), transparent 70%), radial-gradient(40% 45% at 12% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); z-index: -1; transition: background .4s; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -0.03em; margin: 22px 0 20px; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-phones { position: relative; display: flex; justify-content: center; min-height: 560px; }

/* ---------- Phone frame ---------- */
.phone { position: relative; width: 270px; aspect-ratio: 1080 / 2340; border-radius: 40px; padding: 9px; background: linear-gradient(160deg, #2b2b33, #121216); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.07), 0 30px 90px -40px var(--accent-glow); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 64px; height: 18px; border-radius: 12px; background: #050507; transform: translateX(-50%); z-index: 2; }
.phone .screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-phones .phone:nth-child(1) { position: absolute; left: 0; top: 60px; transform: rotate(-7deg) scale(.9); opacity: .95; }
.hero-phones .phone:nth-child(2) { position: relative; z-index: 2; transform: translateY(0); }
.hero-phones .phone:nth-child(3) { position: absolute; right: 0; top: 60px; transform: rotate(7deg) scale(.9); opacity: .95; }

/* ---------- Sections ---------- */
section { padding: 90px 0; position: relative; overflow-x: clip; }
.section-head { max-width: 40em; margin: 0 auto 54px; text-align: center; }
.section-head h2, .split h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.025em; margin: 14px 0 14px; font-weight: 700; }
.section-head p, .split p { color: var(--muted); font-size: 19px; margin: 0; }
.kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.card h3 { margin: 18px 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.card .ico svg { width: 26px; height: 26px; }
.c-6 { grid-column: span 6; } .c-4 { grid-column: span 4; } .c-8 { grid-column: span 8; } .c-3 { grid-column: span 3; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media { display: flex; justify-content: center; position: relative; }
.split-media::before { content: ""; position: absolute; inset: 8% 10%; background: radial-gradient(closest-side, var(--accent-glow), transparent); filter: blur(30px); z-index: -1; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-size: 17px; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec407a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* accent picker */
.picker { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 640px; margin: 0 auto; }
.swatch { width: 46px; height: 46px; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer; padding: 0; position: relative; transition: transform .2s; box-shadow: 0 6px 20px -8px var(--c); }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--text); transform: scale(1.12); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; background: var(--tick) center / 20px no-repeat; }
.picker-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: 15px; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise .card { text-align: left; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 32px; padding: 64px 28px; text-align: center; }
.cta-band h2 { margin: 0 0 12px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; }
.cta-band p { color: var(--muted); margin: 0 auto 30px; max-width: 32em; font-size: 19px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { margin: 0 0 14px; color: var(--text); font-size: 15px; letter-spacing: .02em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-small { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: 14px; }
.foot-small .heart { color: var(--accent); }

/* ---------- Legal / text pages ---------- */
.doc { padding: 64px 0 40px; max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 12px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.doc .notice { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 16px; padding: 16px 20px; margin: 22px 0 36px; font-size: 16px; }
.doc h2 { font-size: 26px; letter-spacing: -0.015em; margin: 46px 0 10px; scroll-margin-top: 90px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p, .doc li { color: #cfcfd6; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); background: var(--surface); }
.doc td { color: #cfcfd6; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 24px; margin: 0 0 10px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--accent); }

.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 10px; }
.support-cards .card h3 { margin-top: 14px; }
.support-cards a.mail { color: var(--accent); font-weight: 700; text-decoration: none; word-break: break-all; }

.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.center-page h1 { font-size: clamp(64px, 14vw, 140px); margin: 0; color: var(--accent); }

/* ---------- Reveal on scroll (only when JS is on, never for reduced motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-media { order: 0; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-phones { min-height: 520px; }
  .c-6, .c-4, .c-8, .c-3 { grid-column: span 12; }
  .promise { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .toc ol { columns: 1; }
  .support-cards { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .phone { width: 230px; }
  .hero-phones .phone:nth-child(1), .hero-phones .phone:nth-child(3) { display: none; }
  .hero-phones { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
