/* getcarryon.app: CarryOn's own black and silver, Avenir Next as in the apps' wordmark, Line Waves at
   the arrival. One bold thing (the scene: the Mac at home becoming the iPhone in your hand); the rest
   stays quiet. Shared by the landing page and the privacy, terms and support pages. */

:root {
  --black: #000;
  --graphite: #161618;
  --raised: #1F1F22;
  --line: #2C2C30;
  --white: #F5F5F7;
  --silver: #C9C9CE;
  --soft: #A8A8B0;
  --mute: #8A8A92;
  --sans: "Avenir Next", "Avenir", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--black); color: var(--soft); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--white); text-decoration-color: var(--mute); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--white); margin: 0; text-wrap: balance; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  background: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,0)); }
.bar.solid { background: rgba(0,0,0,.78); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 600; font-size: 18px; letter-spacing: .2px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.bar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--soft); }
.bar nav a:hover { color: var(--white); }
.bar nav .bar-get { color: var(--black); background: var(--white); padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.bar nav .bar-get:hover { color: var(--black); background: var(--silver); }
@media (max-width: 640px) {
  .bar nav a:not(.bar-get) { display: none; }
}

/* Buttons: the App Store and the Mac. The App Store one is a stand-in for Apple's own badge, which
   replaces it on launch day (Apple's marketing guidelines ask for the official artwork). */
.get-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 14px; text-decoration: none;
  font: 600 17px/1 var(--sans); cursor: pointer; border: 1px solid transparent; transition: background-color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn span { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.btn small { font-size: 11px; font-weight: 500; letter-spacing: .2px; }
.btn.store { background: var(--black); color: var(--white); border-color: var(--soft); }
.btn.store span { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.btn.store:hover { border-color: var(--white); }
.btn.mac, .btn.share { background: var(--white); color: var(--black); }
.btn.mac:hover, .btn.share:hover { background: var(--silver); }
/* The device you're on leads. */
.on-ios .get-buttons .store, .on-mac .get-buttons .mac { order: -1; }
.on-ios .get-buttons .mac { display: none; }
.on-ios .get-buttons .store { background: var(--white); color: var(--black); border-color: var(--white); }
.on-ios .get-buttons .share { background: transparent; color: var(--white); border-color: var(--line); }
.on-mac .get-buttons .store { min-height: 54px; }
.fine { color: var(--mute); font-size: 14px; margin-top: 18px; }

/* The arrival */
.stage { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  padding: 120px var(--gutter) 96px; text-align: center; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 46% at 50% 50%, rgba(0,0,0,.94) 0%, rgba(0,0,0,.8) 50%, rgba(0,0,0,0) 100%),
              linear-gradient(to bottom, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 70%, #000 100%); }
.stage-copy { max-width: 900px; }
.stage h1 { font-weight: 700; font-size: clamp(44px, 8.4vw, 104px); line-height: 1; letter-spacing: -.035em; text-shadow: 0 0 30px rgba(0,0,0,.9); }
.stage h1 .w { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(.5s + var(--i) * .09s); }
.lead { font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; max-width: 620px; margin: 26px auto 38px; color: var(--silver);
  text-shadow: 0 0 14px #000, 0 0 4px #000; animation: show .8s ease-out 1.2s both; }
.stage .get-buttons, .stage .fine { animation: show .8s ease-out 1.45s both; }
@keyframes rise { from { opacity: 0; filter: blur(10px); transform: translateY(.25em); } }
@keyframes show { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .stage h1 .w, .lead, .stage .get-buttons, .stage .fine { animation: show .6s ease-out both; }
}

/* The scene. Tall, with a pinned stage the scroll drives (site.js). */
.scene { position: relative; height: 420vh; }
.scene-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; align-items: center;
  gap: clamp(24px, 4vw, 64px); max-width: var(--measure); margin: 0 auto; padding: 80px var(--gutter) 32px; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; }
.beat { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.beat.is-on { opacity: 1; transform: none; }
.beat h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
.beat p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); max-width: 30em; }
.rig { position: relative; height: min(78vh, 720px); min-height: 360px; }

.mac-frame, .phone-frame, .screen { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.mac-frame { border-radius: 16px; background: #0A0A0B; box-shadow: inset 0 0 0 1px #3A3A40, 0 40px 80px rgba(0,0,0,.6); }
.mac-frame .stand { position: absolute; left: 50%; top: 100%; width: 22%; height: 15%; transform: translateX(-50%);
  background: linear-gradient(to bottom, #2A2A2E, #4A4A50 70%, #2A2A2E); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.phone-frame { background: #0A0A0B; box-shadow: inset 0 0 0 1.5px #55555C, inset 0 0 0 4px #121214, 0 40px 90px rgba(0,0,0,.7); }
.phone-frame .island { position: absolute; left: 50%; top: 2.2%; width: 30%; height: 4%; transform: translateX(-50%); border-radius: 999px; background: #000; z-index: 3; }

/* The Mac's screen. Its size and font come from site.js, so the desktop refits as it moves. */
.screen { overflow: hidden; container-type: inline-size; background:
  radial-gradient(120% 90% at 20% 0%, #3B3B42 0%, #1B1B1F 55%, #0E0E10 100%); }
.desk { position: absolute; inset: 0; font-size: var(--fs, 1.6cqi); }
.menubar { display: flex; align-items: center; gap: 1.2em; height: 2.1em; padding: 0 1em; margin-top: var(--notch, 0px); background: rgba(0,0,0,.45); color: #E8E8EC; font-size: .92em; }
.menubar b { width: .9em; height: .9em; border-radius: 50% 50% 46% 46%; background: #E8E8EC; }
.menubar .menus { color: #BDBDC4; white-space: nowrap; overflow: hidden; }
.menubar .clock { margin-left: auto; }
.term { position: absolute; left: 50%; top: var(--term-top, 13%); width: min(var(--term-w, 78%), 46em); transform: translateX(-50%); max-height: 70%; overflow: hidden;
  border-radius: .8em; background: rgba(14,14,16,.96); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 1.5em 3em rgba(0,0,0,.5); }
.term-title { display: flex; align-items: center; gap: .45em; height: 2.2em; padding: 0 .9em; background: #232327; color: #9A9AA2; font-size: .9em; }
.term-title i { width: .8em; height: .8em; border-radius: 50%; background: #4A4A50; }
.term-title span { margin: 0 auto; transform: translateX(-1.6em); }
.term-body { padding: 1em 1.2em 1.2em; font: 1em/1.55 var(--mono); color: #D6D6DC; }
.term-body .you { color: #F5F5F7; }
.term-body em { font-style: normal; color: #8E8E96; }
.term-body .done { color: #F5F5F7; }
.t, .ask, .banner { transition: opacity .35s var(--ease), transform .45s var(--ease); }
.t[data-at] { opacity: 0; }
.t.is-on { opacity: 1; }
.ask { display: none; margin: .8em 0; padding: .7em .9em; border: 1px solid #5A5A62; border-radius: .5em; }
.ask.is-on { display: block; }
.ask .cmd { color: #F5F5F7; margin-bottom: .5em; }
.ask .pick { color: #F5F5F7; margin-top: .4em; }
.dock { position: absolute; left: 50%; bottom: 2.4%; transform: translateX(-50%); display: flex; gap: .7em; padding: .55em .7em;
  border-radius: 1.1em; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.dock i { width: 2.6em; height: 2.6em; border-radius: .7em; background: linear-gradient(160deg, #6A6A72, #2E2E33); }

/* CarryOn's own banner on the iPhone: the agent waiting for you. */
.banner { position: absolute; left: 4%; right: 4%; bottom: 4%; padding: 1.1em 1.2em 1em; border-radius: 1.4em; font-size: 1.15em;
  background: rgba(40,40,44,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 1.4em 3em rgba(0,0,0,.6); color: #D6D6DC; opacity: 0; transform: translateY(30%); }
.banner.is-on { opacity: 1; transform: none; }
.banner b { color: #F5F5F7; }
.banner-cmd { font-family: var(--mono); color: #F5F5F7; margin: .3em 0 .9em; }
.banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.banner-actions span { text-align: center; padding: .6em 0; border-radius: .8em; background: rgba(255,255,255,.1); color: #F5F5F7; font-weight: 600; }
.banner-actions .allow { background: #F5F5F7; color: #000; }
.banner .tap { position: absolute; right: 22%; bottom: 1.4em; width: 2.6em; height: 2.6em; margin: -1.3em; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.9); opacity: 0; transform: scale(.4); }
.banner .tap.is-on { animation: tap .7s var(--ease) both; }
@keyframes tap { 30% { opacity: 1; } to { opacity: 0; transform: scale(1.6); } }

@media (max-width: 820px) {
  .scene { height: 380vh; }
  .scene-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; padding-top: 76px; gap: 16px; }
  .beats { min-height: 9.5em; }
  .beat h2 { font-size: clamp(26px, 7vw, 34px); }
  .beat p { margin-top: 10px; font-size: 16px; }
  .rig { height: auto; min-height: 0; }
}

/* Reduced motion: no pinning; the scene rests on the iPhone and every moment is listed. */
.still .scene { height: auto; }
.still .scene-pin { position: static; height: auto; min-height: 100vh; }
.still .beats { gap: 28px; }
.still .beat { grid-area: auto; opacity: 1; transform: none; }
.still .beat h2 { font-size: clamp(24px, 2.6vw, 32px); }

/* Sections */
.work, .talk, .agents, .base, .private, .get { max-width: var(--measure); margin: 0 auto; padding: clamp(96px, 14vw, 168px) var(--gutter) 0; }
.section-head { max-width: 760px; }
.section-head h2, .base h2, .get h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; }
.section-head p { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); color: var(--soft); max-width: 36em; }

/* Work: the keys and the spec list. */
.keys { display: flex; flex-wrap: wrap; gap: 10px; margin: 56px 0 8px; }
.keys span { display: grid; place-items: center; min-width: 64px; height: 56px; padding: 0 14px; border-radius: 12px; color: var(--white); font-size: 18px; font-weight: 500;
  background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,.05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.5); }
.keys .wide { min-width: 96px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px clamp(24px, 4vw, 56px); margin: 48px 0 0; }
.specs dt { color: var(--white); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 16px; }
.specs .span { grid-column: 1 / -1; max-width: 760px; }
@media (max-width: 900px) { .specs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; gap: 28px; } }

/* Talk: spoken words typed out, then Cara's yes. */
.voice { margin-top: 56px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wave { display: flex; align-items: center; gap: 5px; height: 40px; margin-bottom: 26px; }
.wave i { width: 4px; height: 30%; border-radius: 2px; background: var(--silver); }
.voice.is-on .wave i { animation: level 1.1s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s !important; }
.wave i:nth-child(3n+1) { animation-delay: -.7s !important; }
.wave i:nth-child(4n) { animation-duration: .8s !important; }
@keyframes level { from { height: 18%; } to { height: 100%; } }
.said { color: var(--white); font-size: clamp(26px, 4vw, 48px); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.said + .said { margin-top: 18px; color: var(--silver); }
.said.fa { font-family: "Vazirmatn", "Geeza Pro", "Noto Naskh Arabic", var(--sans); letter-spacing: 0; text-align: right; }
.js .said .word { opacity: .12; transition: opacity .25s ease-out; }
.js .said .word.is-on { opacity: 1; }
.cara { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 9vw, 112px); }
.cara h3 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.cara-copy p { margin-top: 18px; font-size: 18px; max-width: 30em; }
.yes-card { padding: 22px; border-radius: 26px; background: var(--raised); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.5); }
.yes-who { color: var(--mute); font-size: 14px; font-weight: 600; }
.yes-what { color: var(--white); font-size: 19px; line-height: 1.4; margin: 8px 0 20px; }
.yes-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.yes-actions span { text-align: center; padding: 12px 0; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--white); font-weight: 600; }
.yes-actions .yes { background: var(--white); color: var(--black); }
@media (max-width: 760px) { .cara { grid-template-columns: 1fr; } }

/* Agents: the wall. */
.wall { margin-top: 56px; border-top: 1px solid var(--line); }
.agent { display: grid; grid-template-columns: 14px minmax(90px, 1.2fr) minmax(110px, 1fr) 3fr; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.agent b { color: var(--white); font-weight: 600; }
.agent .who { color: var(--mute); font-size: 15px; }
.agent .state { color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--silver); }
.agent.waiting { background: linear-gradient(to right, rgba(255,255,255,.07), rgba(255,255,255,0)); }
.agent.waiting .dot { background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
.agent.waiting .state { color: var(--white); }
.agent.idle .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mute); }
@media (max-width: 640px) {
  .agent { grid-template-columns: 14px 1fr auto; row-gap: 2px; }
  .agent .state { grid-column: 2 / -1; font-size: 15px; }
}
.hand-off { margin: clamp(56px, 8vw, 96px) 0 0; }
.hand-off p { color: var(--white); font-size: clamp(28px, 4vw, 52px); line-height: 1.12; letter-spacing: -.025em; font-weight: 500; max-width: 18em; }
.hand-off footer { margin-top: 14px; color: var(--mute); }

/* Base */
.base-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.base-points b { display: block; color: var(--white); font-size: 19px; margin-bottom: 6px; }
@media (max-width: 760px) { .base-points { grid-template-columns: 1fr; } }

/* Private: where things go. */
.flows { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.flow { padding: 28px clamp(16px, 2.4vw, 32px) 32px 0; }
.flow + .flow { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.flow h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.flow p { font-size: 16px; }
.flow:first-child h3 { font-size: 24px; }
.flow:first-child p { color: var(--silver); font-size: 17px; }
@media (max-width: 820px) {
  .flows { grid-template-columns: 1fr; }
  .flow, .flow + .flow { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
.promises { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(24px, 4vw, 56px); }
.promises b { color: var(--white); }
@media (max-width: 640px) { .promises { grid-template-columns: 1fr; } }
.more { margin-top: 36px; }

/* Get */
.get { padding-bottom: clamp(96px, 12vw, 144px); text-align: center; }
.get-lead { margin: 18px auto 0; font-size: clamp(18px, 1.8vw, 21px); max-width: 32em; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 56px auto; padding: 0; text-align: left; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; color: var(--white); font-size: 40px; font-weight: 300; line-height: 1; margin-bottom: 14px; }
.steps b { color: var(--white); }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.get-row { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.qr { display: none; margin: 0; align-items: center; gap: 16px; text-align: left; }
.on-mac .qr, .on-other .qr { display: flex; }
.qr svg { width: 104px; height: 104px; border-radius: 12px; }
.qr figcaption { max-width: 12em; font-size: 15px; }
.setup { max-width: 760px; margin: 56px auto 0; padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: var(--graphite); box-shadow: 0 0 0 1px var(--line); text-align: left; }
.setup:focus { outline: none; }
.setup h3 { font-size: 22px; margin-bottom: 18px; }
.setup ol { margin: 0; padding-left: 1.3em; display: grid; gap: 12px; }
.setup li::marker { color: var(--white); font-weight: 600; }
.setup b { color: var(--white); }

/* Footer */
.foot { max-width: var(--measure); margin: 0 auto; padding: 28px var(--gutter) max(40px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--mute); font-size: 14px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--soft); text-decoration: none; }
.foot nav a:hover { color: var(--white); }
.foot-legal { margin-left: auto; }

/* The privacy, terms and support pages. */
.doc { max-width: 760px; margin: 0 auto; padding: 128px var(--gutter) 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.doc .updated { color: var(--mute); margin-top: 14px; font-size: 15px; }
.doc .summary { margin-top: 32px; padding: 24px 26px; border-radius: 20px; background: var(--graphite); box-shadow: 0 0 0 1px var(--line); color: var(--silver); }
.doc .summary p + p { margin-top: 10px; }
.doc h2 { font-size: 24px; letter-spacing: -.01em; font-weight: 600; margin: 52px 0 14px; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 17px; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--white); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--white); font-weight: 600; }
.doc .table-wrap { overflow-x: auto; }
.doc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.doc summary { color: var(--white); font-weight: 600; cursor: pointer; font-size: 18px; }
.doc details p, .doc details ol, .doc details ul { margin-top: 12px; }
.bar.doc-bar { background: rgba(0,0,0,.78); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.06); }
