/* ElaEat website. Lagoon palette from plans/design-system/themes/lagoon.css; fonts self-hosted.
   Layout: full-width bands, content in one centred .wrap (max 1120 px, same gutters everywhere). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/Nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: dark; /* colours are locked: the site is always the dark Lagoon look */
  --paper: #10191a;
  --surface: #182425;
  --ink: #e8efee;
  --muted: #9db0af;
  --primary: #1a7f8e;
  --primary-text: #7fd0da;
  --on-primary: #ffffff;
  --tint-proposal: #133338;
  --proposal-line: #24484e;
  --on-track: #6cc77a;
  --tint-on-track: #1a3020;
  --apricot: #e89a6a;
  --tint-brand: #3a2619;
  --hairline: #263536;
  --hero-from: #10191a;
  --hero-to: #12343a;
  --band-white: #142021;
  --card-on-white: #182425;
  --band-teal: #0e6e7c;
  --on-band-teal: #ffffff;
  --footer-bg: #0a1213;
  --footer-ink: #e8efee;
  --footer-muted: #9db0af;
  --footer-link: #7fd0da;
  --header-bg: rgba(16, 25, 26, 0.82);
  --phone-body: #050909;
  --radius: 20px;
  --gutter: 20px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-text); text-underline-offset: 0.15em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--primary-text); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: 0.9rem; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }

/* ---------- Header: sticky; blur and border appear once the page scrolls ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-solid linear both;
    animation-timeline: scroll(root);
    animation-range: 0 48px;
  }
  @keyframes header-solid {
    from { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
    to { background: var(--header-bg); border-bottom-color: var(--hairline); }
  }
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 38px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 26px; }
.header-nav ul a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.header-nav ul a:hover { color: var(--primary-text); }
.cta-pill {
  background: var(--primary); color: var(--on-primary);
  text-decoration: none; font-weight: 800; font-size: 0.95rem;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap;
}
.cta-pill:hover { filter: brightness(1.08); }
@media (min-width: 760px) { .header-nav ul { display: flex; } }

/* ---------- CTA ---------- */
.cta-block { display: flex; flex-direction: column; align-items: flex-start; }
.cta {
  display: inline-block;
  background: var(--primary); color: var(--on-primary);
  font-weight: 800; font-size: 1.1rem; text-decoration: none;
  padding: 16px 30px; border-radius: 999px; min-height: 48px;
  box-shadow: 0 8px 22px rgba(14, 110, 124, 0.25);
}
.cta:hover { filter: brightness(1.08); }
.cta-note { font-size: 0.9rem; color: var(--muted); margin: 10px 0 0; }
.qr-chip { display: none; }
@media (min-width: 900px) {
  .qr-chip {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 18px 0 0; padding: 8px 16px 8px 8px;
    background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
    font-size: 0.88rem; font-weight: 700; color: var(--muted); max-width: 300px; line-height: 1.35;
  }
  .qr-chip img { width: 72px; height: 72px; border-radius: 8px; flex: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 32px 0 56px;
  margin-top: -69px; padding-top: 101px; /* gradient runs up under the transparent header */
  overflow: hidden;
}
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { margin-bottom: 1.5em; max-width: 34em; }

.hero-visual { margin: 0; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.hero-visual::before {
  /* deliberate apricot glow behind the phone */
  content: ""; position: absolute; z-index: 0;
  width: 115%; aspect-ratio: 1; top: 0; left: 50%; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 162, 114, 0.7) 0%, rgba(242, 162, 114, 0.3) 38%, rgba(242, 162, 114, 0) 66%);
}
.hero-visual figcaption { position: relative; font-size: 0.85rem; color: var(--muted); margin-top: 16px; text-align: center; }

