/* Ari — "Bloom" coral palette, mirrored from the iOS app's AriTheme. */
:root {
  --background: #FFE9DE;
  --ink:        #2D1A2E;
  --muted:      #7A5C5A;
  --accent:     #FF5A4E;
  --accent-2:   #FF9F89;
  --pop:        #FBD56E;
  --accent-text:#FFE9DE;
  /* Darker coral for body links — clears WCAG AA (4.5:1) on white and cream. */
  --link:       #B83227;
  --field-bg:   #FFFFFF;
  --hairline:   rgba(45, 26, 46, 0.12);
  --error:      #C0392B;
  --success:    #1E7A4D;
  --radius:     16px;
  --maxw:       960px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

.display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus on interactive elements. */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link — hidden until focused by keyboard users. */
.skip {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  transition: top 0.15s ease;
}
.skip:focus { top: 8px; }

/* Honeypot anti-spam field — visually and assistively hidden, not display:none
   (some bots skip display:none fields). */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: auto; display: block; }
.nav a {
  display: inline-block;
  color: var(--ink);
  margin-left: 22px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover { color: var(--link); text-decoration: none; }

/* The hero heart mark, drawn from the Ari logo. */
.hero-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 12px 26px rgba(255, 90, 78, 0.28));
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 40px 0 56px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 68px);
  margin: 18px 0 12px;
}
.hero .tagline {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 28px;
}

/* The motto — "We swipe smarter, so you swipe less. You've got an agent now." */
.motto {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.35;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 32px;
}
.motto .agent {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* ── Signup card ────────────────────────────────────────── */
.signup-card {
  background: var(--field-bg);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 14px 40px rgba(45, 26, 46, 0.08);
  text-align: left;
}
.signup-card h2 { margin: 0 0 6px; font-size: 24px; }
.signup-card p.sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }

/* Confirmation panel shown in place of the form after a successful signup. */
.signup-success {
  text-align: center;
  padding: 14px 8px 10px;
  outline: none;
}
.signup-success .success-mark {
  display: block;
  width: 60px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 8px 18px rgba(255, 90, 78, 0.25));
}
.signup-success h2 { margin: 0 0 8px; font-size: 28px; }
.signup-success p { margin: 0; color: var(--muted); font-size: 15px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field .opt { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 16px; /* keep >=16px to prevent iOS Safari focus-zoom */
  background: #fff;
  color: var(--ink);
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 78, 0.15);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  /* Ink on coral = 5.25:1 (cream would only be 3.08:1, failing AA). */
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; }

.form-msg {
  margin-top: 14px;
  font-size: 15px;
  min-height: 1.2em;
}
.form-msg.error { color: var(--error); }
.form-msg.success { color: var(--success); }

.fine-print {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
/* In-content links carry a persistent underline so affordance isn't color-only. */
.fine-print a,
.content a { text-decoration: underline; }

/* ── Feature strip ──────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 0;
}
.feature h3 { font-size: 19px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Content pages (about / privacy / terms) ───────────── */
.content {
  padding: 24px 0 64px;
  max-width: 760px;
}
.content h1 { font-size: clamp(32px, 5vw, 46px); margin: 16px 0 8px; }
.content .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.content h2 { font-size: 24px; margin: 36px 0 10px; }
.content h3 { font-size: 18px; margin: 24px 0 6px; }
.content p, .content li { color: var(--ink); }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 8px; }

/* Agentic-benefit list on the About page. */
.agent-list { list-style: none; padding-left: 0; margin: 22px 0; }
.agent-list li {
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(45, 26, 46, 0.05);
}
.agent-list li strong { color: var(--ink); }
.agent-closing {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 28px 0;
  font-size: 18px;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  display: inline-block;
  color: var(--muted);
  margin-right: 18px;
  padding: 8px 0;
  text-decoration: underline;
}
.site-footer a:hover { color: var(--link); }

@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; gap: 28px; }
  .nav a { margin-left: 14px; }
  .signup-card { padding: 24px; }
}
