/* 1foryes.com. Colors are Ann's logo (docs/brand/), the same tokens as
   mobile/tailwind.config.ts: change both together. The exact logo blue and
   green are for fills; small text uses the darker shades for contrast. */
:root {
  --brand: #007aff;
  --brand-dark: #0060c7;
  --brand-soft: #e8f2ff;
  --yes: #3bbd4b;
  --yes-dark: #24803a;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e1e9f4;
  --bg: #ffffff;
  --band: #f5f9fe;
  --bubble-in: #ececf0;
  --bubble-out: #3bbd4b;
  --bezel: #1d1d1f;
  --bezel-edge: #3a3a3e;
  --screen: #ffffff;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f4;
    --muted: #a7a9b0;
    --line: #2c2c31;
    --bg: #121214;
    --band: #1a1a1d;
    --brand-soft: #0f2847;
    --bubble-in: #26262b;
    /* Lighter than the page so the phone's outline still reads; black screen as in iOS dark mode. */
    --bezel: #3a3a40;
    --bezel-edge: #5c5c63;
    --screen: #000000;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); }
@media (prefers-color-scheme: dark) { a { color: #5aa9ff; } }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0.4em 0; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
section { padding: 64px 0; }
section.band { background: var(--band); }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { display: block; height: 35px; width: auto; }
.logo.small img { height: 28px; }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 6px 0; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .links a { color: var(--muted); }
.fine { font-size: 13px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--yes-dark); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0 0 20px; }
.hero h1 .yes { background: linear-gradient(90deg, #1a8fd0, #33a758); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .one { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: 0.24em; background: var(--brand); color: #fff; }
.lede { font-size: 1.2rem; color: var(--muted); margin: 0 0 12px; max-width: 34ch; }
.lede.small { font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button { display: inline-block; background: var(--brand-dark); color: #fff !important; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; }
.button:hover { background: #004fa6; }
.store-pill { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }

/* Phone thread */
.phone { position: relative; margin: 0 auto; width: 100%; max-width: 340px; min-height: 560px; background: var(--screen); border: 11px solid var(--bezel); border-radius: 50px; padding: 44px 12px 24px; box-shadow: 0 0 0 2px var(--bezel-edge), 0 24px 60px rgba(0,0,0,0.25); }
/* Dynamic Island */
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 999px; background: #000; }
@media (prefers-color-scheme: dark) { .phone::before { box-shadow: 0 0 0 1px #1c1c1f; } }
.phone-top { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); padding: 4px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.thread { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; }
.bubble.in { background: var(--bubble-in); align-self: flex-start; border-bottom-left-radius: 6px; }
.bubble.out { background: var(--bubble-out); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
@media (prefers-color-scheme: dark) { .step-n { color: #5aa9ff; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split p { color: var(--muted); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding: 6px 0 6px 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--yes); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 15px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.contact { padding-top: 24px; }

/* Long-form pages (sms, privacy, terms) */
.prose { max-width: 720px; padding-top: 48px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: 0 0 16px; }
.prose h2 { font-size: 1.35rem; margin: 2em 0 0.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.4em 0; }
.prose .lede { max-width: none; }
.samples { list-style: none; padding: 0 !important; }
.samples li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.samples .when { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.sms { margin: 0; white-space: pre-wrap; font: 15px/1.45 ui-monospace, "SF Mono", Menlo, monospace; }
.thread-wrap { margin: 16px 0; }

@media (max-width: 800px) {
  section { padding: 44px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 14px; }
}
/* Phones: a smaller logo leaves both nav links room on one line. */
@media (max-width: 420px) {
  .site-header .logo img { height: 28px; }
  .site-header nav { gap: 12px; }
}
@media (max-width: 360px) {
  .site-header .logo img { height: 24px; }
  .site-header nav { gap: 10px; }
  .site-header nav a { font-size: 13px; }
}
