/* ctrlaltconnect.co. Colors match the app (constants/colors.ts); buttons are charcoal. */
:root {
  --bg: #F7F3ED;
  --fg: #1C1C1A;
  --card: #FFFDFC;
  --muted: #EFEAE2;
  --muted-fg: #6F6C66;
  --primary: #315F5B;
  --soft: #DCE5E1;
  --border: #DDD7CE;
  --success: #436653;
  --warning: #9A743D;
  --danger: #9C3F37;
  --button: #1C1C1A;
  --button-fg: #FFFDFC;
  --phone: #FFFDFC;
  --phone-edge: #1C1C1A;
  --radius: 20px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1A;
    --fg: #FFFDFC;
    --card: #292927;
    --muted: #373632;
    --muted-fg: #B8B2A9;
    --primary: #9ABBB4;
    --soft: #344642;
    --border: #3E3D39;
    --success: #8FB39E;
    --warning: #D2AE78;
    --danger: #DA766C;
    --button: #FFFDFC;
    --button-fg: #1C1C1A;
    --phone: #232321;
    --phone-edge: #4A4945;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 44px; height: 14px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary); }
.nav-links .button { color: var(--button-fg); }
@media (max-width: 760px) {
  .nav-links a:not(.button) { display: none; }
  .brand span { font-size: 16px; }
}

/* Type */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 76px); letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4.4vw, 48px); }
h3 { font-size: 21px; letter-spacing: -0.01em; line-height: 1.3; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted-fg); max-width: 34em; margin: 20px 0 0; }
.muted { color: var(--muted-fg); }
.small { font-size: 14px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--button); background: var(--button); color: var(--button-fg); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.button:hover { opacity: .88; }
.button:active { transform: scale(.98); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.button.outline { background: transparent; color: var(--fg); border-color: var(--border); }
.button.outline:hover { border-color: var(--fg); opacity: 1; }
.button[disabled] { opacity: .5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.section-head { max-width: 680px; margin-bottom: 48px; }
.band { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.teal { background: var(--primary); color: #FFFDFC; }
.teal .eyebrow { color: #DCE5E1; }
.teal .lede, .teal .muted { color: #DCE5E1; }
@media (prefers-color-scheme: dark) { .teal { background: #2A4744; } }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted-fg); }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.band .card { background: var(--bg); }
.card p { margin: 10px 0 0; color: var(--muted-fg); }
.card .num { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 18px; display: block; }
.icon-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--primary); }
.icon-dot svg { width: 20px; height: 20px; }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.list li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 9px; justify-self: center; }
.teal .list li::before { background: #FFFDFC; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Forms */
form.signup { display: grid; gap: 14px; }
.card form.signup { margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 13px; color: var(--muted-fg); font-weight: 400; }
input[type="text"], input[type="email"], textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font: inherit; font-size: 16px; }
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-fg); }
fieldset { border: 0; padding: 0; margin: 0; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; font-size: 15px; font-weight: 500; }
.choice input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.choice input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .row { flex-direction: column; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 15px; min-height: 1.6em; margin: 0; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }
.teal input[type="email"], .teal input[type="text"] { background: #FFFDFC; color: #1C1C1A; border-color: transparent; }
.teal .button { background: #1C1C1A; color: #FFFDFC; border-color: #1C1C1A; }
.teal .status.ok { color: #FFFDFC; }
.teal .status.err { color: #FFD9D4; }
.form-note { font-size: 13px; color: var(--muted-fg); margin: 0; }
.teal .form-note { color: #DCE5E1; }
.teal .form-note a { color: #FFFDFC; }

/* Phones */
.phones { display: flex; justify-content: center; gap: 20px; position: relative; }
.phone { width: 236px; flex: 0 0 auto; aspect-ratio: 9 / 19; border-radius: 40px; border: 8px solid var(--phone-edge); background: var(--phone); position: relative; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(28, 28, 26, .45); display: flex; flex-direction: column; }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 72px; height: 20px; border-radius: 12px; background: var(--phone-edge); z-index: 2; }
.phone .bar { display: flex; justify-content: space-between; padding: 10px 20px 0; font-size: 11px; font-weight: 600; height: 34px; }
.phone .screen { flex: 1; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; line-height: 1.45; }
.phone .tag { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--primary); }
.phone .title { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.phone .body { color: var(--muted-fg); }
.phone .mini-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: grid; gap: 6px; justify-items: center; text-align: center; }
.phone .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; font-weight: 600; font-size: 20px; }
.phone .name { font-weight: 600; font-size: 15px; }
.phone .chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.phone .chips span { background: var(--muted); border-radius: 999px; padding: 2px 8px; font-size: 10.5px; }
.phone .btn { border-radius: 999px; background: var(--button); color: var(--button-fg); text-align: center; padding: 9px; font-weight: 500; font-size: 12.5px; }
.phone .btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.phone .btn.done { background: var(--success); color: #FFFDFC; }
.phone .spacer { flex: 1; }
.phone .center { display: grid; justify-items: center; text-align: center; gap: 8px; margin: auto 0; }
.phone .line { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding: 7px 0; }
.phone .line span:first-child { color: var(--muted-fg); }
.phone .code { font-size: 26px; letter-spacing: .3em; font-weight: 600; color: var(--primary); }
.phone .pill { align-self: flex-start; font-size: 10.5px; background: var(--soft); color: var(--primary); border-radius: 999px; padding: 3px 9px; font-weight: 500; }
.phone .note { background: var(--muted); border-radius: 12px; padding: 10px; font-size: 11.5px; }
.rings { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: ring 2.4s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: .8s; }
.rings i:nth-child(3) { animation-delay: 1.6s; }
.rings b { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); }
@keyframes ring { from { transform: scale(.25); opacity: .9; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rings i { animation: none; opacity: .35; } .rings i:nth-child(1) { transform: scale(.45); } .rings i:nth-child(2) { transform: scale(.7); } .rings i:nth-child(3) { transform: scale(.95); } }
.link-bar { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 28px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.link-bar.on { opacity: 1; }
@media (max-width: 560px) {
  .phones { gap: 10px; }
  .phone { width: calc(50vw - 22px); aspect-ratio: 9 / 21; border-width: 6px; border-radius: 30px; }
  .phone .screen { padding: 10px 10px 14px; font-size: 11px; gap: 8px; }
  .phone .title { font-size: 14.5px; }
  .phone .bar { padding: 8px 14px 0; font-size: 10px; }
  .phone::before { width: 52px; height: 16px; }
  .phone .avatar { width: 40px; height: 40px; font-size: 16px; }
  .phone .mini-card { padding: 10px 8px; }
  .phone .chips span { font-size: 9.5px; }
  .phone .btn { padding: 7px; font-size: 11px; }
  .rings { width: 80px; height: 80px; }
  .link-bar { width: 60px; }
}
.phone-label { text-align: center; font-size: 13px; color: var(--muted-fg); margin-top: 12px; font-weight: 500; }

/* Walkthrough */
.walk { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .walk { grid-template-columns: 1fr; gap: 32px; } .walk .walk-copy { order: 2; } }
.walk-copy h2 { font-size: clamp(28px, 3.4vw, 38px); }
.walk-copy p { color: var(--muted-fg); margin: 16px 0 0; }
.walk-copy .private { margin-top: 18px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; color: var(--fg); background: var(--soft); border-radius: 14px; padding: 12px 14px; }
.walk-copy .private svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; color: var(--primary); }
.stepper { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.dots { display: flex; gap: 6px; flex: 1; }
.dots button { flex: 1; height: 6px; border-radius: 3px; border: 0; padding: 0; background: var(--border); cursor: pointer; }
.dots button[aria-current="step"] { background: var(--fg); }
.dots button:hover { background: var(--muted-fg); }
.step-count { font-size: 13px; color: var(--muted-fg); margin-top: 12px; }
.fade { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade { animation: none; } }

/* Atlanta */
.atl { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .atl { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted-fg); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted-fg); max-width: 46em; }

/* Footer */
.site-footer { padding: 56px 0 48px; border-top: 1px solid var(--border); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.foot nav a { color: var(--fg); text-decoration: none; }
.foot nav a:hover { color: var(--primary); }
.tagline { color: var(--muted-fg); margin: 12px 0 0; }
