/*
 * talkwitheva.app: System v4 tokens and the Prototype v5 visual language
 * (designs/Eva voice assistant overview/Eva System v4.dc.html, Eva Prototype v5.dc.html; ios/Eva/Design/Theme.swift).
 * Fonts are the app's own static files (OFL, see fonts/LICENSES.md), served from this site: no third-party requests.
 */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
/* The 96pt optical cut, as the app uses it for text of 48 pt and more. */
@font-face { font-family: "Bricolage Display"; src: url("fonts/BricolageGrotesque96pt-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* System v4 tokens, light */
  --background: #FFFFFF;
  --surface: #F4F4EF;
  --surface2: #EDEDE6;
  --ink: #121311;
  --ink2: #64655E;
  --accent: #A8CC14;
  --accent-text: #5E7300;
  --accent-soft: #EEF8C8;
  /* Prototype v5 fills */
  --canvas: #ECEBE5;
  --card: #FFFFFF;
  --lime: #D4F24A;
  --lime-ring: #BEDD2C;
  --lime-halo: #F0F9CC;
  --on-lime: #121311;
  --on-lime-muted: #3A4100;
  --on-soft-deep: #2B3300;
  --muted: #CACBC2;
  --grey: #9A9B93;
  --grey-dark: #45463F;
  --grey-body: #55564F;
  --hairline: rgba(18, 19, 17, .07);
  --ink-faint: rgba(18, 19, 17, .06);
  --card-shadow: 0 1px 2px rgba(20, 20, 15, .06);
  --display: "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --display-big: "Bricolage Display", "Bricolage Grotesque", -apple-system, system-ui, sans-serif;
  --ui: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light dark;
}

/* System v4 dark sheet (system dark mode). The lime fills stay the same. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #161918;
    --surface: #222624;
    --surface2: #2D3230;
    --ink: #EEF1EF;
    --ink2: #A9B1AD;
    --accent: #D4F24A;
    --accent-text: #E3F77F;
    --accent-soft: #2F3510;
    --canvas: #161918;
    --card: #222624;
    --lime-halo: #2F3510;
    --on-soft-deep: #E3F77F;
    --muted: #4A5048;
    --grey: #7F867F;
    --grey-dark: #C9CFCB;
    --grey-body: #B9C0BC;
    --hairline: rgba(238, 241, 239, .08);
    --ink-faint: rgba(238, 241, 239, .08);
    --card-shadow: 0 0 0 1px rgba(238, 241, 239, .06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Kickers: Geist Mono, .08em */
.kicker {
  font: 500 12px/1.3 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink2);
  margin: 0;
}
.kicker.lime { color: var(--accent-text); }

/* ---------------------------------------------------------------- Header and footer */

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-name { font: 700 26px/1 var(--display); letter-spacing: -.045em; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font: 600 15px/1 var(--ui);
  color: var(--ink);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 20px;
}
.nav a:hover { background: var(--ink-faint); color: var(--ink); }
.nav a[aria-current="page"] { background: rgba(18, 19, 17, .08); }
@media (prefers-color-scheme: dark) { .nav a[aria-current="page"] { background: rgba(238, 241, 239, .1); } }

