/* zoopi.gr — the public page.
 *
 * Dark-first on purpose: one committed visual world, not a theme switch. So
 * every colour is explicit and nothing is inherited from the host. The legal
 * pages keep _shared.css and its light/dark pair; they are read in a mail
 * client's browser and have a different job.
 *
 * No build step, no framework, no bundle to fail. Same rule as the rest of
 * this folder.
 *
 * Every colour below is lifted from the app: lib/theme.ts for the palette,
 * components/Logo.tsx for the three logo inks, components/LostPoster.tsx for
 * the coral of a missing-dog band, app.json for #11B84E (the Android icon
 * ground, and the brightest green the brand owns).
 */

:root {
  /* ground */
  --void:    #04130C;   /* #033824 taken down to a green-black, never #000 */
  --deep:    #062318;
  --panel:   #08291B;
  --panel-2: #0B3322;
  --edge:    rgba(191, 245, 196, .14);
  --edge-2:  rgba(191, 245, 196, .08);

  /* brand greens — Logo.tsx + theme.ts + app.json */
  --green:   #11B84E;
  --emerald: #059354;
  --jade:    #21A463;
  --logo-oo: #00A959;
  --mint:    #BFF5C4;
  --glow:    #E3FFE4;

  /* ink on the dark ground */
  --white:   #FFFFFF;
  --text:    #CFE3D5;
  --dim:     #8BA894;
  --faint:   #5F7A69;

  /* the two accents, each with exactly one job */
  --gold:    #FBBF24;   /* Plus, and nothing else */
  --coral:   #FF5A4E;   /* a missing dog, and nothing else */

  /* the app's own light surfaces, for the phone screens */
  --app-bg:   #F7F8F7;
  --app-surf: #FFFFFF;
  --app-ink:  #111827;
  --app-body: #4B5563;
  --app-mut:  #6B7280;
  --app-rule: #E5E7EB;
  --app-mint: #DCFCE7;
  --app-green:#16A34A;
  --app-deep: #15803D;

  --display: 'Manrope', 'Noto Sans Display', system-ui, -apple-system, sans-serif;
  --body: 'Commissioner', 'Noto Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --col: 1140px;
  --r: 20px;
}

*, *::before, *::after { 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;
  background: var(--void);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The street grid. Two hairline sets plus one emerald bloom overhead — the
   whole "futuristic" ground is three gradients and costs nothing. */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(1100px 620px at 50% -14%, rgba(17,184,78,.16), transparent 70%),
    radial-gradient(760px 520px at 88% 8%, rgba(0,169,89,.09), transparent 72%),
    repeating-linear-gradient(to right,  rgba(191,245,196,.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, rgba(191,245,196,.035) 0 1px, transparent 1px 88px);
}
body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }

a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--glow); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #032013; padding: .7rem 1rem;
  font-weight: 700; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; z-index: 99; }

/* ─── type ─────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--display);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(1.7rem, 6vw, 4.6rem); overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3rem); letter-spacing: -.024em; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.25; }

/* Greek needs a hair more room: the diacritics sit above the cap line and the
   words are longer, so the tightest tracking that works in Latin crowds it. */
html[lang="el"] h1 { font-size: clamp(1.6rem, 5.3vw, 4.05rem); letter-spacing: -.018em; }
html[lang="el"] h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); letter-spacing: -.016em; }
html[lang="el"] .eyebrow { letter-spacing: .1em; }

p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--white); font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.05rem;
  display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before {
  content: ''; width: 7px; height: 7px; flex: 0 0 auto;
  background: var(--green); border-radius: 2px;
  box-shadow: 0 0 12px rgba(17,184,78,.9);
}

.lede { font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--text); max-width: 46ch; }
.small { font-size: .875rem; color: var(--dim); line-height: 1.55; }
.tiny  { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
         text-transform: uppercase; color: var(--faint); }

/* ─── shell ────────────────────────────────────────────────────────── */

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 22px; }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.rule { height: 1px; background: linear-gradient(to right, transparent, var(--edge), transparent); }