.phone {
  position: relative; z-index: 1;
  width: min(100%, 324px);
  aspect-ratio: 393 / 852; /* iPhone 15/16 proportions */
  padding: 11px;
  background: var(--phone-body);
  border-radius: 54px;
  box-shadow: 0 30px 60px rgba(16, 42, 46, 0.22), inset 0 0 0 2px #3a4748;
}
.phone::before {
  /* the island */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 999px; background: var(--phone-body); z-index: 2;
}
.phone-screen {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--paper);
  border-radius: 43px;
  padding: 54px 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow: hidden;
}
.app-composer {
  display: flex; align-items: center; gap: 8px;
  margin: 0 12px; padding: 6px 6px 6px 14px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 0.78rem; color: var(--muted);
}
.app-composer span:first-child { flex: 1; }
.app-send { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); position: relative; }
.app-send::after {
  content: ""; position: absolute; left: 10px; top: 9px; width: 7px; height: 7px;
  border: solid var(--on-primary); border-width: 2px 2px 0 0; transform: rotate(-45deg);
}
.app-home { width: 120px; height: 5px; border-radius: 999px; background: var(--ink); opacity: 0.85; margin: 12px auto 9px; }
.app-status { position: absolute; top: 18px; left: 34px; font-weight: 800; font-size: 0.8rem; }
.app-bubble {
  margin: 12px 0 10px auto; font-size: 0.82rem; width: fit-content; max-width: 85%;
  background: var(--primary); color: var(--on-primary);
  padding: 8px 12px; border-radius: 16px 16px 4px 16px; font-weight: 700;
}
.app-proposal { background: var(--tint-proposal); border-radius: 18px; padding: 12px; display: grid; gap: 8px; }
.app-prop-head { margin: 0; font-weight: 800; font-size: 0.86rem; color: var(--primary-text); }
.app-change-title { margin: 0; font-weight: 800; font-size: 0.78rem; color: var(--ink); }
.app-change-title span { color: var(--muted); margin-right: 2px; }
/* Before / After side by side, as in the app's ProposalCard */
.app-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.app-side {
  display: grid; align-content: start; gap: 3px;
  background: var(--surface); border-radius: 12px; padding: 8px;
  font-size: 0.7rem; line-height: 1.3; color: var(--muted);
}
.app-side-label { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.app-side-name { font-weight: 800; font-size: 0.76rem; }
.app-side-nums { font-variant-numeric: tabular-nums; }
.app-side-nums span { white-space: nowrap; }
.is-before .app-side-name { text-decoration: line-through; text-decoration-color: var(--muted); }
.is-after { box-shadow: inset 0 0 0 1.5px var(--primary-text); }
.is-after .app-side-label { color: var(--primary-text); }
.is-after .app-side-name, .is-after .app-side-nums { color: var(--ink); }
.app-deltas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.app-deltas li {
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.7rem;
  font-variant-numeric: tabular-nums; padding: 2px 9px; border-radius: 999px;
}
.app-foot { margin: 0; padding-top: 8px; border-top: 1px solid var(--proposal-line); font-size: 0.68rem; color: var(--muted); }
.app-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.app-btn { background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 0.78rem; padding: 7px 12px; border-radius: 999px; }
.app-btn-text { background: transparent; color: var(--muted); padding: 7px 2px; }

/* Use-case slider inside the phone: CSS scroll-snap, slider.js adds dots state and autoplay */
.slides {
  display: flex; flex: 1; min-height: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 2px solid var(--primary-text); outline-offset: -4px; border-radius: 37px; }
.slide {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  padding: 0 14px 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.app-case {
  margin: 0 0 auto; align-self: flex-start; /* the chat sits at the bottom, above the composer */
  font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--primary-text); background: var(--tint-proposal); padding: 3px 9px; border-radius: 999px;
}

.app-change-title.is-big { font-size: 0.86rem; }
.app-change-title.has-rule { padding-top: 8px; border-top: 1px solid var(--proposal-line); }
.app-muted-line { margin: 0; font-size: 0.7rem; color: var(--muted); }
.app-side-empty { font-size: 0.74rem; color: var(--muted); }
.app-side-value { font-size: 0.76rem; font-variant-numeric: tabular-nums; }
.is-after .app-side-value { color: var(--ink); font-weight: 800; }
.app-compare.is-compact .app-side { padding: 6px 8px; }
.app-status-pill {
  margin: 0; justify-self: start;
  background: var(--tint-on-track); color: var(--on-track);
  font-weight: 800; font-size: 0.68rem; padding: 3px 9px; border-radius: 999px;
}
.app-days { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 12px; }
.app-days li {
  display: grid; grid-template-columns: 16px 1fr 10px; gap: 8px; align-items: center;
  padding: 8px 10px; font-size: 0.7rem; line-height: 1.3; color: var(--muted);
}
.app-days li + li { border-top: 1px solid var(--hairline); }
.app-days b { display: block; color: var(--ink); font-size: 0.74rem; }
.app-check { width: 16px; height: 16px; border-radius: 4px; background: var(--primary-text); position: relative; }
.app-check::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.app-chevron { width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin-top: -4px; }

.dots { position: relative; display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--muted); opacity: 0.45; transition: width 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.dot[aria-current="true"]::before { width: 22px; background: var(--primary-text); opacity: 1; }
.dot:focus-visible { outline: 2px solid var(--primary-text); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
  .dot::before { transition: none; }
}

/* ---------- Bands ---------- */
.band { padding: 72px 0; }
.band-white { background: var(--band-white); }
.band-cream { background: var(--paper); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li { background: var(--card-on-white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px; }
.step-n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint-brand); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

.screen-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 24px; overflow-x: auto; }
.screen-row img { width: 240px; border-radius: 32px; border: 1px solid var(--hairline); }

/* FAQ accordions with custom +/- icons */
.faq-grid { display: grid; gap: 12px; }
.faq-col { display: grid; gap: 12px; align-content: start; }
details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; }
summary {
  cursor: pointer; list-style: none; font-weight: 800;
  padding: 18px 56px 18px 20px; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary::before, summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 14px; height: 2px; margin-top: -1px; border-radius: 2px;
  background: var(--primary-text);
}
summary::after { transform: rotate(90deg); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(0deg); }
details > p { color: var(--muted); padding: 0 20px 18px; margin: 0; }

/* Final CTA on teal */
.band-teal { background: var(--band-teal); color: var(--on-band-teal); }
.end-cta { text-align: center; display: grid; justify-items: center; }
.end-cta h2 { color: var(--on-band-teal); max-width: 18em; }
.end-cta .cta-block { align-items: center; }
.cta-end { background: #ffffff; color: #0e6e7c; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.end-cta .cta-note { color: var(--on-band-teal); }
.end-cta .qr-chip { background: #ffffff; border-color: transparent; color: #1b2627; }

/* ---------- Long-form pages ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose details { margin-bottom: 12px; }
.draft-note { background: var(--tint-brand); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.not-found { text-align: center; padding-top: 96px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 56px 0 40px; font-size: 0.95rem; }
.site-footer a { color: var(--footer-link); }
.footer-top { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(232, 239, 238, 0.14); }
.story { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.2rem; line-height: 1.5; margin: 0; max-width: 34em; }
.story [lang="el"] { font-family: Georgia, "Times New Roman", serif; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { font-weight: 700; }
.footer-bottom { padding-top: 24px; color: var(--footer-muted); display: grid; gap: 8px; }
.footer-bottom p { margin: 0; }

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .hero { padding-bottom: 88px; padding-top: 117px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; min-height: 600px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .faq-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .faq-col { gap: 16px; }
  .band { padding: 96px 0; }
  .footer-top { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
}
