/* Gochi website. Colours from the app's Theme.swift. Font: SF Pro Rounded on Apple devices, self-hosted Nunito (SIL OFL) elsewhere. */
@font-face {
  font-family: "Nunito";
  src: url("Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --coral: #FF7A61;
  --peach: #FFB885;
  --sunshine: #FFC745;
  --gold: #F7AD1A;
  --mint: #4DCC9E;
  --sky: #549EFF;
  --lavender: #9E80FA;
  --rose: #FF6B9E;
  --teal: #33B3CC;
  --paper: #FFF7F0;
  --ink: #2A1F3D;
  --ink-soft: #5E5370;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(42, 31, 61, 0.08);
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(60, 30, 80, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  /* Same font as the app on Apple devices (SF Pro Rounded); Nunito elsewhere. */
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(60rem 40rem at 0% 0%, rgba(255, 184, 133, 0.55), transparent 60%),
    radial-gradient(50rem 36rem at 100% 0%, rgba(255, 199, 69, 0.35), transparent 60%),
    radial-gradient(50rem 40rem at 100% 45%, rgba(77, 204, 158, 0.22), transparent 60%),
    radial-gradient(50rem 40rem at 0% 70%, rgba(158, 128, 250, 0.22), transparent 60%),
    radial-gradient(50rem 40rem at 100% 100%, rgba(84, 158, 255, 0.18), transparent 60%);
  background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 850; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.grad {
  background: linear-gradient(90deg, var(--coral), var(--rose) 45%, var(--lavender));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 247, 240, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.5rem; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 750; font-size: 1rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
}
.nav a:hover { background: rgba(255, 255, 255, 0.8); color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 24px; }
.lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 34em; font-weight: 600; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow);
}
.soon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.store-badge img { height: 54px; width: auto; }
.note { font-weight: 700; color: var(--ink-soft); }
.hero-phones { position: relative; height: 720px; }
.phone { position: absolute; width: 290px; filter: drop-shadow(0 30px 40px rgba(60, 30, 80, 0.3)); }
.phone.front { left: 8%; top: 0; z-index: 2; }
.phone.back { left: 44%; top: 70px; transform: rotate(6deg); opacity: 0.96; }

/* Sections */
.section { padding: 72px 0; }
.section h2 { text-align: center; }
.section-lead { text-align: center; color: var(--ink-soft); font-size: 1.15rem; font-weight: 600; margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow);
}
.c-mint { --c: var(--mint); } .c-lavender { --c: var(--lavender); } .c-sunshine { --c: #E8A60C; }
.c-sky { --c: var(--sky); } .c-rose { --c: var(--rose); } .c-teal { --c: var(--teal); }
.c-coral { --c: var(--coral); } .c-gold { --c: var(--gold); }
.feature p { color: var(--ink-soft); font-size: 1rem; margin: 0; font-weight: 600; }
.f-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--c) 22%, white); color: var(--c);
}
.f-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Gochi character */
.gochi-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, rgba(255, 184, 133, 0.45), rgba(255, 107, 158, 0.22) 55%, rgba(158, 128, 250, 0.25));
  border-radius: 32px; padding: 48px;
}
.gochi h2 { text-align: left; }
.gochi-text > p { font-size: 1.15rem; font-weight: 600; color: var(--ink-soft); }
.gochi-friends { justify-self: center; width: 100%; max-width: 440px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 32px; margin: 10px 0; font-weight: 700; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Screenshots */
.screens h2 { margin-bottom: 32px; }
.gallery {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(20px, calc((100vw - 1080px) / 2)) 30px; scrollbar-width: thin;
}
.gallery img {
  flex: 0 0 auto; width: 260px; border-radius: 26px; scroll-snap-align: center; box-shadow: var(--shadow);
}
.gallery:focus-visible { outline: 3px solid var(--lavender); outline-offset: -3px; }

/* Privacy */
.private-card {
  display: flex; gap: 28px; align-items: flex-start; max-width: 860px; margin: 0 auto;
  background: var(--card); border-radius: 32px; padding: 40px; box-shadow: var(--shadow);
}
.private h2 { text-align: left; }
.private p { color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; }
.lock {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--mint), var(--teal)); color: #fff;
}
.lock svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.text-link { font-weight: 800; color: #D9503A; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Plans */
.crown-text { color: var(--gold); }
.plans { align-items: start; display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; max-width: 920px; margin: 0 auto; }
.plan { background: var(--card); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.plan h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.plan-plus {
  background: linear-gradient(160deg, rgba(255, 199, 69, 0.38), rgba(255, 122, 97, 0.22)), rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(247, 173, 26, 0.55);
}
.plan-plus .ticks li::before { background-color: var(--gold); }
.crown { width: 30px; height: 30px; fill: var(--gold); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.prices div {
  background: rgba(255, 255, 255, 0.85); border-radius: 18px; padding: 14px 8px; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.prices strong { font-size: 1.35rem; font-weight: 900; }
.prices span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; line-height: 1.3; }
.prices .best { outline: 2px solid var(--gold); }
.fine { font-size: 0.9rem; color: var(--ink-soft); margin: 16px 0 0; font-weight: 600; }

/* FAQ */
.faq details {
  background: var(--card); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; box-shadow: 0 8px 24px -16px rgba(60, 30, 80, 0.25);
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 850; font-size: 1.1rem; padding: 18px 28px 18px 0; position: relative;
}
summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--coral); font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-soft); font-weight: 600; padding-bottom: 6px; }

