/* Geppetto · marketing site. The app's palette: warm paper, light blue accent, the icon's violet-to-teal gradient. */

:root {
  --bg: #FAF9F5;
  --bg-tint: #F3F1EA;
  --card: #FFFFFF;
  --border: #E3DFD5;
  --text: #1F1E1D;
  --muted: #73726C;
  --accent: #4DA3E8;
  --accent-strong: #2C86CF;
  --accent-soft: rgba(77, 163, 232, 0.12);
  --user-bubble: #EFEBE1;
  --grad-a: #5B3FA0;
  --grad-b: #208CB0;
  --shadow: 0 24px 60px -24px rgba(31, 30, 29, 0.25);
  --radius: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F1E1D;
    --bg-tint: #262624;
    --card: #30302E;
    --border: #45443F;
    --text: #F2F0EA;
    --muted: #A19F97;
    --accent: #5DB0F0;
    --accent-strong: #8AC6F5;
    --accent-soft: rgba(93, 176, 240, 0.14);
    --user-bubble: #3A3936;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  }
}

:root[data-theme="dark"] {
  --bg: #1F1E1D;
  --bg-tint: #262624;
  --card: #30302E;
  --border: #45443F;
  --text: #F2F0EA;
  --muted: #A19F97;
  --accent: #5DB0F0;
  --accent-strong: #8AC6F5;
  --accent-soft: rgba(93, 176, 240, 0.14);
  --user-bubble: #3A3936;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.lead { font-size: 1.15rem; color: var(--muted); margin: 18px 0 0; }
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--small { padding: 9px 18px; font-size: 0.9rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 190px; padding: 11px 20px 11px 16px;
  border-radius: 14px;
  background: var(--text); color: var(--bg);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; line-height: 1.15; }
.store small { font-weight: 500; font-size: 0.72rem; opacity: 0.8; }
.store--soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--border); cursor: default; }
.store--soon:hover { transform: none; box-shadow: none; }
.store--light { background: #fff; color: #1F1E1D; }
.store--light.store--soon { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.45); }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }
.hero__badges li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px 6px 10px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 4px 14px -10px rgba(31, 30, 29, 0.4);
}
.hero__badges svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-strong); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero__title {
  font-size: clamp(2.7rem, 5.8vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
/* On a dark background, a lighter gradient so the words stay readable. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero__title em { background-image: linear-gradient(100deg, #C3B4FF 0%, #8FB8FF 45%, #6FE0F5 100%); }
}
:root[data-theme="dark"] .hero__title em { background-image: linear-gradient(100deg, #C3B4FF 0%, #8FB8FF 45%, #6FE0F5 100%); }
/* The promise on a line of its own, never broken. */
.hero__title em { display: block; white-space: nowrap; padding-bottom: 0.08em; }

.hero__note { margin: 16px 0 0; font-size: 0.88rem; color: var(--muted); }
.hero__visual { position: relative; display: flex; justify-content: center; }
.glow {
  position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--grad-a) 45%, transparent), transparent),
              radial-gradient(closest-side at 70% 70%, color-mix(in srgb, var(--grad-b) 45%, transparent), transparent);
  filter: blur(40px); opacity: 0.55;
}

.phone {
  position: relative;
  width: 320px; max-width: 100%;
  /* Shorter than a real iPhone: the empty middle of the screen says nothing. */
  aspect-ratio: 9 / 15;
  padding: 11px;
  border-radius: 52px;
  background: #121212;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #3a3a3a;
  animation: float 7s ease-in-out infinite;
}
.phone__screen {
  position: relative; height: 100%;
  border-radius: 42px; overflow: hidden;
  background: #262624; color: #F2F0EA;
  display: flex; flex-direction: column;
  font-size: 12.5px; line-height: 1.45;
}