/* ─── nav ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1.4rem;
  max-width: var(--col); margin: 0 auto; padding: 1rem 22px;
  background: rgba(4,19,12,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav.stuck { border-bottom-color: var(--edge-2); }
.nav-logo { flex: 0 0 auto; }
.nav-logo img { width: 108px; height: auto; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--text);
  padding: .2rem 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--white); border-bottom-color: var(--green); }
.nav-right { display: flex; align-items: center; gap: .7rem; }

.lang { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--edge);
        border-radius: 999px; background: rgba(8,41,27,.7); }
.lang button {
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .09em;
  padding: .32rem .62rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--dim); cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--green); color: #042113; font-weight: 700; }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"]:hover { color: #042113; }

/* ─── buttons ──────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--body); font-size: .96rem; font-weight: 700;
  padding: .92rem 1.5rem; border-radius: 14px; border: 1px solid transparent;
  background: var(--green); color: #042113;
  box-shadow: 0 10px 34px -12px rgba(17,184,78,.75);
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { background: #17cd59; color: #042113; transform: translateY(-1px);
             box-shadow: 0 14px 40px -12px rgba(17,184,78,.9); }
.btn:active { transform: translateY(0); }
.btn.sm { padding: .58rem 1rem; font-size: .87rem; border-radius: 11px; box-shadow: none; }
.btn.ghost {
  background: rgba(191,245,196,.06); color: var(--mint);
  border-color: var(--edge); box-shadow: none;
}
.btn.ghost:hover { background: rgba(191,245,196,.11); color: var(--glow); }

/* Store buttons. `.soon` is what they look like until the listings are live —
   the label swaps to "Coming to …" and the badge stops pretending to be a
   link, because a store button that 404s is worse than one that waits. */
