:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-warm: #f2eee8;
  --ink: #111111;
  --muted: #626260;
  --soft: #7b7b78;
  --border: #dedbd6;
  --accent: #ff5600;
  --accent-soft: #ffe1d3;
  --success: #0b7d39;
  --danger: #b3261e;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.08);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 86, 0, 0.14), transparent 30rem),
    linear-gradient(180deg, #fffdf9 0%, var(--bg) 42%, #f4efe8 100%);
  color: var(--ink);
  line-height: 1.5;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0 15%, var(--accent) 16% 100%);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
.language-toggle {
  padding: 10px 12px;
  border-radius: 4px;
}

.language-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  cursor: pointer;
}

nav a:hover,
nav a:focus-visible,
.language-toggle:hover,
.language-toggle:focus-visible {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.06);
  outline: none;
}

.nav-cta {
  color: #fff;
  background: var(--ink);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: #fff;
  background: var(--accent);
}

.section-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-top: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3.3rem, 8vw, 6.65rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0;
  font-size: clamp(2.05rem, 4.3vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.062em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px) scale(1.02);
  outline: none;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #fff;
}

.microcopy {
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 0.95rem;
  max-width: 580px;
}

.phone-card {
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.phone-topbar {
  height: 32px;
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.phone-topbar span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.message-thread {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #0f0f10;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  margin: 0;
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 0.96rem;
}

.bubble.user {
  align-self: flex-end;
  background: #0b84ff;
  color: #fff;
  border-bottom-right-radius: 5px;
}

.bubble.assistant {
  align-self: flex-start;
  background: #2c2c2e;
  color: #fff;
  border-bottom-left-radius: 5px;
}

.bubble.subtle {
  color: #d6d6d6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.split-section,
.expectations,
.signup-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

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

.feature-card,
.privacy-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-card.wide {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.feature-card p,
.why-section p,
.expectations p,
.signup-copy p,
.privacy-box p,
.safety-note p {
  margin: 0;
  color: var(--muted);
}

.feature-card.wide p {
  color: rgba(255, 255, 255, 0.76);
}

.why-section,
.safety-note {
  max-width: min(900px, calc(100% - 32px));
}

.why-section p,
.safety-note p {
  margin-top: 24px;
  font-size: 1.2rem;
}

.safety-note {
  padding: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 48px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.signup-section {
  align-items: start;
}

.privacy-box {
  margin-top: 24px;
}

.signup-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.form-row {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

.optional {
  color: var(--soft);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(255, 86, 0, 0.16);
}

.radio-grid,
.radio-stack {
  display: grid;
  gap: 10px;
}

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

.radio-grid label,
.radio-stack label,
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-weight: 500;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.consent-row label {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.field-error {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.has-error input[type="text"],
.has-error input[type="email"],
.has-error textarea {
  border-color: var(--danger);
}

.form-submit {
  width: 100%;
}

.form-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--soft);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  nav a:not(.nav-cta),
  .language-toggle {
    display: none;
  }

  .hero,
  .split-section,
  .expectations,
  .signup-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-card {
    max-width: 430px;
    margin: 0 auto;
  }

  .message-thread {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 24px, var(--max));
    padding: 56px 0;
  }

  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .brand span:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .feature-grid,
  .radio-grid {
    grid-template-columns: 1fr;
  }

  .safety-note {
    padding: 26px;
  }

  .phone-card {
    border-radius: 22px;
  }
}

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