/* Agenda Bell marketing site — "Color planes" direction.
   Palette comes from the logo spec (assets/mark.svg). Amber is reserved for calls to action. */

:root {
  --indigo-500: #6366F1;
  --indigo-700: #4338CA;
  --indigo-800: #3730A3;
  --ink: #17153B;            /* indigo 950 */
  --teal-400: #2DD4BF;
  --teal-600: #0D9488;
  --violet-400: #8B5CF6;
  --violet-700: #6D28D9;
  --amber-300: #FCD34D;
  --amber-500: #F59E0B;
  --tab: #C7D2FE;            /* indigo 200 */
  --paper: #FBFAFF;
  --card: #FFFFFF;
  --text: #1E293B;           /* slate 800 */
  --muted: #55607A;
  --line: #E4E3F5;

  --g-indigo: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
  --g-teal: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  --g-violet: linear-gradient(135deg, var(--violet-400), var(--violet-700));
  --g-amber: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  --g-night: linear-gradient(135deg, var(--indigo-800), var(--ink));

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --slant: clamp(26px, 5vw, 84px);
  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-700); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.025em; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: 0.96; }
h2 { font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1; }
h3 { font-weight: 700; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; font: 700 0.78rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; margin-bottom: 22px;
}
.eyebrow--ink { background: rgba(23, 21, 59, 0.1); color: var(--ink); }
.eyebrow--indigo { background: #E8E8FE; color: var(--indigo-700); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.5; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 3px; }

/* ---------- Header (one white bar on every page) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.site-header__bar {
  pointer-events: auto; max-width: var(--wrap); margin: 0 auto; background: #fff; border-radius: 22px;
  padding: 10px 14px 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px;
  box-shadow: 0 10px 30px -12px rgba(23, 21, 59, 0.45), 0 0 0 1px rgba(23, 21, 59, 0.06);
}
.site-header__logo img { height: 40px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 12px;
}
.site-nav a:hover { background: #EEEEFE; }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Bands: full-width colour planes with slanted joins ---------- */
.band {
  position: relative; overflow: hidden;
  margin-top: calc(var(--slant) * -1);
  padding: calc(var(--slant) + clamp(56px, 8vw, 110px)) 0 calc(var(--slant) + clamp(56px, 8vw, 110px));
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.band--rev { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }
.band--first { margin-top: -76px; clip-path: none; padding-top: clamp(130px, 14vw, 190px); }
.band--paper { background: var(--paper); }
.band--indigo { background: var(--g-indigo); color: #fff; }
.band--teal { background: var(--g-teal); color: var(--ink); }
.band--violet { background: var(--g-violet); color: #fff; }
.band--night { background: var(--g-night); color: #E7E7FB; }
.band--indigo h1, .band--indigo h2, .band--violet h1, .band--violet h2, .band--night h1, .band--night h2 { color: #fff; }

/* Decorative planes: big rounded panels that fan from a crown, like the mark */
.pl { position: absolute; z-index: 0; border-radius: clamp(40px, 8vw, 120px); pointer-events: none; }
.pl--teal { background: var(--g-teal); }
.pl--violet { background: var(--g-violet); }
.pl--indigo { background: var(--g-indigo); }
.pl--night { background: var(--g-night); }
.pl--lilac { background: #ECEBFF; }
.pl--mint { background: #D5F7F1; }
.pl--amber { background: var(--g-amber); border-radius: 50%; }

/* ---------- Hero ---------- */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--amber-300); }
.hero .lede { margin-top: 24px; max-width: 34em; color: #E9E9FF; }
.hero__note { margin-top: 18px; font-size: 0.95rem; color: #D9D9FB; }
.hero .pl--violet { width: 62vw; height: 150%; right: -22vw; top: -30%; transform: rotate(-15deg); }
.hero .pl--night { width: 46vw; height: 140%; right: -4vw; top: -46%; transform: rotate(15deg); opacity: 0.9; }

/* Phones fanned from a shared crown, with the amber clapper below */
.fan { position: relative; width: min(100%, 600px); aspect-ratio: 60 / 66; margin: 0 auto; }
.leaf {
  position: absolute; left: 50%; top: 4%; width: 40%; margin-left: -20%; transform-origin: 50% -28%;
  padding: 5.5% 3.6% 7%; border-radius: 20% 20% 15% 15% / 9% 9% 7% 7%;
  box-shadow: 0 30px 50px -20px rgba(23, 21, 59, 0.55);
}
.leaf img { width: 100%; border-radius: 14.5% / 6.9%; }
.leaf--l { background: var(--g-teal); transform: rotate(17deg); }
.leaf--r { background: var(--g-violet); transform: rotate(-17deg); }
.leaf--f { background: var(--g-indigo); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18) inset, 0 34px 60px -18px rgba(23, 21, 59, 0.7); }
.fan::before { /* binding tabs */
  content: ""; position: absolute; left: 50%; top: 1%; width: 13%; height: 4.5%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--tab) 0 38%, transparent 38% 62%, var(--tab) 62%); border-radius: 8px; z-index: 0;
}
.fan::after { /* clapper */
  content: ""; position: absolute; left: 50%; bottom: 0; width: 13%; aspect-ratio: 1; transform: translateX(-50%);
  background: var(--g-amber); border-radius: 50%; box-shadow: 0 14px 26px -8px rgba(23, 21, 59, 0.6);
}

/* ---------- Download buttons ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 34px; max-width: 560px; }
.downloads--row { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
.dl {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px 13px 16px; border-radius: 18px; text-decoration: none;
  background: var(--g-amber); color: var(--ink); min-height: 66px;
  box-shadow: 0 6px 0 #B45309, 0 18px 28px -14px rgba(23, 21, 59, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dl:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #B45309, 0 22px 30px -14px rgba(23, 21, 59, 0.7); }
.dl:active { transform: translateY(4px); box-shadow: 0 2px 0 #B45309; }
.dl svg { width: 30px; height: 30px; flex: none; fill: currentColor; }
.dl span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.dl small { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.02em; opacity: 0.85; }
.dl b { font: 800 1.2rem/1.15 var(--display); letter-spacing: -0.01em; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--wide-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.split .lede { margin-top: 20px; }
.copy-card {
  background: var(--card); color: var(--text); border-radius: 30px; padding: clamp(24px, 3.4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(23, 21, 59, 0.5);
}
.copy-card h2 { color: var(--ink); }
.copy-card .lede { color: var(--muted); }

.levels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.levels li { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #F4F3FF; }
.levels b { font: 800 1rem/1 var(--display); padding: 9px 12px; border-radius: 10px; color: #fff; text-align: center; }
.levels li:nth-child(1) b { background: var(--g-indigo); }
.levels li:nth-child(2) b { background: var(--g-amber); color: var(--ink); }
.levels li:nth-child(3) b { background: linear-gradient(135deg, #F0575A, #C4313C); }
.levels span { font-size: 0.98rem; line-height: 1.4; }

/* Screenshot sitting tilted on overlapping planes */
.stage { position: relative; padding: 9% 6% 11%; }
.stage .pl { inset: 0; border-radius: clamp(28px, 5vw, 64px); }
.stage .pl:nth-child(1) { transform: rotate(7deg) translate(3%, 2%); }
.stage .pl:nth-child(2) { transform: rotate(-6deg) translate(-2%, 1%); }
.stage img, .stage .phones { position: relative; z-index: 1; }
.shot { border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 40px 70px -26px rgba(23, 21, 59, 0.75), 0 0 0 1px rgba(23, 21, 59, 0.12); }
.caption { position: relative; z-index: 2; margin-top: 18px; font-size: 0.9rem; color: var(--muted); text-align: center; }
.band--violet .caption, .band--night .caption { color: #E4DCFF; }

/* ---------- Feature cards ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 60px); }
.section-head .lede { margin-top: 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--card); color: var(--text); border-radius: 26px; padding: 26px 26px 28px;
  box-shadow: 0 24px 40px -28px rgba(23, 21, 59, 0.6);
}
.card:nth-child(odd) { transform: rotate(-0.6deg); }
.card:nth-child(even) { transform: rotate(0.6deg); }
.card__icon { width: 54px; height: 54px; border-radius: 18px 18px 14px 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:nth-child(3n + 1) .card__icon { background: var(--g-indigo); }
.card:nth-child(3n + 2) .card__icon { background: var(--g-violet); }
.card:nth-child(3n) .card__icon { background: var(--g-night); }
.card p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }

/* ---------- Phones row ---------- */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.phones img { width: 31%; border-radius: 4.6vw; border-radius: clamp(18px, 3.2vw, 44px); box-shadow: 0 30px 50px -22px rgba(23, 21, 59, 0.8); }
.phones img:nth-child(1) { transform: rotate(-5deg) translateY(-4%); }
.phones img:nth-child(2) { transform: rotate(2deg) translateY(4%); }
.phones img:nth-child(3) { transform: rotate(6deg) translateY(-2%); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 22px; height: 22px; border-radius: 50%; background: var(--g-amber);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: calc(0.2em + 5px); width: 6px; height: 10px;
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.ticks b { color: inherit; }

/* ---------- Privacy summary ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.trio > div { border-radius: 26px; padding: 26px; background: #fff; border: 1px solid var(--line); }
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--muted); font-size: 0.98rem; }
.textlink { display: inline-block; margin-top: 30px; font-weight: 700; }

/* ---------- Other apps promo (home) and feature (apps page) ---------- */
.promo {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; overflow: hidden;
  background: #171713; color: #EEEDE7; border-radius: 36px; box-shadow: 0 40px 70px -34px rgba(23, 21, 59, 0.8);
}
.promo__copy { padding: clamp(26px, 4.5vw, 60px); }
.promo__brand { display: flex; align-items: center; gap: 12px; font: 700 0.85rem/1 var(--body); letter-spacing: 0.16em; margin-bottom: 26px; }
.promo__brand img { width: 44px; height: 44px; border-radius: 50%; }
.promo h3 { font: 800 clamp(1.9rem, 4vw, 3.2rem)/1 var(--display); color: #EEEDE7; letter-spacing: -0.03em; }
.promo h3 em { font-style: normal; color: #D8EF55; }
.promo p { margin-top: 18px; color: #C2C1B9; max-width: 32em; }
.promo img.promo__art { width: 100%; height: 100%; object-fit: cover; object-position: center top; max-height: 520px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 15px 22px; border-radius: 16px; text-decoration: none;
  font: 800 1.05rem/1 var(--display); background: var(--g-amber); color: var(--ink); box-shadow: 0 5px 0 #B45309;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: start; }
.gallery figure { margin: 0; background: #fff; border-radius: 26px; padding: 12px 12px 16px; box-shadow: 0 30px 50px -30px rgba(23, 21, 59, 0.7); color: var(--text); }
.gallery figure:nth-child(1) { grid-column: span 5; transform: rotate(-1.5deg); }
.gallery figure:nth-child(2) { grid-column: span 7; transform: rotate(1deg); }
.gallery figure:nth-child(3) { grid-column: 3 / span 8; transform: rotate(-0.6deg); }
.gallery img { border-radius: 16px; width: 100%; }
.gallery figcaption { padding: 12px 8px 0; font-size: 0.92rem; color: var(--muted); }
.gallery figcaption b { color: var(--ink); display: block; font-family: var(--display); font-size: 1.05rem; }

.closing { text-align: center; }
.closing .lede { margin: 18px auto 0; max-width: 36em; color: #D9D9FB; }
.closing .downloads { margin-top: 40px; }
.closing .pl--teal { width: 44vw; height: 130%; left: -16vw; top: -10%; transform: rotate(15deg); opacity: 0.9; }
.closing .pl--violet { width: 44vw; height: 130%; right: -16vw; top: -10%; transform: rotate(-15deg); opacity: 0.9; }
.closing .wrap > img { width: 96px; margin: 0 auto 18px; }

/* ---------- Legal pages ---------- */
.page-hero .wrap { max-width: 900px; }
.page-hero .lede { margin-top: 18px; max-width: 34em; }
.page-hero .pl--a { width: 40vw; height: 160%; right: -20vw; top: -40%; transform: rotate(-15deg); }
.page-hero .pl--b { width: 28vw; height: 150%; right: 2vw; top: -66%; transform: rotate(15deg); }
.meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.meta li { background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 0.9rem; line-height: 1.3; }
.meta span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }
.legal .promise { background: #fff; border: 1px solid var(--line); border-left: 10px solid var(--amber-500); border-radius: 22px; padding: 24px 26px; margin-bottom: 44px; }
.legal .promise h2 { font-size: 1.5rem; margin-bottom: 8px; }
.legal section { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 22px; padding: 30px 0; border-top: 1px solid var(--line); }
.legal .num { font: 800 1.1rem/1 var(--display); color: #fff; width: 54px; height: 54px; border-radius: 18px 18px 14px 14px; display: grid; place-items: center; }
.legal section:nth-of-type(3n + 1) .num { background: var(--g-indigo); }
.legal section:nth-of-type(3n + 2) .num { background: var(--g-teal); color: var(--ink); }
.legal section:nth-of-type(3n) .num { background: var(--g-violet); }
.legal section h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.1; margin: 12px 0 14px; }
.legal section h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal section p { margin: 0 0 14px; }
.legal section > div > :last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C8E6; padding: calc(var(--slant) + 48px) 0 44px; margin-top: calc(var(--slant) * -1); clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); position: relative; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px; }
.site-footer__top img { height: 44px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: #fff; font-weight: 600; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__fine { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .downloads--row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero__grid, .split, .split--wide-media, .promo { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 48px; }
  .split .stage { order: 2; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .promo img.promo__art { max-height: 380px; }
  .gallery figure:nth-child(n) { grid-column: 1 / -1; }
  .hero .pl--violet { width: 120vw; height: 60%; right: -50vw; top: auto; bottom: -12%; }
  .hero .pl--night { width: 100vw; height: 56%; right: auto; left: -46vw; top: auto; bottom: -16%; }
  .page-hero .pl--a, .page-hero .pl--b { opacity: 0.35; }
  .band > .pl[style] { opacity: 0.22 !important; }
  .closing .pl--teal, .closing .pl--violet { opacity: 0.3; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header { padding-top: 8px; }
  .site-header__bar { justify-content: center; border-radius: 18px; padding: 8px 8px 6px; }
  .site-header__logo img { height: 34px; }
  .site-nav a { font-size: 0.86rem; padding: 7px 9px; }
  .band--first { margin-top: -104px; padding-top: 150px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card:nth-child(n) { transform: none; }
  .levels li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .levels b { justify-self: start; }
  .legal section { grid-template-columns: minmax(0, 1fr); }
  .gallery figure:nth-child(n) { transform: none; }
}
@media (max-width: 480px) {
  .downloads, .downloads--row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dl, .btn { transition: none; }
}

/* The "same app on every screen" stage: the iPad overlaps the Mac window. */
.stage .shot--tablet { position: absolute; z-index: 2; width: 50%; right: 0; bottom: 2%; border-radius: 16px; transform: rotate(5deg); }
@media (max-width: 640px) { .stage .shot--tablet { width: 56%; right: -2%; bottom: -2%; } }
