/* Thailo marketing site — design v3 "Thailand, editorial" (docs/website-plan.md §1a).
   Real photography, Fraunces + Hanken Grotesk + Noto Sans Thai, warm near-black /
   bone / temple gold. Mascot never appears in chrome. No emojis (build-enforced). */

:root {
  --ink: #16120e;
  --ink-2: #201a14;
  --bone: #f3ede4;
  --paper: #faf6ef;
  --gold: #c99b3f;
  --gold-bright: #e0b556;
  --clay: #a8552f;
  --line: #ddd2c0;
  --line-dark: rgba(243, 237, 228, 0.16);
  --muted: #6f6455;
  --muted-dark: #b3a795;
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --thai: "Noto Sans Thai", sans-serif;
  --maxw: 74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bone);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 0.9rem; }
h3 { font-size: 1.25rem; margin: 1.4rem 0 0.4rem; }
p { margin: 0.7rem 0; }
a { color: var(--clay); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
[lang="th"] { font-family: var(--thai); }
img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.site-header {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  background: var(--ink);
  color: var(--bone);
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--gold-bright); }

.site-header nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-header nav a {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--gold-bright); }

.nav-cta {
  font: 700 0.8rem var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-bright); color: var(--ink); }

@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 0.8rem 1.2rem; }
  .brand { flex: 1 1 100%; }
}

main { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 3rem); }
section.pad { padding: 4rem 0; }

/* ------------------------------------------------------------------ hero */

.hero-photo {
  position: relative;
  background-color: var(--ink);
  background-size: cover;
  background-position: center 35%;
  color: var(--bone);
}

.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,18,14,0.82) 0%, rgba(22,18,14,0.45) 55%, rgba(22,18,14,0.25) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-kicker {
  font: 700 0.8rem var(--body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1.2rem;
}

.hero-photo h1 {
  color: var(--bone);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
}
.hero-photo h1 em { font-style: italic; color: var(--gold-bright); }

.hero-sub { max-width: 33rem; color: rgba(243,237,228,0.85); font-size: 1.1rem; }

.hero-device { justify-self: end; }

@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-device { justify-self: center; }
}

/* ---------------------------------------------------------- device frame */

.device {
  margin: 0;
  width: min(240px, 60vw);
  border-radius: 40px;
  background: #0b0908;
  padding: 9px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.65);
  position: relative;
}

.device::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 26%; height: 14px;
  border-radius: 999px;
  background: #0b0908;
  z-index: 2;
}

.device-screen {
  border-radius: 32px;
  overflow: hidden;
  background: var(--bone);
  aspect-ratio: 1206 / 2622;
  display: flex;
}

.device-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shot-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: var(--paper);
  text-align: center;
  padding: 1rem;
}
.shot-placeholder [lang="th"] { font-size: 2.4rem; font-weight: 600; color: var(--line); }
.shot-placeholder p { font-family: var(--display); font-weight: 600; margin: 0; color: var(--muted); }
.shot-placeholder .soon { font: 600 0.68rem var(--body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); opacity: 0.75; }

/* --------------------------------------------------------------- bands */

.band-ink { background: var(--ink); color: var(--bone); }
.band-ink h2, .band-ink h3 { color: var(--bone); }
.band-ink p { color: var(--muted-dark); }
.band-ink a { color: var(--gold-bright); }

.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  font: 700 0.78rem var(--body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.kicker::after { content: ""; height: 1px; width: 3.2rem; background: currentColor; opacity: 0.5; }
.band-ink .kicker { color: var(--gold-bright); }

.knum {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: inherit;
}

/* proof strip */
.proof-strip {
  display: flex;
  gap: 0.4rem 2.8rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.2rem clamp(1.2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.proof-strip strong { font-family: var(--display); font-size: 1.05rem; color: var(--ink); font-weight: 600; }

/* numbered steps (editorial, no icons) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.4rem; margin-top: 2.2rem; }
.step { border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }
.step .step-n { font-family: var(--display); font-style: italic; font-size: 1.6rem; color: var(--gold-bright); }
.step h3 { margin: 0.5rem 0 0.4rem; }
.step p { margin: 0; font-size: 0.97rem; }

/* pill cloud */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.pill {
  font: 600 0.85rem var(--body);
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 0.42rem 0.95rem;
  text-decoration: none;
}
a.pill { border-color: var(--gold); }
a.pill:hover { background: var(--gold); color: var(--ink); }
.pill.muted { color: var(--muted); }
.pill-note { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }

/* feature rows */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-of-type { border-bottom: none; }
.feature-row.flip { grid-template-columns: auto minmax(0, 1fr); }
.feature-row.flip .feature-copy { order: 2; }
.feature-row h2 { margin-top: 0; }
@media (max-width: 700px) {
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
  .feature-row .device { margin: 0 auto; }
}

/* track cards */
.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
.track { border: 1px solid var(--line); border-radius: 6px; padding: 1.7rem; background: var(--paper); }
.track h3 { margin-top: 0.2rem; }
.track .who { font: 700 0.72rem var(--body); color: var(--clay); text-transform: uppercase; letter-spacing: 0.22em; }

/* -------------------------------------------------------- phrase cards */

.phrase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin: 1.6rem 0;
}

.phrase-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 6px;
  padding: 1.1rem 1.2rem 1.05rem;
}
.phrase-en { font: 700 0.72rem var(--body); color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.18em; }
.phrase-thai { font-family: var(--thai); font-size: 1.7rem; font-weight: 600; margin: 0.35rem 0 0; line-height: 1.35; color: var(--ink); }
.phrase-roman { font-family: var(--display); font-style: italic; font-size: 1.02rem; color: var(--clay); margin: 0.1rem 0 0; }
.phrase-note { font-size: 0.88rem; color: var(--muted); margin: 0.6rem 0 0; border-top: 1px solid var(--line); padding-top: 0.6rem; }

/* ------------------------------------------------------ CTA + photo band */

.waitlist-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; max-width: 30rem; }
.waitlist-form input[type="email"] {
  flex: 1 1 14rem;
  font: 500 1rem var(--body);
  color: var(--ink);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}
