/* Same palette, fonts and logo as marketing/site, kept as its own copy so
   this folder can be published on its own without exposing the full site.
   Deliberately says nothing about what Chagi does until launch. */
:root {
  --teal: #0d5c73;
  --gold: #c99a3d;
  --gold-deep: #795c25;
  --sand: #f6efe3;
  --surface: #ffffff;
  --text-dark: #1b3a40;
  --text-muted: rgba(27, 58, 64, 0.72);
  --card-border: rgba(27, 58, 64, 0.1);
  --on-teal: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sand);
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-weight: 700;
  margin: 0;
}

a {
  color: var(--teal);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: var(--teal);
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
}

.header-link {
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.header-link:hover {
  text-decoration: underline;
}

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

main {
  flex: 1;
}

.hero {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1.5px;
  background: currentColor;
}

.hero h1 {
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
}

.hero h1.wordmark {
  font-size: 140px;
  line-height: 0.9;
  letter-spacing: -3px;
  color: var(--teal);
}

/* Animated wordmark (assets/sun-hop.js): the C is the logo mark, and its sun
   hops across the letters to become the dot on the i. */
.hero h1.lockup {
  position: relative;
  display: flex;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  font-size: clamp(96px, 20vw, 270px);
  line-height: 1;
  letter-spacing: 0;
  margin: 0 auto 36px;
}

/* The wordmark is the whole hero now, so the column centers on the page */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy .eyebrow {
  margin-bottom: 28px;
}

.hero-copy .lede {
  margin-left: auto;
  margin-right: auto;
}

.lockup .cmark {
  display: block;
  flex: none;
  height: 0.7em;
  width: 0.62em;
  margin-right: 0.05em;
  overflow: visible;
}

.lockup .ltr {
  display: block;
  transform-origin: 50% 100%;
  margin-right: -0.025em;
}

.lockup .base {
  display: block;
  width: 0;
  height: 0;
}

.lockup .sun,
.lockup .halo {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
}

.lockup .sun {
  background: var(--gold);
  will-change: transform;
}

.lockup .halo {
  background: radial-gradient(circle, var(--gold) 0%, transparent 68%);
  opacity: 0;
}

/* What "Chagi" means, same wording and look as the app's sign in/sign up
   screens (brandMeaning in mobile/src/components/sign-in-form.tsx). */
.hero .meaning {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 560px;
  margin: -12px auto 32px;
}

/* Keep each sense whole so the line breaks between them, not mid-phrase */
.hero .meaning .sense {
  display: inline-block;
}

.hero .meaning em {
  font-style: italic;
  font-weight: 600;
}

.hero h1 em {
  font-style: normal;
  color: var(--teal);
}

.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 8px;
  padding: 16px 28px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  background: var(--teal);
  color: var(--on-teal);
}

.btn:hover {
  background: #0a4d61;
}

.btn:active {
  opacity: 0.85;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--card-border);
  font-size: 14px;
  color: var(--text-muted);
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 24px;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--text-dark);
}

/* ---------- Privacy page ---------- */

.policy {
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 80px;
}

.policy h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.policy h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.policy p {
  margin: 0 0 12px;
}

.policy .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 16px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -0.5px;
  }

  .hero h1.wordmark {
    font-size: 88px;
    letter-spacing: -2px;
  }

  .hero h1.lockup {
    font-size: clamp(84px, 24vw, 160px);
    letter-spacing: 0;
    margin: 0 auto 28px;
  }

  .hero .lede {
    font-size: 17px;
  }

  .hero .meaning {
    font-size: 15px;
    max-width: 340px;
    margin: -8px auto 28px;
  }

  .policy h1 {
    font-size: 36px;
  }
}
