/* Tea+ website. Graphite with Aqua, the same tokens as the app (apps/web/src/styles/index.css). */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #19191c;
  --elevated: #222226;
  --line: #2e2e33;
  --text: #f8f7fa;
  --muted: #a8a6b3;
  --accent: #8edfe0;
  --accent-soft: #cdf5f5;
  --accent-hover: #70cccd;
  --on-accent: #062223;
  --radius-card: 14px;
  --radius-panel: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(46, 46, 51, 0.6);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; color: var(--accent); }
.logo { height: 34px; width: 68px; color: var(--accent); }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-card);
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 10px 30px -12px rgba(142, 223, 224, .55);
}
.btn:hover { background: #a8eaea; transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--elevated); }
.ico { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 40px;
  background:
    radial-gradient(900px 480px at 78% -6%, rgba(142, 223, 224, .16), transparent 62%),
    radial-gradient(700px 400px at 6% 40%, rgba(142, 223, 224, .06), transparent 60%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  margin-bottom: 22px; padding: 6px 16px; border-radius: 999px;
  border: 1px solid rgba(142, 223, 224, .3); background: rgba(142, 223, 224, .1);
  color: var(--accent-soft); font-size: 14px; font-weight: 500;
}
.display {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(2.5rem, 5vw + 1rem, 4.75rem); line-height: 1.02; max-width: 15ch;
}
.grad {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent-soft), var(--accent) 60%, var(--accent-hover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lede { margin-top: 24px; max-width: 36rem; font-size: 18px; color: rgba(248, 247, 250, .8); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.meta { margin-top: 16px; color: var(--muted); font-size: 14px; }

.frame {
  margin: 0; border-radius: var(--radius-panel); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255,255,255,.02);
}
.frame-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--elevated); }
.hero-shot { position: relative; margin-top: 64px; }
.hero-shot::before {
  content: ''; position: absolute; inset: -60px -40px auto; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgba(142, 223, 224, .22), transparent);
  filter: blur(30px);
}

/* Sections */
.section { padding: 96px 0; }
.head { text-align: center; max-width: 40rem; margin: 0 auto 52px; }
.kicker { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.title {
  margin-top: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); line-height: 1.1;
}
.sub { margin-top: 14px; color: var(--muted); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 26px; border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--card), rgba(25, 25, 28, .6));
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: rgba(142, 223, 224, .35); transform: translateY(-2px); }
.card h3 { margin-top: 18px; font-size: 17px; font-weight: 600; }
.card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.badge {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(142, 223, 224, .1); border: 1px solid rgba(142, 223, 224, .2);
}
.badge svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split-rev .split-text { order: 2; }
.split-text .title, .split-text .sub { text-align: left; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(142, 223, 224, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238EDFE0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img {
  border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--card);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.gallery figure:hover img { transform: scale(1.015); border-color: rgba(142, 223, 224, .35); }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { padding: 28px; border-radius: var(--radius-panel); background: var(--card); border: 1px solid var(--line); }
.steps span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.steps h3 { margin-top: 18px; font-size: 17px; font-weight: 600; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Download */
.dl-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 28px; border-radius: 28px; border: 1px solid rgba(142, 223, 224, .25);
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(142, 223, 224, .2), transparent 70%),
    var(--card);
}
.dl-logo { width: 120px; height: 60px; color: var(--accent); margin: 0 auto 8px; display: block; }
.dl-card .btn { margin-top: 30px; }
.links-row { margin-top: 18px; display: flex; justify-content: center; gap: 22px; font-size: 14px; }
.links-row a { color: var(--accent-soft); text-decoration: none; font-weight: 500; }
.links-row a:hover { text-decoration: underline; }
.note {
  max-width: 34rem; margin: 30px auto 0; padding: 14px 18px; border-radius: 12px;
  background: rgba(242, 196, 141, .08); border: 1px solid rgba(242, 196, 141, .2);
  color: var(--muted); font-size: 14px; text-align: left;
}
.note strong { color: #f2c48d; font-weight: 600; }
.note b { color: var(--text); font-weight: 600; }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 24px; font-weight: 400; transition: transform .2s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot-inner p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-links a:hover { color: var(--text); }
.fine { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #6f6d78; font-size: 13px; }
.fine p:first-child { max-width: 46rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .grid, .gallery, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-rev .split-text { order: 0; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .nav-inner .btn { margin-left: auto; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 56px; }
  .section { padding: 72px 0; }
  .grid, .gallery, .steps { grid-template-columns: 1fr; }
  .cta { flex-direction: column; width: 100%; }
  .cta .btn { width: 100%; }
  .hero-shot { margin-top: 44px; }
  .dl-card { padding: 48px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gallery img { transition: none; }
}

/* Screenshots are cropped from the top to one 16:10 shape. */
.frame img, .gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-404 { min-height: 100vh; display: grid; place-items: center; }
.logo-404 { height: 64px; width: auto; margin-bottom: 30px; }