.waitlist-form button {
  font: 700 0.85rem var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 4px;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}
.waitlist-form button:hover { background: var(--gold-bright); }
.cta-fineprint { font-size: 0.85rem; color: var(--muted); margin-top: 0.8rem; }

.cta-block {
  max-width: var(--maxw);
  margin: 3.5rem auto;
  padding: 2.4rem clamp(1.2rem, 4vw, 2.6rem);
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--paper);
}
.cta-block h2 { margin-top: 0; }
.cta-sub { color: var(--muted); max-width: 42rem; }

.scene-band {
  background-color: var(--ink);
  background-size: cover;
  background-position: center 40%;
  position: relative;
}
.scene-band .scene-scrim {
  background: linear-gradient(90deg, rgba(22,18,14,0.85) 0%, rgba(22,18,14,0.55) 55%, rgba(22,18,14,0.30) 100%);
  padding: 5rem 0;
}
.scene-band .scene-scrim > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: clamp(1.2rem, 4vw, 3rem); padding-right: clamp(1.2rem, 4vw, 3rem); }
.scene-band h2 { color: var(--bone); margin-top: 0; font-weight: 500; }
.scene-band .cta-sub { color: rgba(243,237,228,0.85); }
.scene-band .cta-fineprint { color: var(--muted-dark); }
.scene-band .waitlist-form input[type="email"] { border-color: transparent; }

.store-badge {
  display: inline-block;
  margin-top: 1.2rem;
  font: 700 0.95rem var(--body);
  letter-spacing: 0.08em;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  border-radius: 8px;
}

/* ------------------------------------------------------- pricing cards */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem; margin: 2rem 0; align-items: stretch; }
.plan {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 1.7rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured { border: 1.5px solid var(--gold); background: linear-gradient(170deg, #fbf4e4, var(--paper)); }
.plan .badge {
  position: absolute; top: -0.8rem; right: 1rem;
  font: 700 0.68rem var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border-radius: 3px;
  padding: 0.28rem 0.75rem;
}
.plan h3 { margin: 0; font-style: italic; font-weight: 500; }
.plan .price { font: 600 2.2rem var(--display); margin: 0.4rem 0 0; }
.plan .per { font: 500 0.9rem var(--body); color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--muted); }
.plan li { margin: 0.3rem 0; }

/* ------------------------------------------------------------- articles */

.prose { max-width: 46rem; }
.prose .answer {
  font-size: 1.12rem;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 1.1rem 1.4rem;
  margin: 1.6rem 0;
}
.prose ul { padding-left: 1.3rem; }
.prose li { margin: 0.35rem 0; }
.prose h2 { margin-top: 2.6rem; }

.stamp {
  display: inline-block;
  font: 700 0.72rem var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  border-radius: 3px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}
.stamp.coral { color: var(--gold); border-color: var(--gold); }

.qa h2 { margin-top: 2.6rem; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
  background: var(--paper);
  font-size: 0.95rem;
}
th, td { text-align: left; padding: 0.75rem 0.95rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 600; border-bottom: 2px solid var(--ink); }
tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

.app-panel {
  margin: 2.6rem 0;
  padding: 1.8rem clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--paper);
}
.app-panel h2 { margin-top: 0.2rem; }

.related { margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-weight: 600; }

/* legal pages */
.legal { max-width: 46rem; }
.legal h1 { font-size: 2.1rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1.12rem; }
.draft-note {
  background: #f6ecd6;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 0.9rem 1.2rem;
  font-size: 0.93rem;
}

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: 4rem; background: var(--ink); color: var(--bone); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 2.8rem clamp(1.2rem, 4vw, 3rem) 2.6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.8rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.footer-note { color: var(--muted-dark); font-size: 0.92rem; margin: 0; }
.footer-head { font: 700 0.72rem var(--body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-dark); margin: 0 0 0.6rem; }
.footer-grid a { display: block; color: var(--bone); text-decoration: none; font-size: 0.95rem; padding: 0.18rem 0; }
.footer-grid a:hover { color: var(--gold-bright); }
.footer-fine { color: var(--muted-dark); font-size: 0.8rem; margin-top: 2rem; border-top: 1px solid var(--line-dark); padding-top: 1.2rem; }

/* landing photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; height: 15rem; object-fit: cover; display: block; border-radius: 4px; }
.photo-strip figcaption { font: 600 0.78rem var(--body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-dark); margin-top: 0.55rem; }
