@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700;800;900&display=swap");

:root {
  color: #17211d;
  background: #fff7d6;
  font-family: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  --text-font: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  --display-font: "Fredoka", "Noto Sans Thai", "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-meta: 0.875rem;
  --text-body: 1rem;
  --text-body-lg: 1.0625rem;
  --text-lead: 1.3125rem;
  --text-card-title: 1.25rem;
  --text-display: clamp(2.625rem, 6.4vw, 4.875rem);
  --text-section-title: clamp(1.875rem, 4vw, 2.625rem);
  --text-legal-title: clamp(1.5rem, 3vw, 1.875rem);
  --leading-heading: 1.12;
  --leading-tight: 1.22;
  --leading-body: 1.65;
  --leading-longform: 1.75;
  --ink: #17211d;
  --ink-strong: #17211d;
  --muted: #526057;
  --green: #157347;
  --green-dark: #0f4b36;
  --yellow: #ffd95a;
  --orange: #ff914d;
  --orange-dark: #c54d19;
  --pink: #ff7aa8;
  --blue: #74c7ff;
  --mint: #a8efbf;
  --cream: #fff7d6;
  --paper: #fffdf4;
  --border: #17211d;
  --line: rgba(23, 33, 29, 0.18);
  --shadow: 0 10px 0 rgba(23, 33, 29, 0.14);
  --focus: rgba(255, 145, 77, 0.42);
  --page-gutter: 24px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  background:
    radial-gradient(circle at top right, rgba(116, 199, 255, 0.32), transparent 300px),
    radial-gradient(circle at 8% 18%, rgba(255, 217, 90, 0.2), transparent 230px),
    linear-gradient(180deg, #fff9df 0%, #e8f9ee 54%, #fffdf4 100%);
}

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

a:hover {
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select,
input {
  touch-action: manipulation;
}

button,
a {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3,
p,
li {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 14px max(var(--page-gutter), calc((100% - 1120px) / 2));
  background: rgba(255, 253, 244, 0.94);
  backdrop-filter: blur(10px);
  animation: header-settle 520ms var(--ease-out-quart) both;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(23, 33, 29, 0.12));
}

.brand strong {
  line-height: 1.12;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink-strong);
  box-shadow: 0 4px 0 rgba(12, 74, 110, 0.16);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-header nav a,
.header-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--green-dark);
  font-size: var(--text-meta);
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header nav a:not(.header-cta) {
  color: var(--muted);
  font-weight: 700;
}

.site-header nav a:hover {
  background: #dff9e8;
}

.header-cta {
  border: 2px solid var(--border);
  background: var(--yellow);
  color: #ffffff;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(23, 33, 29, 0.2);
}

.hero,
.section,
.final-cta,
.demo-layout,
.site-footer {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1120px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.82fr);
  gap: 64px;
  align-items: center;
  min-height: min(720px, calc(100vh - 72px));
  padding: 40px 0 24px;
}

