/* CallMyAgent: the phone, made playful. Black-glass call screen, jelly controls, message bubbles on a cool near-white.
   Green only answers, red only ends, blue is you. Privacy, safety and money stay in plain sentence case. */
@font-face { font-family: Onest; src: url(fonts/onest.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #F4F6F9; --tint: #EAEEF3; --paper: #FFFFFF; --ink: #141518; --slate: #4B5161; --rule: #DCE1E8;
  --glass: #0B0C0E; --glass-hi: #2A2D33; --on-glass: #FFFFFF; --on-glass-soft: #AEB5C2;
  --green: #2FD15A; --green-deep: #149A3A; --red: #FF453A; --red-deep: #C8231A;
  --blue: #1F63E0; --blue-deep: #1752C4; --yellow: #FFE14D;
  --radius: 22px; --pill: 999px;
  --gutter: clamp(20px, 4vw, 40px); --band: clamp(80px, 10vw, 136px);
  --ease: cubic-bezier(.2, .9, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
h1, h2, h3, .brand, .name, .amount { font-family: Onest, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html { background: var(--ground); color: var(--ink); font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%; scroll-behavior: smooth; accent-color: var(--blue); }
body { margin: 0; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
html { scrollbar-color: #C3CAD4 var(--ground); }

/* ---------- buttons: jelly pills ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px 17px; border-radius: var(--pill);
  font-weight: 600; font-size: 18px; line-height: 1; font-family: inherit; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(#2B6BE3, var(--blue) 52%, var(--blue-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.2), 0 8px 18px rgba(20,21,24,.22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.button svg { width: 19px; height: 19px; margin-top: -2px; }
.button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.2), 0 12px 24px rgba(20,21,24,.26); }
.button:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.2), 0 4px 10px rgba(20,21,24,.2); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; }
.mark { flex: none; width: 30px; height: 30px; }
.links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); color: var(--slate); font-size: 16px; }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }
.nav-get { text-decoration: none; color: var(--ink); font-weight: 600; padding: 9px 16px; border-radius: var(--pill); background: var(--paper); box-shadow: 0 1px 2px rgba(20,21,24,.1), 0 0 0 1px var(--rule); }

/* ---------- hero: the call ---------- */
/* fills exactly one screen: menu at the top, download at the bottom, spare room shared evenly between */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; gap: clamp(16px, 3vh, 32px); padding-bottom: clamp(24px, 5vh, 56px); }
.hero > .hero-copy, .hero > .scene, .hero > .hero-get { margin-top: auto; }
.hero > .wrap { width: 100%; }
.hero-copy { text-align: center; }
h1 { font-size: clamp(44px, min(5.6vw, 9vh), 80px); line-height: .96; letter-spacing: -0.04em; font-weight: 640; text-wrap: balance; }
.hero-sub { text-wrap: balance; margin-top: 12px; font-size: clamp(17px, 1.5vw, 20px); color: var(--slate); }

.scene { position: relative; width: 100%; max-width: 1080px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; gap: 24px; align-items: start; }
.thread { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.thread .bubble { font-size: 16px; padding: 9px 14px 10px; border-radius: 20px; max-width: 230px; }
.thread-left { align-items: flex-end; }
.thread-right { padding-top: 56px; }
.bubble { max-width: 250px; padding: 11px 16px 12px; border-radius: 22px; font-size: 17px; line-height: 1.32; }
.them { background: var(--paper); color: var(--ink); border-bottom-left-radius: 8px; box-shadow: 0 1px 1px rgba(20,21,24,.05), 0 6px 14px rgba(20,21,24,.07); }
.you { align-self: flex-end; background: linear-gradient(#2A6AE0, #1A5CD6); color: #fff; border-bottom-right-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px rgba(20,21,24,.12); }
.thread-left .them { align-self: flex-start; }

.call { position: relative; border-radius: 36px; padding: 24px 24px 20px; color: var(--on-glass);
  background: linear-gradient(180deg, var(--glass-hi) 0%, var(--glass) 46%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 34px 60px -24px rgba(11,12,14,.55), 0 10px 20px rgba(11,12,14,.12); }
.call::before { content: ""; position: absolute; inset: 1px 1px 54% 1px; border-radius: 39px 39px 160px 160px / 39px 39px 60px 60px;
  background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,0)); pointer-events: none; }
.sticker { position: absolute; right: 30px; top: -14px; transform: rotate(-7deg); background: var(--yellow); color: var(--ink);
  font-weight: 650; font-size: 14px; padding: 8px 13px; border-radius: 11px; box-shadow: 0 6px 14px rgba(20,21,24,.14); }
.who { display: flex; align-items: center; gap: 14px; }
.avatar { flex: none; width: 56px; height: 56px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.call[data-state="ringing"] .avatar { animation: wiggle 1.4s var(--ease) infinite; }
.name { font-size: 30px; line-height: 1.1; font-weight: 640; letter-spacing: -0.02em; }
.line { font-size: 16px; color: var(--on-glass-soft); margin-top: 3px; }

.slider { position: relative; margin-top: 20px; height: 64px; border-radius: var(--pill); background: #000; padding: 7px;
  box-shadow: inset 0 3px 8px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.12); touch-action: pan-y; }
.thumb { position: relative; z-index: 1; width: 92px; height: 50px; border: 0; border-radius: var(--pill); color: #fff; cursor: grab; display: grid; place-items: center;
  background: linear-gradient(#6FE68D, var(--green) 45%, var(--green-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 8px rgba(0,0,0,.45);
  transition: transform .45s var(--ease); }
.thumb svg { width: 24px; height: 24px; }
.thumb:active { cursor: grabbing; }
.call :focus-visible, .close :focus-visible { outline-color: #fff; }
.thumb:focus-visible { border-radius: var(--pill); }
.slide-label { position: absolute; left: 118px; top: 50%; transform: translateY(-50%); font-size: 19px; color: #9AA2B0; pointer-events: none; transition: opacity .2s; }
.incall { margin-top: 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.timer { font-size: 22px; color: var(--on-glass-soft); }
.end { width: 64px; height: 64px; border: 0; border-radius: 50%; color: #fff; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(#FF7068, var(--red) 45%, var(--red-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 4px 10px rgba(0,0,0,.45); }
.end svg { width: 26px; height: 26px; transform: rotate(135deg); }
.ended { margin-top: 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; color: var(--on-glass-soft); font-size: 17px; }
.replay { border: 0; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 16px; line-height: 1; font-family: inherit; padding: 12px 18px; border-radius: var(--pill); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.replay:hover { background: rgba(255,255,255,.16); }

/* during the call each line waits for its cue, then lands */
.thread .bubble.waiting { visibility: hidden; }
.thread .bubble.landing { animation: land .5s var(--ease) both; }

.hero-get { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.with { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; margin-bottom: 6px; font-size: 15px; color: var(--slate); }
.with .agent { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.with svg { width: 22px; height: 22px; }
.fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 15px; color: var(--slate); }
.fine span + span::before { content: "·"; margin: 0 8px; }

@keyframes wiggle { 0%, 56%, 100% { transform: rotate(0); } 8%, 24%, 40% { transform: rotate(-7deg); } 16%, 32%, 48% { transform: rotate(7deg); } }
@keyframes land { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.band { padding: var(--band) 0; }
.tinted { background: var(--tint); }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 640; text-wrap: balance; }
.lede { margin-top: 16px; font-size: clamp(18px, 1.7vw, 21px); color: var(--slate); max-width: 34ch; }
.aside { margin-top: 34px; font-size: 18px; color: var(--slate); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }

/* three short calls */
.chats { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chat { background: var(--tint); border-radius: 28px; padding: 22px 20px 24px; }
.chat figcaption { font-weight: 600; font-size: 15px; margin-bottom: 16px; }
.chat ol { display: flex; flex-direction: column; gap: 8px; }
.chat .bubble { font-size: 16px; max-width: 92%; }

/* recents */
.recents, .settings { background: var(--paper); border-radius: var(--radius); padding: 4px 22px; box-shadow: 0 1px 2px rgba(20,21,24,.06), 0 14px 34px rgba(20,21,24,.07); }
.recents > div, .settings > div { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.recents > div + div, .settings > div + div { border-top: 1px solid var(--rule); }
.glyph { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--ink); }
.glyph svg { width: 20px; height: 20px; }
.called .glyph { color: #fff; background: linear-gradient(#5EE07F, var(--green) 45%, var(--green-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.55); }
.recents > div > div, .settings > div > div { flex: 1; min-width: 0; }
.t { font-weight: 600; font-size: 17px; line-height: 1.3; }
.s { font-size: 15px; color: var(--slate); line-height: 1.4; margin-top: 2px; }
.recents time { font-size: 15px; color: var(--slate); }
.called .t { color: var(--ink); }
.stuck .glyph { color: #fff; background: linear-gradient(#FF7A72, var(--red) 45%, var(--red-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.stuck time { color: var(--red-deep); font-weight: 600; }

/* plain words */
.plain { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.plain h3 { font-size: 19px; line-height: 1.3; font-weight: 640; letter-spacing: -0.01em; }
.plain p { margin-top: 10px; font-size: 16px; color: var(--slate); }
.plain a { color: var(--ink); }

/* settings */
.value { flex: none; font-size: 15px; color: var(--slate); text-align: right; }
.agents { display: flex; gap: 10px; color: var(--ink); } .agents svg { width: 20px; height: 20px; }

/* pricing */
.plan { margin-top: 44px; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); background: var(--paper); border-radius: 32px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 1px 2px rgba(20,21,24,.06), 0 14px 34px rgba(20,21,24,.07); }
.amount { font-size: clamp(56px, 7vw, 84px); line-height: 1; font-weight: 640; letter-spacing: -0.04em; }
.per { margin-top: 8px; font-size: 18px; }
.alt { margin-top: 4px; font-size: 15px; color: var(--slate); }
.price .button { margin-top: 26px; }
dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
dl > div:first-child { padding-top: 0; }
dt { font-weight: 600; } dd { color: var(--slate); text-align: right; }
.note { margin-top: 18px; font-size: 15px; color: var(--slate); }

/* faq */
.faq-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.faq { margin-top: 32px; }
details { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 22px; color: var(--slate); max-width: 62ch; }

/* close: black glass */
.close { margin: 0 var(--gutter) var(--gutter); border-radius: 40px; color: var(--on-glass); text-align: center; padding: clamp(72px, 9vw, 120px) 0;
  background: linear-gradient(180deg, var(--glass-hi) 0%, var(--glass) 40%); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.close h2 { font-size: clamp(38px, 5.6vw, 72px); }
.close p { margin-top: 16px; font-size: 19px; color: var(--on-glass-soft); }
.close .button { margin-top: 32px; }
.close .fine { margin-top: 14px; }
.fine.on-dark { color: var(--on-glass-soft); }

footer { padding: 28px 0 40px; font-size: 14px; color: var(--slate); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; } footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .scene { grid-template-columns: minmax(0, 470px); justify-content: center; }
  .thread { display: none; }
  .scene.playing .thread { display: flex; padding-top: 0; align-items: stretch; margin-top: -14px; }
  .scene.playing .thread-left { order: 2; } .scene.playing .thread-right { order: 3; } .call { order: 1; }
  .thread .bubble.waiting { display: none; }
  .bubble, .thread .bubble { max-width: 82%; }
  .split, .plan { grid-template-columns: 1fr; }
  .chats, .plain { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .call { border-radius: 32px; padding: 22px 20px 20px; }
  .name { font-size: 28px; } .line { font-size: 14px; }
  .slide-label { font-size: 18px; }
  .sticker { right: 14px; }
  .fine { flex-direction: column; } .fine span + span::before { content: none; }
  dl > div { flex-direction: column; gap: 2px; } dd { text-align: left; }
  .settings > div { flex-wrap: wrap; }
  .close { margin: 0 12px 12px; border-radius: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- privacy and terms: plain words, same world ---------- */
.legal-head .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.legal { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--gutter) 24px; }
.legal h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1; letter-spacing: -0.035em; font-weight: 640; }
.legal .updated { margin-top: 14px; color: var(--slate); font-size: 15px; }
.legal h2 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 640; margin: 52px 0 12px; scroll-margin-top: 24px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--slate); }
.legal a { color: var(--blue-deep); }
.legal strong { font-weight: 640; }
.legal-foot { margin-top: 72px; border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14px; color: var(--slate); }
.legal-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-foot a { text-decoration: none; } .legal-foot a:hover { color: var(--ink); text-decoration: underline; }