/* Footer */
.foot { padding: 40px 0 32px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.45); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 10px; }
.foot-brand div { display: flex; flex-direction: column; font-size: 0.95rem; }
.foot-brand span { color: var(--ink-soft); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 800; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.legal-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 20px; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }

/* Legal pages (privacy, terms) */
.doc { padding: 48px 0 72px; }
.doc article {
  background: var(--card); border-radius: 28px; padding: 44px; box-shadow: var(--shadow);
}
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { text-align: left; font-size: 1.5rem; margin-top: 1.6em; }
.doc p, .doc li { color: #3E3352; font-weight: 550; }
.doc a { color: #D9503A; font-weight: 700; overflow-wrap: anywhere; }

/* Smaller screens */
@media (max-width: 960px) {
  .hero-inner, .gochi-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-icon { margin: 0 auto 20px; }
  .lead { margin: 0 auto 1em; }
  .cta-row { justify-content: center; }
  .wide-only { display: none; }
  .hero-phones { height: 580px; max-width: 460px; width: 100%; margin: 0 auto; }
  .phone { width: 240px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gochi-inner { padding: 36px 28px; }
  .gochi h2 { text-align: center; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding-top: 36px; }
  .hero-phones { height: 490px; }
  .phone { width: 200px; }
  .phone.front { left: 4%; }
  .phone.back { left: auto; right: 4%; }
  .features { grid-template-columns: 1fr; }
  .feature { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px; }
  .f-icon { grid-row: span 2; margin: 0; }
  .feature h3 { margin: 4px 0 4px; }
  .section { padding: 56px 0; }
  .gallery img { width: 220px; }
  .private-card { flex-direction: column; padding: 28px; }
  .plan { padding: 24px; }
  .prices strong { font-size: 1.15rem; }
  .doc article { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Language menu (no JavaScript: a <details> dropdown) */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; color: var(--ink-soft);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.lang summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 180px;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 40px -12px rgba(60, 30, 80, 0.35); border: 1px solid var(--line);
}
.lang li a { display: block; padding: 9px 14px; border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink); }
.lang li a:hover { background: var(--paper); }
.lang li a[aria-current="page"] { background: color-mix(in srgb, var(--coral) 16%, white); }
@media (max-width: 600px) {
  .nav a { display: none; }
  .lang li a { display: block; }
}