.hero-copy,
.section-heading,
.final-cta > div,
.demo-intro {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.hero-copy {
  animation: hero-copy-settle 680ms var(--ease-out-quint) both;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  color: var(--ink-strong);
  font-family: var(--display-font);
  font-size: var(--text-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

h2 {
  color: var(--ink-strong);
  font-size: var(--text-section-title);
  font-weight: 900;
  line-height: var(--leading-heading);
  letter-spacing: 0;
}

h3 {
  color: var(--ink);
  font-size: var(--text-card-title);
  font-weight: 900;
  line-height: var(--leading-tight);
  letter-spacing: 0;
}

.lead {
  max-width: 62ch;
  color: #304139;
  font-size: var(--text-lead);
  font-weight: 500;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 0 18px;
  font-weight: 900;
  line-height: 1.2;
  transition:
    background-color 180ms var(--ease-out-quart),
    box-shadow 180ms var(--ease-out-quart),
    color 180ms var(--ease-out-quart),
    transform 140ms var(--ease-out-quart);
}

.primary-action {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 7px 0 var(--green-dark);
}

.secondary-action {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(23, 33, 29, 0.16);
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  box-shadow: 0 7px 0 var(--green-dark);
  transform: translateY(-2px) scale(1.015);
}

.primary-action:active,
.secondary-action:active {
  box-shadow: 0 3px 0 rgba(12, 74, 110, 0.24);
  transform: translateY(3px) scale(0.985);
}

.free-note,
.safety-note,
.section-heading p,
.steps p,
.feature-grid p,
.tier-plan p,
.tier-cell,
.answer-grid p,
.final-cta p,
.demo-intro p,
.result-card p {
  color: var(--muted);
  font-weight: 400;
  line-height: var(--leading-body);
}

.free-note {
  color: var(--green-dark);
  font-weight: 800;
}

.safety-note {
  max-width: 65ch;
  font-size: var(--text-meta);
}

.hero-visual {
  position: relative;
  display: grid;
  margin: 0;
  min-width: 0;
  justify-items: end;
}

.hero-mascot {
  position: absolute;
  z-index: 3;
  left: -52px;
  bottom: -18px;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  filter: drop-shadow(0 8px 0 rgba(23, 33, 29, 0.14));
  pointer-events: none;
  animation:
    mascot-enter 720ms var(--ease-out-quint) 140ms both,
    mascot-idle 3600ms var(--ease-out-quart) 1100ms infinite;
}

.phone-mockup {
  position: relative;
  z-index: 2;
  width: min(100%, 318px);
  aspect-ratio: 360 / 720;
  min-width: 0;
  filter: drop-shadow(0 14px 0 rgba(23, 33, 29, 0.16));
  animation: phone-settle 760ms var(--ease-out-quint) 80ms both;
}

.phone-body {
  position: absolute;
  inset: 0;
  border: 2px solid #111827;
  border-radius: 42px;
  padding: 8px;
  background: #020617;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 -18px 34px rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(15, 23, 42, 0.5);
}

.phone-body::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  box-shadow: inset 0 0 0 2px #020617;
  pointer-events: none;
}

.phone-glass {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  padding: 36px 11px 12px;
  background: #020617;
}

.phone-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 34%, transparent 100%);
  opacity: 0.28;
  pointer-events: none;
}

.phone-speaker {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #1f2937;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.phone-camera-dot {
  position: absolute;
  top: 16px;
  left: calc(50% + 42px);
  z-index: 4;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #334155, #020617 72%);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.phone-side-button {
  position: absolute;
  z-index: 0;
  width: 4px;
  border-radius: 999px;
  background: #020617;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

.phone-side-button-left {
  left: -4px;
}

.phone-side-button-top {
  top: 104px;
  height: 50px;
}

.phone-side-button-bottom {
  top: 176px;
  height: 74px;
}

.phone-side-button-right {
  top: 146px;
  right: -4px;
  height: 92px;
}

.phone-screen {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 28px;
  padding: 14px 18px 22px;
  background: linear-gradient(180deg, #dff9e8 0%, #fffdf4 46%, #fff0a8 100%);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  color: var(--green-dark);
  font-size: var(--text-xs);
  font-weight: 900;
  line-height: 1;
}

.line-chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(12, 74, 110, 0.12);
  padding-bottom: 12px;
}

.line-chat-top > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(23, 33, 29, 0.36);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--border);
  font-size: var(--text-sm);
  font-weight: 900;
}

.line-chat-top div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.line-chat-top strong {
  color: var(--ink-strong);
  font-size: 0.9375rem;
  line-height: 1.2;
}

.line-chat-top small {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1.2;
}

.chat-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 6px 0;
}

.phone-input {
  min-width: 0;
  border: 2px solid rgba(23, 33, 29, 0.16);
  border-radius: 999px;
  padding: 10px 13px;
  background: #ffffff;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.2;
}

.bubble {
  width: fit-content;
  max-width: 100%;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
  font-weight: 800;
  line-height: 1.48;
  box-shadow: 0 4px 0 rgba(23, 33, 29, 0.12);
  animation: bubble-sequence 520ms var(--ease-out-quart) both;
}

.bubble:nth-child(2) {
  animation-delay: 140ms;
}

.bubble:nth-child(3) {
  animation-delay: 260ms;
}

.bubble.user {
  justify-self: end;
  background: var(--yellow);
}

.bubble.bot {
  justify-self: start;
  background: #dff9e8;
}

.bubble.summary {
  justify-self: start;
  background: #fff0a8;
}

.mobile-cta-bar {
  display: none;
}

.section {
  display: grid;
  gap: 28px;
  padding: 90px 0;
}

.section.compact {
  padding-top: 20px;
}

.section-heading {
  max-width: 68ch;
}

.steps,
.feature-grid,
.answer-grid {
  display: grid;
  gap: 18px;
}

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

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

