/* KikaApp.com. Brand pink #FF9494 (same as the app). Buttons and pink text use
   the deeper --rose so white-on-pink and pink-on-white pass WCAG AA contrast. */
:root {
  --pink: #FF9494;
  --pink-soft: #FFE3E0;
  --rose: #C94B55;
  --rose-dark: #A93A44;
  --ink: #1F1416;
  --ink-soft: #5E4E50;
  --cream: #FFF9F7;
  --tint: #FFF0ED;
  --line: #F2DCD8;
  --night: #140B0D;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(120, 40, 48, 0.08);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }
h1, h2, h3 { font-family: var(--round); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.92rem; }
.eyebrow { font: 700 0.82rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--rose); margin-bottom: 0.9em; }
.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 40em; }
.lead.small { font-size: 1.1rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 247, 0.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 800 1.25rem/1 var(--round); }
.brand img { border-radius: 9px; }
.brand-dim { color: var(--rose); }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--pink-soft); color: var(--rose-dark); }
.site-nav .lang { border: 1px solid var(--line); margin-left: 6px; }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 820px) {
  .nav-button { display: grid; gap: 6px; width: 44px; height: 44px; place-content: center; cursor: pointer; border-radius: 12px; }
  .nav-button span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s; }
  .nav-toggle { display: block; position: absolute; right: 20px; width: 44px; height: 44px; opacity: 0; cursor: pointer; z-index: 2; margin: 0; }
  .site-nav { position: absolute; top: calc(66px + env(safe-area-inset-top)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 20px 18px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .site-nav .lang { margin: 6px 0 0; text-align: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-button span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle:checked + .nav-button span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--rose); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 0; font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: var(--rose-dark); color: #fff; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.btn-ghost-dark { color: var(--ink); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost-dark:hover { color: var(--ink); border-color: var(--pink); }
.btn-store { background: var(--ink); color: #fff; }
.btn-store:hover { color: #fff; }
.btn-store.btn-light { background: #fff; color: var(--ink); }
.btn-store.btn-light:hover { color: var(--ink); }
.btn-store .apple { width: 18px; height: 22px; margin-top: -3px; }
.btn-store.is-soon { cursor: default; }
.btn-store.is-soon:hover { transform: none; }
.btn-small { min-height: 42px; padding: 9px 18px; font-size: 0.95rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }

/* Hero (home) */
.hero { background: radial-gradient(1200px 500px at 75% 40%, rgba(255, 148, 148, 0.22), transparent 60%), var(--night); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: min(78vh, 680px); padding: 64px 0; }
.hero .eyebrow { color: var(--pink); }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, 0.78); }
.hero-art .neon { width: 100%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 24px; gap: 8px; }
  .hero-art { order: -1; max-width: 460px; margin: -10px auto 0; }
}

/* Inner page hero */
.page-hero { padding: 72px 0 40px; background: linear-gradient(180deg, var(--tint), var(--cream)); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { margin-bottom: 0; }

/* Sections */
.section { padding: 72px 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split-simple { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) {
  .split, .split.reverse, .split-simple { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > .photo-spot:first-child { order: 2; }
  .section { padding: 56px 0; }
}

/* Cards */
.cards { display: grid; gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink-soft); }
.card .num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pink-soft); color: var(--rose-dark); font: 800 1.1rem/1 var(--round); margin-bottom: 16px; }
.cards.compact .card { padding: 22px; }
.card.price { text-align: center; }
.price-big { font: 800 2.8rem/1 var(--round); color: var(--rose); margin: 4px 0 6px; }
.price-unit { font-weight: 700; color: var(--ink) !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }

/* Steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--rose); color: #fff; display: grid; place-items: center; font: 800 1rem/1 var(--round); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--ink-soft); margin: 0; }
.steps.compact { gap: 14px; margin-top: 14px; }
.steps.compact li { padding-left: 46px; min-height: 32px; }
.steps.compact li::before { width: 32px; height: 32px; font-size: 0.9rem; }
.steps.compact p { color: var(--ink); padding-top: 3px; }

.checks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px; border-radius: 50%; background: var(--pink-soft); box-shadow: inset 0 0 0 5px var(--pink-soft), inset 0 0 0 9px var(--rose); }

/* Photo spots (placeholders for real photos and screenshots) */
.photo-spot { aspect-ratio: 4 / 3; border-radius: 28px; background: radial-gradient(circle at 30% 25%, #FFD2CC, transparent 55%), linear-gradient(135deg, #FFB3AE, var(--pink) 55%, #F27D86); display: grid; place-items: center; box-shadow: var(--shadow); }
.photo-spot.tall { aspect-ratio: 4 / 5; }
.photo-spot img { width: 28%; opacity: 0.9; border-radius: 22%; box-shadow: 0 12px 30px rgba(140, 40, 50, 0.25); }
.photo-spot.phone { aspect-ratio: 9 / 19; width: min(300px, 80%); margin-inline: auto; border-radius: 46px; border: 10px solid var(--ink); box-shadow: 0 30px 60px rgba(60, 20, 25, 0.25); }
.photo-spot.phone img { width: 42%; }

/* FAQ */
.faq { display: grid; gap: 10px; margin: 12px 0 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--rose); border-bottom: 2.5px solid var(--rose); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-soft); }
.faq .answer p { margin: 0; }
.faq-section { margin: 34px 0 6px; font-size: 1.05rem; color: var(--rose-dark); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--sans); }
.spaced { margin-top: 64px; }
.pill-nav { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.pill-nav a { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--ink); }
.more { margin-top: 24px; font-weight: 700; }

/* Prose (legal, policies) */
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; margin-bottom: 40px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rose-dark); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { font-weight: 700; }

