/* Path: public/assets/styles.css */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f8ef;
  --text: #183025;
  --muted: #60746b;
  --subtle: #8a9a92;
  --line: #e3eadf;
  --primary: #1fa463;
  --primary-dark: #16814d;
  --primary-soft: #e8f7ef;
  --accent: #f59a23;
  --accent-soft: #fff2df;
  --danger-soft: #fff0ec;
  --shadow: 0 14px 34px rgba(25, 55, 35, 0.1);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai",
    "Noto Sans", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(227, 234, 223, 0.8);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: white;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--primary);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  padding: 54px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
}

/* Hero status pill — small modern badge above the eyebrow that signals
   launch state + service area at a glance. Live dot uses primary color so
   it reads as "active/announcing", not "warning". */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 164, 99, 0.18);
}

/* Hero trust line — single row of reassurance bullets under the CTAs.
   Addresses the "what does it cost / how do I use it" questions a first-
   time visitor has before clicking. Muted on purpose so it doesn't compete
   with the buttons. */
.trust-line {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.18;
}

h1 {
  max-width: 680px;
  font-size: clamp(38px, 7vw, 72px);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.button.primary {
  background: var(--primary);
  color: white;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.hero-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.hero-meta div {
  background: var(--surface);
  padding: 14px;
}

.hero-meta strong {
  display: block;
  color: var(--primary);
  font-size: 18px;
}

.hero-meta span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 48px 0;
}

.section.alt {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 8px 22px rgba(25, 55, 35, 0.06);
}

.card.soft {
  background: var(--surface-soft);
}

.icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.card p,
.policy-content p,
.policy-content li {
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}

.step-number {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #a95f00;
  font-size: 13px;
  font-weight: 900;
}

.payment-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.notice {
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 16px;
  color: #6f470d;
}

.mt-16 {
  margin-top: 16px;
}

.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.shot {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(25, 55, 35, 0.06);
}

.shot figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.operator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-row dt {
  color: var(--subtle);
  font-weight: 700;
}

.info-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--text);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.footer-note {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.policy-hero {
  padding: 42px 0 24px;
}

.policy-content {
  max-width: 900px;
  padding-bottom: 54px;
}

.policy-content section {
  margin-top: 28px;
}

.policy-content ul {
  padding-left: 22px;
}

.auth-action-page {
  min-height: 100vh;
}

.auth-action-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-action-card {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-action-brand {
  margin-bottom: 24px;
}

.auth-action-title {
  font-size: 28px;
}

.auth-action-copy {
  margin: 14px 0 0;
  color: var(--muted);
}

.auth-action-form {
  display: grid;
  gap: 12px;
}

.auth-action-label {
  color: var(--text);
  font-weight: 800;
}

.auth-action-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.auth-action-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-action-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-action-error {
  margin: 0;
  border-radius: var(--radius);
  background: var(--danger-soft);
  padding: 12px;
  color: #a33a23;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 880px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .payment-box,
  .operator,
  .contact-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .screenshots {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-meta,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