.steps article,
.feature-grid article,
.answer-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.steps article,
.feature-grid article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.answer-grid article {
  border: 2px solid rgba(23, 33, 29, 0.78);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 253, 244, 0.9);
  box-shadow: 0 4px 0 rgba(23, 33, 29, 0.08);
}

.steps span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: var(--text-meta);
  font-weight: 900;
}

.feature-band {
  width: 100%;
  max-width: none;
  padding-right: max(var(--page-gutter), calc((100% - 1120px) / 2));
  padding-left: max(var(--page-gutter), calc((100% - 1120px) / 2));
  background: rgba(255, 253, 244, 0.86);
}

.safety-section {
  padding-top: 72px;
}

.safety-section .section-heading {
  border: 2px solid rgba(23, 33, 29, 0.78);
  border-radius: 16px;
  padding: 22px;
  background: #fff0a8;
  box-shadow: 0 4px 0 rgba(23, 33, 29, 0.1);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 24px;
  margin-bottom: 34px;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 30px 36px;
  background: var(--green-dark);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.final-cta h2,
.final-cta p {
  color: #ffffff;
}

.final-cta .primary-action {
  flex: 0 0 auto;
  min-width: 184px;
  min-height: 54px;
  padding-right: 28px;
  padding-left: 28px;
  white-space: nowrap;
}

.answer-section {
  padding-top: 58px;
}

.tier-section {
  padding-top: 56px;
  padding-bottom: 48px;
}

.tier-comparison {
  display: grid;
  overflow: hidden;
  border: 2px solid rgba(23, 33, 29, 0.16);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 6px 0 rgba(23, 33, 29, 0.1);
}

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

.status-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 2px solid rgba(23, 33, 29, 0.78);
  border-radius: 16px;
  padding: 18px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(23, 33, 29, 0.08);
}

.status-card.is-live {
  background: #dff9e8;
}

.status-card.is-testing {
  background: #fff0a8;
}

.status-card p:last-child {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.tier-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) repeat(2, minmax(160px, 0.72fr));
  min-width: 0;
}

.tier-row:not(:last-child) {
  border-bottom: 1px solid rgba(12, 74, 110, 0.12);
}

.tier-row-head {
  background: #fff0a8;
}

.tier-row-future {
  background: rgba(255, 240, 168, 0.42);
}

.tier-feature,
.tier-plan,
.tier-cell {
  min-width: 0;
  padding: 16px 18px;
}

.tier-feature,
.tier-plan:not(:last-child),
.tier-cell:not(:last-child) {
  border-right: 1px solid rgba(12, 74, 110, 0.12);
}

.tier-feature {
  color: var(--ink-strong);
  font-weight: 900;
  line-height: 1.45;
}

.tier-feature-heading {
  background: #fff0a8;
}

.tier-plan {
  display: grid;
  align-content: start;
  gap: 6px;
}

.tier-plan h3 {
  font-size: var(--text-card-title);
}

.tier-plan-free {
  background: #dff9e8;
}

.tier-plan-future {
  background: #fff0a8;
}

.tier-cell {
  display: grid;
  place-items: center;
  gap: 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.tier-cell-note {
  color: var(--muted);
  font-weight: 800;
}

.tier-kicker {
  color: var(--green-dark);
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.tier-plan-future .tier-kicker {
  color: var(--orange-dark);
}

.status-pill {
  width: fit-content;
  border: 1px solid rgba(12, 74, 110, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff0a8;
  color: #6b420e;
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1.3;
}

.tier-list,
.roadmap-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 0;
  color: var(--ink);
  line-height: 1.58;
  list-style: none;
}

.tier-list li,
.roadmap-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.tier-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  margin: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tier-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
}

.tier-icon--yes {
  border: 0;
  background: transparent;
}

.tier-icon--yes svg {
  color: #166534;
}

.tier-icon--no {
  border: 0;
  background: transparent;
}

.tier-icon--no svg {
  color: #b91c1c;
}

.tier-list li > span:last-child {
  min-width: 0;
}

.tier-list li > span:last-child,
.roadmap-list li {
  padding-left: 2px;
}

.roadmap-list {
  padding-left: 20px;
  list-style: disc;
}

.roadmap-list li {
  display: list-item;
  padding-left: 1px;
}

.roadmap-list li::marker {
  color: var(--green-dark);
  font-size: 0.88em;
}

.answer-grid h3 {
  font-size: var(--text-card-title);
}

.roadmap-layout {
  display: grid;
  gap: 28px;
  padding-top: 58px;
}

.roadmap-hero {
  padding-top: 28px;
  padding-bottom: 36px;
}

.roadmap-hero h1 {
  max-width: 820px;
  font-size: clamp(2.75rem, 5vw, 3.375rem);
}

.roadmap-updated {
  width: fit-content;
  border: 3px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff0a8;
  color: var(--green-dark);
  font-size: 0.9375rem;
  font-weight: 900;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roadmap-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border: 2px solid rgba(23, 33, 29, 0.78);
  border-radius: 16px;
  padding: 20px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(23, 33, 29, 0.08);
}

.roadmap-card.is-now {
  background: #dff9e8;
}

.roadmap-card.is-future {
  background: #fff0a8;
}

.roadmap-note {
  max-width: 68ch;
  color: var(--muted);
  line-height: var(--leading-body);
}

.legal-layout {
  display: grid;
  gap: 16px;
  padding-bottom: 72px;
}

.legal-hero {
  padding-top: 58px;
  padding-bottom: 24px;
}

.legal-document {
  display: grid;
  gap: 22px;
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 900px);
  margin: 0 auto;
}