.stores { display: flex; flex-wrap: wrap; gap: .7rem; }
.store {
  display: inline-flex; align-items: center; gap: .72rem;
  padding: .72rem 1.15rem .72rem 1rem;
  border: 1px solid var(--edge); border-radius: 15px;
  background: linear-gradient(180deg, rgba(191,245,196,.07), rgba(191,245,196,.02));
  color: var(--white); min-width: 202px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.store:hover { border-color: rgba(191,245,196,.32); transform: translateY(-1px); color: var(--white); }
.store svg { width: 25px; height: 25px; flex: 0 0 auto; fill: var(--white); }
.store span { display: block; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
              text-transform: uppercase; color: var(--dim); }
.store b { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.store.soon { cursor: default; opacity: .78; }
.store.soon:hover { transform: none; border-color: var(--edge); }

/* ─── hero ─────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  align-items: center;
  margin-top: clamp(2rem, 3.5vw, 3rem);
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 0; max-width: 18ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(104deg, var(--glow) 4%, var(--green) 52%, var(--logo-oo) 96%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--green);
}
.hero .lede { max-width: 44ch; margin-bottom: 1.9rem; }
.hero .stores { margin-bottom: 1.1rem; }

.promises { display: flex; flex-wrap: wrap; gap: .45rem 1.3rem; margin-top: 1.5rem; }
.promises li { list-style: none; font-size: .845rem; color: var(--dim);
               display: flex; align-items: center; gap: .45rem; }
.promises li::before {
  content: ''; width: 14px; height: 14px; flex: 0 0 auto; border-radius: 50%;
  background: rgba(17,184,78,.18);
  box-shadow: inset 0 0 0 1px rgba(17,184,78,.55);
}
.promises ul { margin: 0; padding: 0; }

/* the trail behind the phone */
.stage { position: relative; display: flex; justify-content: center; }
.trail { position: absolute; inset: -8% -14%; z-index: 0; pointer-events: none; }
.trail path { fill: none; stroke: rgba(17,184,78,.55); stroke-width: 2.5;
              stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 0; }
.trail rect { fill: rgba(17,184,78,.4); }
@media (prefers-reduced-motion: no-preference) {
  .trail path { animation: draw 4.2s cubic-bezier(.65,.02,.3,1) .2s both; }
  .trail rect { animation: cell 3.4s ease-out both; }
  @keyframes draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
  @keyframes cell { 0%, 30% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
}
.trail rect { transform-box: fill-box; transform-origin: center; }

/* ─── stats ────────────────────────────────────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
         background: var(--edge-2); border: 1px solid var(--edge-2); border-radius: var(--r);
         overflow: hidden; }
.stats div { background: var(--deep); padding: 1.5rem 1.35rem; }
.stats b { display: block; font-family: var(--display); font-size: 2.05rem; font-weight: 800;
           letter-spacing: -.03em; color: var(--green); line-height: 1;
           font-variant-numeric: tabular-nums; }
.stats p { margin: .6rem 0 0; font-size: .855rem; color: var(--dim); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

/* ─── generic two-column section ───────────────────────────────────── */

.split { display: grid; gap: clamp(2.2rem, 5vw, 4.2rem); align-items: center;
         grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.split.narrow-text { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split.narrow-text { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}
.split .body { max-width: 52ch; }

/* ─── cards ────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel), var(--deep));
  border: 1px solid var(--edge-2); border-radius: var(--r);
  padding: 1.6rem 1.5rem 1.7rem;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--edge); transform: translateY(-2px); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .925rem; color: var(--dim); margin: 0; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 1.05rem;
  display: grid; place-items: center;
  background: rgba(17,184,78,.13); box-shadow: inset 0 0 0 1px rgba(17,184,78,.28);
}
.card .ico svg { width: 21px; height: 21px; stroke: var(--green); fill: none;
                 stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card.coral .ico { background: rgba(255,90,78,.13); box-shadow: inset 0 0 0 1px rgba(255,90,78,.3); }
.card.coral .ico svg { stroke: var(--coral); }

/* a bordered list where each line is a fact, not a bullet */
.facts { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.facts li { position: relative; padding: .85rem 0 .85rem 1.4rem;
            border-top: 1px solid var(--edge-2);
            font-size: .93rem; line-height: 1.55; color: var(--text); }
.facts li:last-child { border-bottom: 1px solid var(--edge-2); }
.facts li::before {
  content: ''; position: absolute; left: 0; top: 1.45rem;
  width: 6px; height: 6px;
  border-radius: 2px; background: var(--green); box-shadow: 0 0 10px rgba(17,184,78,.8);
}

.note {
  margin-top: 1.7rem; padding: 1.1rem 1.25rem; border-radius: 15px;
  background: rgba(17,184,78,.09); border: 1px solid rgba(17,184,78,.24);
  color: var(--mint); font-size: .92rem;
}
.note.gold { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.26); color: #FDE68A; }

/* ─── phone ───────────────────────────────────────────────────────── */

/* A frame around a real screenshot. There is no imitation of the app here any
   more: the images in /screens are captures of the running app, so the site
   cannot drift away from what people actually get. Regenerate them the same
   way after any screen changes — see the README. */

.phone {
  position: relative; z-index: 1;
  width: 320px; max-width: 100%;
  border-radius: 48px; padding: 10px;
  background: linear-gradient(168deg, #16452f, #061b12 62%);
  box-shadow: 0 1px 0 rgba(191,245,196,.22) inset,
              0 46px 84px -30px rgba(0,0,0,.9),
              0 0 0 1px rgba(191,245,196,.12);
}
.phone img { width: 100%; height: auto; border-radius: 39px; display: block; }

/* ─── plus ─────────────────────────────────────────────────────────── */

.plus-card {
  border-radius: 24px; padding: clamp(1.9rem, 3.4vw, 2.8rem);
  background: linear-gradient(152deg, #0C3C24, #05220F 72%);
  border: 1px solid rgba(251,191,36,.2);
}
.price { display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.6rem 0 0; }
.price div { border: 1px solid var(--edge); border-radius: 15px; padding: 1rem 1.25rem; min-width: 168px;
             background: rgba(0,0,0,.2); }
.price b { display: block; font-family: var(--display); font-size: 1.85rem; font-weight: 800;
           letter-spacing: -.03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.price span { font-size: .8rem; color: var(--dim); }
.price div.best { border-color: rgba(251,191,36,.45); }
.price em { font-style: normal; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
            text-transform: uppercase; color: #042113; background: var(--gold);
            border-radius: 5px; padding: 2px 6px; margin-left: .5rem; }
.plus-list { margin: 1.9rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.plus-list li { display: flex; gap: .85rem; }
.plus-list b { display: block; color: var(--white); font-weight: 700; font-size: .98rem; }
.plus-list p { margin: .2rem 0 0; font-size: .89rem; color: var(--dim); }
.plus-list li::before { content: '✓'; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
                        border-radius: 7px; display: grid; place-items: center; font-size: .75rem;
                        font-weight: 700; color: #042113; background: var(--gold); }

/* ─── faq ──────────────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--edge-2); }
.faq details:last-of-type { border-bottom: 1px solid var(--edge-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 2.2rem 1.25rem 0; position: relative;
  font-family: var(--display); font-size: 1.06rem; font-weight: 700; letter-spacing: -.012em;
  color: var(--white);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: .3rem; top: 1.6rem;
  width: 9px; height: 9px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .ans { padding: 0 1.5rem 1.35rem 0; font-size: .95rem; color: var(--dim); }
.faq .ans p:not(:last-child) { margin-bottom: .8rem; }

/* ─── closing ──────────────────────────────────────────────────────── */

.close-band {
  border-radius: 26px; padding: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 4vw, 3.4rem);
  background:
    radial-gradient(660px 340px at 18% 0%, rgba(17,184,78,.3), transparent 68%),
    linear-gradient(150deg, #0A3822, #04160D 78%);
  border: 1px solid var(--edge);
  text-align: center;
}
.close-band .stores { justify-content: center; margin-top: 2rem; }
.close-band .lede { margin: 1.2rem auto 0; }

footer { padding: 3.4rem 0 3.6rem; border-top: 1px solid var(--edge-2); }
.fgrid { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; align-items: flex-start;
         justify-content: space-between; }
footer img.mark { width: 46px; height: auto; }
.fnav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.fnav a { font-size: .875rem; color: var(--dim); }
.fnav a:hover { color: var(--white); }
.legal { margin-top: 2.2rem; font-size: .8rem; color: var(--faint); max-width: 62ch; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { gap: .7rem; }
  .nav-right { margin-left: auto; }
  body { font-size: 16.5px; }
}