.app__bar { display: flex; justify-content: space-between; padding: 22px 14px 0; }
.app__round {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #30302E; border: 1px solid #45443F;
}
.app__round svg { width: 17px; height: 17px; fill: none; stroke: #F2F0EA; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__home { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 16px 30px; text-align: center; }
.app__home img { width: 86px; height: auto; }
.app__hello { margin: 16px 0 0; font-size: 25px; font-weight: 600; color: #F2F0EA; }
.app__help { margin: 6px 0 0; font-size: 14px; color: #A19F97; }

/* Used by the homework conversation further down. */
.bubble { padding: 9px 13px; border-radius: 18px; max-width: 85%; }
.bubble--user { align-self: flex-end; background: #3A3936; color: #F2F0EA; }
.bubble--bot { align-self: flex-start; background: var(--card); border: 1px solid var(--border); }

.composer {
  margin: 8px 10px 16px; padding: 12px 10px 10px 14px;
  border-radius: 20px; background: #30302E; border: 1px solid #45443F;
}
.composer__placeholder { display: block; color: #8E8C85; font-size: 13.5px; }
.composer__row { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.composer__tool { width: 28px; height: 28px; border-radius: 9px; border: 1px solid #45443F; display: grid; place-items: center; }
/* Thinking and tools switched on, as the app shows them. */
.composer__tool--on { border-color: transparent; background: rgba(93, 176, 240, 0.16); }
.composer__tool.composer__tool--on svg { stroke: #5DB0F0; }
.composer__tool svg { width: 15px; height: 15px; fill: none; stroke: #F2F0EA; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.composer__tool svg .knob { fill: #30302E; }
/* Shapes drawn over others (the wrench over the screwdriver) hide what lies under them. */
.composer__tool--on svg .cover { fill: #37444D; }
.composer__model { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: #A19F97; font-size: 11px; white-space: nowrap; }
.composer__model svg { width: 11px; height: 11px; fill: none; stroke: #A19F97; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.composer__send { width: 28px; height: 28px; border-radius: 9px; background: #5DB0F0; display: grid; place-items: center; }
.composer__send svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; fill: none; }

/* ---------- Works with ---------- */

.works-with { padding: 28px 0 8px; }
.works-with .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; }
.works-with p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.works-with ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.works-with li { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.9rem; font-weight: 500; background: var(--card); }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* The icon and the title side by side, the text below across the card. */
.card { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; align-content: start; }
.card h3 { grid-column: 2; }
.card p { grid-column: 1 / -1; margin: 14px 0 0; color: var(--muted); font-size: 0.97rem; }
/* Lined up with the icon and the title, in the card's top right corner; the title keeps clear of it. */
.card__pro { position: absolute; top: 37px; right: 22px; margin: 0; padding: 4px 11px; font-size: 0.74rem; }
.card__pro ~ h3 { padding-right: 52px; }
.card__icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-strong);
}
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse .split__text { order: 2; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C86CF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Pro */
.badge-pro {
  display: inline-block; vertical-align: 0.15em;
  margin-left: 4px; padding: 2px 8px; border-radius: 999px;
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; background: linear-gradient(110deg, var(--grad-a), var(--grad-b));
}
p .badge-pro { margin-left: 0; }
.pro-note { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 0.8fr 1.6fr; gap: 18px; align-items: stretch; }
.plan { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.plan h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.plan__price { margin: 16px 0 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.plan__note { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
.plan--pro { border: 1.5px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, var(--grad-a), var(--grad-b)) border-box; }
.plan__options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.option { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: var(--bg-tint); border: 1px solid var(--border); }
.option--highlight { background: var(--accent-soft); border-color: var(--accent); }
.option__name { font-weight: 600; font-size: 0.92rem; }
.option__price { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.option__note { color: var(--muted); font-size: 0.85rem; }
.option__tag { position: absolute; top: -10px; right: 12px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: #fff; background: linear-gradient(110deg, var(--grad-a), var(--grad-b)); }
.plan__includes { margin: 24px 0 0; font-weight: 600; }
.checks--small { margin-top: 18px; gap: 9px; font-size: 0.97rem; }
.checks--columns { grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 12px; }

/* Voice mode */
.voice {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 64px 24px 28px; border-radius: 32px;
  background: #1F1E1D; color: #F2F0EA;
  box-shadow: var(--shadow);
}
.voice img { position: relative; width: 150px; height: auto; animation: talk 1.1s ease-in-out infinite; }
.voice__rings { position: absolute; top: 64px; left: 50%; width: 150px; height: 150px; transform: translateX(-50%); }
.voice__rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(93, 176, 240, 0.5);
  animation: ripple 3s ease-out infinite;
}
.voice__rings span:nth-child(2) { animation-delay: 1s; }
.voice__rings span:nth-child(3) { animation-delay: 2s; }
.voice__text { font-family: var(--serif); font-size: 1.9rem; margin: 26px 0 44px; color: #D6D3CA; }
.voice__bar { display: flex; align-items: center; gap: 10px; width: 100%; }
.voice__bar .pill { margin-right: auto; padding: 10px 16px; border-radius: 999px; background: #30302E; border: 1px solid #45443F; font-size: 0.85rem; color: #A19F97; }
.round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #30302E; border: 1px solid #45443F; }
.round svg { width: 20px; height: 20px; fill: none; stroke: #F2F0EA; stroke-width: 1.8; stroke-linecap: round; }
.round--close { background: #F2F0EA; border-color: #F2F0EA; }
.round--close svg { stroke: #1F1E1D; stroke-width: 2.2; }

/* Self-hosted stack */
.stack { display: grid; gap: 12px; }
.stack__row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 8px 24px -18px rgba(0,0,0,0.3);
}
.stack__row:nth-child(2) { margin-left: 28px; }
.stack__row:nth-child(3) { margin-left: 56px; }
.stack__row--muted { opacity: 0.7; margin-left: 12px; }
.stack__row div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.stack__row small { color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack__icon { font-size: 1.5rem; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-tint); flex: none; }
.ok { width: 10px; height: 10px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18); flex: none; }

/* Homework conversation */
.lesson {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: 28px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.lesson .bubble { font-size: 0.97rem; }
.lesson .bubble--user { background: var(--user-bubble); color: var(--text); }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.privacy__item { padding: 26px; border-radius: var(--radius); background: var(--bg-tint); border: 1px solid var(--border); }
.privacy__item p { margin: 8px 0 0; color: var(--muted); font-size: 0.97rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 4px 22px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Download */
.cta { padding: 24px 0 104px; }
.cta__inner {
  text-align: center; color: #fff;
  padding: 72px 24px; border-radius: 36px;
  background: linear-gradient(125deg, var(--grad-a), var(--grad-b));
  box-shadow: var(--shadow);
}
.cta__icon { margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 18px 40px -12px rgba(0,0,0,0.45); }
.cta p { margin: 14px auto 0; max-width: 520px; font-size: 1.15rem; opacity: 0.9; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; gap: 22px; }
.footer nav a, .footer p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes talk { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .voice img, .voice__rings span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}

@media (max-width: 820px) {
  .pricing { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero__inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero__text { text-align: center; }
  .hero__badges { justify-content: center; }
  .hero .stores { justify-content: center; }
  .split--reverse .split__text { order: 0; }
  .section { padding: 76px 0; }
  .stack__row:nth-child(n) { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 2.7rem); }
  .hero__badges { gap: 6px; }
  .hero__badges li { padding: 5px 10px 5px 8px; font-size: 0.76rem; gap: 4px; }
  .hero__badges svg { width: 13px; height: 13px; }
  .plan__options { grid-template-columns: 1fr; }
  .checks--columns { grid-template-columns: 1fr; }
  .grid, .privacy { grid-template-columns: 1fr; }
  .phone { width: 290px; }
  .composer__row { gap: 4px; }
  .composer__tool, .composer__send { width: 23px; height: 23px; border-radius: 7px; }
  .store { flex: 1 1 100%; justify-content: center; }
  .cta__inner { padding: 56px 20px; border-radius: 28px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* The app's own icons (SF Symbols, exported at 3x), at their own size, centred in their buttons. */
.app__round img, .composer__tool img, .composer__send img, .composer__model img { display: block; }
/* A little smaller than the app's, so that the model's name has room. */
.composer__row { gap: 5px; }
.composer__tool, .composer__send { width: 25px; height: 25px; border-radius: 8px; }
.composer__tool img, .composer__send img { transform: scale(0.85); }
.composer__model { font-size: 10.5px; }
@media (max-width: 560px) {
  .composer__row { gap: 4px; }
  .composer__tool, .composer__send { width: 23px; height: 23px; border-radius: 7px; }
}