.legal-document section {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.legal-document h2 {
  font-size: var(--text-legal-title);
}

.legal-document p,
.legal-document li {
  color: #304139;
  font-size: var(--text-body-lg);
  line-height: var(--leading-longform);
}

.legal-document a {
  display: inline;
  min-height: 0;
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-document ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal-table {
  display: grid;
  overflow: hidden;
  border: 2px solid rgba(23, 33, 29, 0.78);
  border-radius: 16px;
  background: var(--paper);
}

.legal-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 0.9fr;
}

.legal-table > div:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.legal-table strong,
.legal-table span {
  min-width: 0;
  padding: 14px;
  line-height: 1.58;
}

.legal-table strong:not(:last-child),
.legal-table span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.legal-table strong {
  background: #dff9e8;
  color: var(--green-dark);
  font-size: 0.9375rem;
  font-weight: 900;
}

.legal-table span {
  color: #304139;
  font-weight: 700;
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 700;
}

.footer-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.footer-brand-copy p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.line-dialog {
  width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 460px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.line-dialog::backdrop {
  background: rgba(8, 47, 73, 0.56);
}

.line-dialog-card {
  position: relative;
  display: grid;
  gap: 18px;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 10px 0 rgba(23, 33, 29, 0.2), 0 20px 44px rgba(23, 33, 29, 0.26);
}

.line-dialog[open] .line-dialog-card {
  animation: dialog-enter 240ms var(--ease-out-quart) both;
}

.line-dialog-card form {
  display: flex;
  justify-content: flex-end;
}

.line-dialog-close {
  min-height: 38px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.line-dialog-close:hover {
  background: #dff9e8;
}

.line-dialog-copy {
  display: grid;
  gap: 8px;
  text-align: center;
}

.line-dialog-copy h2 {
  font-size: 1.75rem;
}

.line-dialog-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: var(--leading-body);
}

.line-qr {
  width: min(100%, 320px);
  height: auto;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.line-direct-link {
  width: fit-content;
  justify-self: center;
}

.demo-layout {
  display: grid;
  gap: 24px;
  padding: 48px 0 70px;
}

.demo-intro {
  max-width: 760px;
}

.demo-intro h1 {
  font-size: clamp(2.375rem, 4.6vw, 3rem);
}

.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 18px;
  min-width: 0;
  border: 2px solid rgba(12, 74, 110, 0.18);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.demo-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #164e63;
  font-weight: 900;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(12, 74, 110, 0.3);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.result-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 2px solid rgba(12, 74, 110, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.result-number {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 16px;
  background: var(--green-dark);
  color: #ffffff;
}

.result-number span,
.result-number small {
  color: #bae6fd;
  font-weight: 900;
}

.result-number strong {
  font-size: 2.75rem;
  line-height: 1;
}

.goal-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.goal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.goal-list dt {
  color: var(--muted);
  font-weight: 800;
}

.goal-list dd {
  margin: 0;
  color: var(--green-dark);
  font-weight: 900;
}

.mascot-section {
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.mascot-section img {
  width: min(100%, 260px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 8px 0 rgba(23, 33, 29, 0.14));
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 10px;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .site-header nav.is-open {
    display: grid;
  }

  .site-header nav a,
  .header-cta {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
  }

  .site-header nav .header-cta {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 44px;
  }

  h1 {
    font-size: 3.125rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: var(--text-card-title);
  }

  .lead {
    font-size: 1.1875rem;
  }

  .section {
    gap: 24px;
    padding: 72px 0;
  }

  .answer-section {
    padding-top: 48px;
  }

  .tier-section {
    padding-top: 48px;
    padding-bottom: 42px;
  }

  .hero-visual {
    justify-items: stretch;
  }

  .hero-mascot {
    right: auto;
    left: max(4px, calc(50% - 176px));
    bottom: -10px;
    width: 136px;
  }

  .phone-mockup {
    justify-self: center;
  }

  .steps,
  .feature-grid,
  .answer-grid,
  .roadmap-grid,
  .status-grid,
  .demo-panel,
  .form-grid,
  .mascot-section {
    grid-template-columns: 1fr;
  }

  .mascot-section img {
    width: min(100%, 180px);
  }

  .answer-grid article,
  .roadmap-card,
  .legal-table strong,
  .legal-table span {
    padding: 16px;
  }

  .legal-table > div {
    grid-template-columns: 1fr;
  }

  .legal-table strong:not(:last-child),
  .legal-table span:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tier-comparison {
    max-width: 100%;
  }

  .tier-row {
    grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(92px, 0.58fr));
  }

  .tier-feature,
  .tier-plan,
  .tier-cell {
    padding: 12px;
  }

  .tier-feature,
  .tier-cell {
    font-size: var(--text-meta);
  }

  .tier-plan h3 {
    font-size: var(--text-body-lg);
  }

  .tier-plan p {
    font-size: var(--text-sm);
  }

  .tier-kicker {
    font-size: var(--text-xs);
  }

  .final-cta {
    display: grid;
  }

  .mobile-cta-bar {
    position: static;
    z-index: 9;
    display: grid;
    width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1120px);
    margin: 0 auto;
  }

  .mobile-cta-bar .primary-action {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 20px;
  }

  .hero,
  .section,
  .final-cta,
  .demo-layout,
  .site-footer {
    width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 1120px);
  }

  .site-header {
    min-height: 68px;
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

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

  h1,
  .demo-intro h1 {
    font-size: 2.25rem;
    line-height: 1.12;
  }

  .roadmap-hero h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.1875rem;
  }

  .answer-grid h3 {
    font-size: 1.1875rem;
  }

  .lead {
    font-size: 1.125rem;
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .section {
    gap: 22px;
    padding: 54px 0;
  }

  .section.compact {
    padding-top: 24px;
  }

  .feature-band {
    padding-right: var(--page-gutter);
    padding-left: var(--page-gutter);
  }

  .safety-section .section-heading {
    padding-left: 14px;
  }

  .final-cta {
    padding: 22px 24px;
  }

  .answer-grid article,
  .roadmap-card {
    padding: 15px;
  }

  .legal-hero {
    padding-top: 34px;
  }

  .legal-document p,
  .legal-document li {
    font-size: var(--text-body);
  }

  .tier-row {
    grid-template-columns: minmax(124px, 1fr) repeat(2, minmax(64px, 0.52fr));
  }

  .tier-feature,
  .tier-plan,
  .tier-cell {
    padding: 10px 8px;
  }

  .tier-feature,
  .tier-cell {
    font-size: var(--text-sm);
  }

  .tier-plan {
    gap: 4px;
  }

  .tier-plan h3 {
    font-size: 0.9375rem;
  }

  .tier-plan p {
    font-size: 0.6875rem;
    line-height: 1.45;
  }

  .tier-kicker {
    font-size: 0.625rem;
  }

  .tier-icon,
  .tier-icon svg {
    width: 18px;
    height: 18px;
  }

  .roadmap-card {
    padding: 18px;
  }

  .status-pill {
    width: 100%;
  }

  .site-footer {
    display: grid;
    align-content: center;
    padding: 18px 0;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .line-dialog-card {
    padding: 18px;
  }

  .line-dialog-copy h2 {
    font-size: 1.5rem;
  }

  .result-number strong {
    font-size: 2.25rem;
  }
}

@keyframes header-settle {
  from {
    transform: translateY(-8px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes hero-copy-settle {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes phone-settle {
  from {
    transform: translateY(18px) rotate(1.5deg);
  }
  to {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes mascot-enter {
  from {
    transform: translateX(-18px) translateY(10px) rotate(-3deg);
  }
  to {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

@keyframes mascot-idle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}

@keyframes bubble-sequence {
  from {
    transform: translateY(10px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-enter {
  from {
    transform: translateY(12px) scale(0.98);
  }
  to {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