/* Download band */
.band { background: var(--night); color: #fff; padding: 60px 0; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: rgba(255, 255, 255, 0.75); margin: 0; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.footer-grid .muted { margin: 14px 0 18px; }
.brand-footer { font-size: 1.15rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--rose); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Card pages: email action, 404, share links */
.card-page { min-height: 100vh; min-height: 100dvh; background: radial-gradient(900px 500px at 50% -10%, var(--pink-soft), transparent 70%), var(--cream); }
.card-shell { width: min(460px, 100% - 32px); margin: 0 auto; padding: calc(48px + env(safe-area-inset-top)) 0 48px; }
.brand-center { display: flex; justify-content: center; margin-bottom: 26px; font-size: 1.4rem; }
.brand-center img { border-radius: 11px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 20px 50px rgba(120, 40, 48, 0.1); padding: 36px 30px; text-align: center; overflow: hidden; }
.panel h1 { font-size: 1.75rem; }
.panel .muted { font-size: 1.02rem; }
.panel .actions { margin-top: 22px; }
.panel .share-image { margin: -36px -30px 26px; width: calc(100% + 60px); max-width: none; aspect-ratio: 4 / 3; object-fit: cover; }
.panel .share-image.placeholder { background: linear-gradient(135deg, #FFB3AE, var(--pink)); }
.panel .hint { font-size: 0.88rem; color: var(--ink-soft); margin: 16px 0 0; }
.rating { font-weight: 700; color: var(--ink); }
.spinner { width: 38px; height: 38px; margin: 8px auto 18px; border-radius: 50%; border: 4px solid var(--pink-soft); border-top-color: var(--rose); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; position: relative; }
.status-icon.ok { background: var(--pink-soft); }
.status-icon.ok::after { content: ""; position: absolute; left: 23px; top: 15px; width: 14px; height: 26px; border-right: 4px solid var(--rose); border-bottom: 4px solid var(--rose); transform: rotate(45deg); }
.status-icon.warn { background: #FFF1DC; }
.status-icon.warn::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 2rem/1 var(--round); color: #A35A00; }
.form { text-align: left; display: grid; gap: 14px; margin-top: 18px; }
.field span { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.field input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; background: var(--cream); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--pink-soft); }
.check { display: flex; gap: 8px; align-items: center; font-size: 0.95rem; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; accent-color: var(--rose); }
.notice { border-radius: 12px; padding: 12px 14px; font-size: 0.95rem; margin: 0; text-align: left; }
.notice.warn { background: #FFF1DC; color: #7A4300; }
.notice.ok { background: var(--pink-soft); color: var(--rose-dark); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 0.01ms !important; }
}

/* Share pages (rendered by functions/sharePages.js) */
.price-tag { font: 800 1.5rem/1 var(--round); color: var(--rose); margin: 0 0 14px; }
.panel .notice { margin: 14px 0 0; text-align: center; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; text-align: left; }
.mini { text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.mini img, .mini-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--pink-soft); }
.mini-name { font-size: 0.85rem; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mini-price { font-size: 0.82rem; color: var(--ink-soft); }