.site-footer { padding: 56px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: 28px; }
.site-footer p { margin: 0; font-size: 15px; color: var(--ink2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { font-size: 15px; font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------- The orb (System v4: one living orb) */

.orb {
  position: relative;
  flex: none;
  width: var(--s, 28px);
  height: var(--s, 28px);
}
.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--lime);
}
.orb.halo::after { box-shadow: 0 0 0 calc(var(--s) * .09) var(--lime-halo); animation: evaBreathe 4.8s ease-in-out infinite; }
/* The phone shows the app in its light appearance, whatever the page uses. */
.phone .orb.halo::after { box-shadow: 0 0 0 calc(var(--s) * .09) #F0F9CC; }
.orb .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: max(1.5px, calc(var(--s) / 75)) solid var(--lime-ring);
  animation: evaRing 2.4s cubic-bezier(.2, .6, .3, 1) infinite;
}
.orb .ring + .ring { animation-delay: 1.2s; }

.wave path {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation-name: evaWaveY;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes evaBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes evaRing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes evaWaveY { 0% { transform: scaleY(.45); } 100% { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orb .ring { display: none; }
}

/* ---------------------------------------------------------------- Home: hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 600px; }
.hero h1 {
  font: 700 76px/.98 var(--display-big);
  letter-spacing: -.045em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .dot { color: var(--accent); }
.lede { font-size: 20px; line-height: 1.5; color: var(--grey-body); margin: 0; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 6px; }

/* Primary: the lime capsule (v5 "Continue"), here a label, not a link: Eva is not in the App Store yet. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 58px;
  border-radius: 29px;
  background: var(--lime);
  color: var(--on-lime);
  padding: 0 8px 0 24px;
  font: 600 17px/1 var(--ui);
}
.pill .tile {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.text-link { font: 600 16px/1.3 var(--ui); text-decoration: underline; text-underline-offset: 4px; color: var(--ink); }
.text-link:hover { color: var(--accent-text); }
.langs { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: 500 11px/1 var(--mono);
  letter-spacing: .06em;
  color: var(--ink2);
  background: var(--ink-faint);
  border-radius: 20px;
  padding: 8px 12px;
}

/* ---------------------------------------------------------------- The phone (Prototype v5 frame, 440 × 956) */

.phone-slot { --scale: .72; width: calc(440px * var(--scale)); height: calc(956px * var(--scale)); flex: none; }
.phone {
  width: 440px;
  height: 956px;
  transform: scale(var(--scale));
  transform-origin: 0 0;
  border-radius: 66px;
  background: #FFFFFF;
  color: #121311;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 11px #1A1A18, 0 0 0 12.5px #45463F, 0 60px 120px -30px rgba(20, 20, 15, .35);
  font-family: var(--ui);
}
.phone .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 20px; background: #000; }
.phone .status { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 34px 0 46px; font-weight: 600; font-size: 17px; }
.phone .talk { position: absolute; top: 54px; left: 0; right: 0; bottom: 0; }
.phone .line { position: absolute; left: 52px; top: 52px; width: 2px; bottom: 280px; background: #D4F24A; }
.phone .top { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 22px; position: relative; }
.phone .hi { font: 700 30px/1 var(--display); letter-spacing: -.05em; }
.phone .hi span { color: #A8CC14; }
.phone .connected {
  display: flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 20px;
  background: rgba(18, 19, 17, .05); font: 500 12px/1 var(--mono); color: #64655E;
}
.phone .connected i { width: 7px; height: 7px; border-radius: 4px; background: #3E9B6B; }
.phone .thread { position: absolute; left: 0; right: 0; top: 52px; bottom: 280px; display: flex; flex-direction: column; justify-content: flex-end; gap: 20px; padding: 12px 22px 22px; }
.turn { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.turn .mark { display: flex; justify-content: center; padding-top: 4px; }
.turn .you-dot { width: 12px; height: 12px; border-radius: 6px; background: #FFFFFF; box-shadow: inset 0 0 0 2px #121311; }
.turn .body { display: flex; flex-direction: column; gap: 3px; }
.turn .when { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; color: #64655E; }
.turn .said { font-size: 17px; line-height: 23px; }
.turn .eva { font: 600 24px/30px var(--display); letter-spacing: -.03em; }
.turn .eva .rest { color: #CACBC2; }
.turn .done { width: 20px; height: 20px; border-radius: 6px; background: #D4F24A; display: flex; align-items: center; justify-content: center; margin-top: 12px; }
.phone .card { background: #F4F4EF; border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.phone .card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.phone .card-label { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; color: #5E7300; }
.phone .card-undo { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.phone .card-title { font-size: 17px; line-height: 22px; font-weight: 600; }
.phone .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.phone .chips span { padding: 4px 9px; border-radius: 9px; background: #FFFFFF; font-size: 12px; font-weight: 600; }
.phone .stage { position: absolute; left: 0; right: 0; bottom: 100px; height: 160px; display: flex; align-items: center; justify-content: center; }
.phone .stage .wave { position: absolute; left: 50%; top: 50%; width: 440px; height: 220px; transform: translate(-50%, -50%); }
.phone .side { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: .06em; color: #64655E; }
.phone .side i { width: 44px; height: 44px; border-radius: 22px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(18, 19, 17, .08); display: flex; align-items: center; justify-content: center; font-style: normal; }
.phone .side.left { left: 20px; }
.phone .side.right { right: 20px; }
.phone .tabs { position: absolute; left: 12px; right: 76px; bottom: 34px; height: 62px; border-radius: 31px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(18, 19, 17, .06), 0 8px 24px -8px rgba(20, 20, 15, .18); display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; }
.phone .tabs span { border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: #64655E; }
.phone .tabs span.on { background: rgba(18, 19, 17, .08); color: #121311; }
.phone .kbd { position: absolute; right: 12px; bottom: 34px; width: 56px; height: 56px; border-radius: 28px; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(18, 19, 17, .06), 0 8px 24px -8px rgba(20, 20, 15, .18); display: flex; align-items: center; justify-content: center; }
.phone .home-bar { position: absolute; left: 50%; bottom: 9px; transform: translateX(-50%); width: 150px; height: 5px; border-radius: 3px; background: #121311; }

/* ---------------------------------------------------------------- Home: sections */

.section { padding: 32px 0 56px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 720px; }
.section h2 {
  font: 700 46px/1.02 var(--display);
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.section-head p:not(.kicker) { margin: 0; color: var(--grey-body); font-size: 18px; }

.flows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.flow {
  background: var(--card);
  border-radius: 22px;
  padding: 18px 18px 20px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-top { display: flex; align-items: center; gap: 12px; }
.num {
  font: 600 12px/1 var(--mono);
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--on-lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.flow h3 { font: 600 17px/22px var(--ui); margin: 0; }
.flow .say { font: 600 21px/27px var(--display); letter-spacing: -.03em; margin: 0; color: var(--ink); text-wrap: pretty; }
.flow p { margin: 0; font-size: 15px; line-height: 21px; color: var(--grey-body); text-wrap: pretty; }

/* The lime hero card (v5 Me plan card), here for privacy */
.lime-card {
  background: var(--lime);
  color: var(--on-lime);
  border-radius: 32px;
  padding: 40px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 32px 48px;
}
.lime-card .kicker { color: var(--on-lime-muted); }
.lime-card h2 { color: var(--on-lime); }
.lime-card .lead { display: flex; flex-direction: column; gap: 14px; }
.lime-card .lead p:not(.kicker) { margin: 0; color: var(--on-lime-muted); font-size: 18px; }
.lime-card a { color: var(--on-lime); font-weight: 600; text-underline-offset: 4px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; gap: 5px; border-top: 1px solid rgba(18, 19, 17, .14); padding-top: 14px; }
.facts strong { font-size: 17px; line-height: 22px; }
.facts span { font-size: 15px; line-height: 21px; color: var(--on-lime-muted); }

/* ---------------------------------------------------------------- Legal and support pages */

.page-head { padding: 28px 0 28px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font: 700 56px/1 var(--display-big); letter-spacing: -.045em; margin: 0; }
.page-head p:not(.kicker) { margin: 0; color: var(--grey-body); font-size: 19px; max-width: 640px; }

.sheet {
  background: var(--background);
  border-radius: 32px;
  box-shadow: var(--card-shadow);
  padding: 48px 56px 56px;
  max-width: 820px;
  margin: 8px auto 0;
}
.legal h1 { font: 700 44px/1.05 var(--display); letter-spacing: -.045em; margin: 0 0 10px; }
.legal h2 { font: 700 24px/30px var(--display); letter-spacing: -.035em; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--grey-dark); font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal li::marker { color: var(--accent); }
.legal .meta { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 28px; }
.legal .box { background: var(--accent-soft); border-radius: 22px; padding: 6px 22px; }
.legal .box p { color: var(--on-soft-deep); }
.legal .box.draft { background: var(--lime); margin: 0 0 32px; }
.legal .box.draft p { color: var(--on-lime); }
.legal code { font: 500 .85em/1.4 var(--mono); overflow-wrap: anywhere; }
.legal strong { color: var(--ink); }
.legal .box strong, .legal .box.draft strong { color: inherit; }

.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.faq li { background: var(--card); border-radius: 22px; padding: 20px 22px; box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 8px; }
.faq h3 { font: 600 17px/22px var(--ui); margin: 0; }
.faq p { margin: 0; color: var(--grey-body); font-size: 15px; line-height: 22px; }
.faq strong { color: var(--ink); font-weight: 600; }
.contact-card { margin-top: 24px; }

/* ---------------------------------------------------------------- Phone width */

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 16px; }
  .hero .phone-slot { justify-self: center; }
  .flows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lime-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { height: 64px; }
  .brand-name { font-size: 22px; }
  .nav a { padding: 9px 10px; font-size: 14px; }
  .nav a.optional { display: none; }
  .hero h1 { font-size: 46px; line-height: 1; font-family: var(--display); }
  .lede { font-size: 17px; }
  .phone-slot { --scale: .66; }
  .section h2 { font-size: 34px; line-height: 1.05; }
  .flows, .faq { grid-template-columns: minmax(0, 1fr); }
  .lime-card { padding: 28px 22px; border-radius: 28px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 42px; font-family: var(--display); }
  .sheet { padding: 28px 20px 36px; border-radius: 28px; }
  .legal h1 { font-size: 34px; line-height: 38px; }
  .legal h2 { font-size: 21px; line-height: 27px; }
}
