/* Grammuki marketing site. Plain CSS, no build step, matching the colours and serif headline
   the app itself uses, so the website reads as the same product. */

:root {
  --ink: #1E2A3A;
  --ink-soft: #5A6675;
  --paper: #F3F0E8;
  --card: #FFFFFF;
  --line: #E6E1D4;
  --accent: #B8402A;
  --accent-soft: #F7E5DF;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
/* height: auto keeps every image in proportion when only its width is constrained; without it, an <img>
   with width/height attributes (set for layout stability) stretches to its literal pixel height instead
   of scaling down with the width. */
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1152px; margin: 0 auto; padding-inline: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- announcement bar ---------- */
.announce-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 10px 24px;
}
.announce-bar p { margin: 0; font-size: 14px; font-weight: 500; }
.announce-bar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.announce-bar a:hover { color: var(--accent-soft); }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  flex: none;
}
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 24px 56px;
  max-width: 1152px;
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
h1.headline {
  font-family: var(--serif);
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-copy {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 46ch;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pill {
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
}
.cta-button:hover { color: #fff; background: #9c3423; }

.phone-frame {
  width: min(280px, 72vw);
  margin-inline: auto;
  border: 8px solid #121821;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(30, 42, 58, 0.28), 0 0 0 10px var(--accent-soft);
}

/* ---------- features ---------- */
.features { padding: 20px 24px 72px; max-width: 1152px; margin: 0 auto; }
.features h2 {
  font-family: var(--serif);
  margin: 0 0 32px;
  font-size: 28px;
  font-weight: 600;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.feature-card svg { color: var(--ink); }
.feature-card h3 { margin: 16px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- early access sign-up ---------- */
.early-access {
  background: var(--accent-soft);
  padding: 64px 24px;
}
.early-access-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
/* .hero-copy (shared with the hero section) has a max-width but no auto margins of its own, so
   inside this centered container it needs margin-inline: auto too, or its box hugs the left edge
   even though the text within it is centered. */
.early-access-inner .hero-copy {
  margin-inline: auto;
}
.early-access h2 {
  font-family: var(--serif);
  margin: 0 0 16px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
}
.early-access-points {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  gap: 14px;
  text-align: left;
}
.early-access-points li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.early-access-points strong { color: var(--ink); }

.signup-form { margin-top: 8px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.signup-row {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}
.signup-row input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: var(--sans);
}
.signup-row button {
  background: var(--ink);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  flex: none;
}
.signup-row button:hover { background: var(--accent); }
.beta-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.fine-print { margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }
.fine-print a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  max-width: 1152px;
  margin: 0 auto;
}
.site-footer p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.footer-links a { font-size: 14px; font-weight: 600; text-underline-offset: 3px; text-decoration: underline; }

/* ---------- plain content pages (privacy) ---------- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.page h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); margin: 0 0 6px; }
.page .updated { color: var(--ink-soft); margin: 0 0 8px; }
.page h2 { font-family: var(--serif); font-size: 22px; margin: 40px 0 10px; }
.page h3 { font-size: 17px; margin: 24px 0 8px; }
.page p, .page li { font-size: 16px; line-height: 1.65; color: var(--ink); }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 15px; }
.page th, .page td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.page th { background: var(--card); }
.notice {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 12px 12px 0;
  margin: 20px 0;
  font-size: 15px;
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .pill-row { justify-content: center; }
  .phone-frame { margin-top: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; font-size: 14px; }
  .site-header, .hero, .features, .site-footer { padding-left: 18px; padding-right: 18px; }
  .cta-button { margin-inline: auto; }
}
