/* Almanac marketing site. Tokens follow the app's Bright design (docs/redesign/BRIGHT.md). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --paper: #F8FAFC;
  --surface: #FFFFFF;
  --sunken: #F1F5F9;
  --line: #E2E8F0;
  --hair: #F1F5F9;
  --ink: #0F172A;
  --ink-title: #1E293B;
  --ink-body: #475569;
  --ink-meta: #64748B;
  --primary: #2563EB;
  --primary-500: #3B82F6;
  --primary-700: #1D4ED8;
  --primary-900: #1E3A8A;
  --primary-soft: #EFF6FF;
  --primary-100: #DBEAFE;
  --primary-200: #BFDBFE;
  --brand-tile: #1F5798;
  --gold: #C98A2E;

  --green: #16A34A;   --green-ink: #15803D;   --green-bg: #F0FDF4;
  --amber: #F59E0B;   --amber-ink: #B45309;   --amber-bg: #FEF3C7;
  --red: #EF4444;     --red-ink: #DC2626;     --red-bg: #FEF2F2;
  --purple: #A855F7;  --purple-ink: #7E22CE;  --purple-bg: #FAF5FF;
  --teal: #14B8A6;    --teal-ink: #0F766E;    --teal-bg: #F0FDFA;
  --orange: #F97316;  --orange-ink: #C2410C;  --orange-bg: #FFF7ED;
  --pink: #EC4899;    --pink-ink: #BE185D;    --pink-bg: #FDF2F8;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 40px 80px -30px rgba(30, 58, 138, .35), 0 12px 30px -12px rgba(15, 23, 42, .18);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--primary-200); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--white { background: var(--surface); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); }
.grad-text {
  background: linear-gradient(100deg, var(--primary) 10%, #7C3AED 60%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 22px; border-radius: 12px;
  font: 600 15.5px/1 "Inter", sans-serif; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ic--move { transform: translateX(3px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6); }
.btn--primary:hover { background: var(--primary-700); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(37, 99, 235, .7); }
.btn--ghost { background: var(--surface); color: var(--ink-title); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: #CBD5E1; transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--primary-700); }
.btn--white:hover { color: var(--primary-900); transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(15, 23, 42, .4); }
.btn--outline-white { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.btn--outline-white:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--sm { height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .78);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .86); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-body); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.nav-cta { display: flex; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    position: fixed; inset: 72px 0 auto 0; z-index: 49;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
    flex-direction: column; gap: 2px;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu a:not(.btn) { padding: 14px 4px; color: var(--ink-title); font-weight: 500; border-bottom: 1px solid var(--hair); }
  .mobile-menu .btn { margin-top: 14px; }
}

/* Hero */
.hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 85% 20%, rgba(59, 130, 246, .20), transparent 70%),
    radial-gradient(35% 40% at 10% 10%, rgba(168, 85, 247, .12), transparent 70%),
    radial-gradient(30% 40% at 60% 90%, rgba(20, 184, 166, .10), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(60% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 500; color: var(--ink-title);
}
.pill b { background: var(--primary-soft); color: var(--primary-700); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); margin-top: 22px; letter-spacing: -0.035em; line-height: 1.05; }
.hero .lead { margin-top: 22px; font-size: clamp(17px, 1.7vw, 19px); color: var(--ink-body); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-title); font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--green); }

.hero-visual { position: relative; padding: 0 0 48px 0; }
.browser {
  border-radius: 14px; background: var(--surface); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: var(--sunken); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.browser-bar i:nth-child(1) { background: #F87171; } .browser-bar i:nth-child(2) { background: #FBBF24; } .browser-bar i:nth-child(3) { background: #4ADE80; }
.browser-bar span { margin-left: 10px; flex: 1; max-width: 260px; height: 20px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; line-height: 18px; color: var(--ink-meta); padding: 0 8px; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 1320 / 860; object-fit: cover; object-position: top left; }

.phone {
  /* A thin-bezel phone: dark frame, side buttons, and a status bar with the island drawn above the screenshot. */
  position: relative; width: 100%; max-width: 280px;
  /* Bezel in px: percentage padding would follow the parent's width, which is far wider for absolutely placed phones. */
  padding: 7px; border-radius: 15% / 6.9%; background: #0B0F19;
  box-shadow: var(--shadow-lg), 0 0 0 1px #3F4A5C, inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 0 0 2px #1A2130;
}
.hero-visual .phone, .panel-media .phone, .stack .overlay.phone, .night-media .phone { padding: 5px; }
.phone::before, .phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #2A3242; }
.phone::before { right: -3px; top: 25%; height: 11%; }
.phone::after { left: -3px; top: 19%; height: 7%; }
.phone img {
  width: 100%; height: auto; aspect-ratio: auto 390 / 844; object-fit: cover;
  padding-top: 12.05%;
  border-radius: 13% / 5.75%;
  background: #F9FBFC url("../img/statusbar-light.svg") top center / 100% auto no-repeat;
}
.phone--dark img { background-color: #0B1220; background-image: url("../img/statusbar-dark.svg"); }
.hero-visual .phone { position: absolute; right: -20px; bottom: -8px; width: 27%; min-width: 130px; max-width: 210px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; color: var(--ink-title); font-weight: 600; line-height: 1.3; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 500; color: var(--ink-meta); font-size: 12px; }
.float-card .tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.float-card .tile .ic { width: 18px; height: 18px; }
.float-card--a { left: -28px; top: 18%; }
.float-card--b { left: 8%; bottom: 0; animation-delay: -2s; }
.float-card--c { right: 20%; top: -18px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.t-green { background: var(--green-bg); color: var(--green-ink); }
.t-blue { background: var(--primary-soft); color: var(--primary-700); }
.t-amber { background: var(--amber-bg); color: var(--amber-ink); }
.t-purple { background: var(--purple-bg); color: var(--purple-ink); }
.t-teal { background: var(--teal-bg); color: var(--teal-ink); }
.t-orange { background: var(--orange-bg); color: var(--orange-ink); }
.t-pink { background: var(--pink-bg); color: var(--pink-ink); }
.t-red { background: var(--red-bg); color: var(--red-ink); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-points { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 8px auto 0; width: 100%; }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card--a { left: -6px; top: 6%; }
  .float-card--c { display: none; }
  .float-card--b { left: 0; bottom: 4px; }
  .hero-visual .phone { right: -4px; min-width: 120px; }
}

/* Proof strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 26px 16px; text-align: center; border-left: 1px solid var(--hair); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(24px, 3vw, 32px); color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-meta); font-weight: 500; }
@media (max-width: 760px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--hair); }
  .stat:nth-child(even) { border-left: 1px solid var(--hair); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* Pain -> fix */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative;
}
.pain .before { font-size: 15px; color: var(--ink-body); text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, .55); text-decoration-thickness: 2px; }
.pain .arrow { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; color: var(--ink-meta); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pain .arrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pain .after { display: flex; gap: 10px; color: var(--ink-title); font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.pain .after .ic { color: var(--green); margin-top: 2px; }
@media (max-width: 960px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pain-grid { grid-template-columns: 1fr; } }

/* USP bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CBD5E1; }
.card h3 { font-size: 20px; margin-top: 18px; }
.card p { margin-top: 10px; font-size: 15.5px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.icon-tile .ic { width: 24px; height: 24px; }
.usp-1 { grid-column: span 3; }
.usp-2 { grid-column: span 3; }
.usp-3, .usp-4, .usp-5 { grid-column: span 2; }
.usp-6 { grid-column: span 6; }
.usp-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%); color: #fff; border: 0;
  position: relative; overflow: hidden;
}
.usp-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.usp-hero h3, .usp-hero p { color: #fff; position: relative; z-index: 1; }
.usp-hero .icon-tile { background: rgba(255, 255, 255, .16); color: #fff; position: relative; z-index: 1; }
.roles-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; position: relative; z-index: 1; }
.roles-row span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; }
.usp-wide { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.usp-wide h3 { margin-top: 0; }
.usp-wide p { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--sunken); color: var(--ink-title); font-size: 13.5px; font-weight: 600; }
@media (max-width: 960px) {
  .usp-1, .usp-2 { grid-column: span 6; }
  .usp-3, .usp-4, .usp-5 { grid-column: span 3; }
  .usp-5 { grid-column: span 6; }
  .usp-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .usp-3, .usp-4, .usp-5 { grid-column: span 6; } }

/* Role tabs */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--sunken); border-radius: 14px; margin: 0 auto 36px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs-wrap { text-align: center; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
  font: 600 15px/1 "Inter", sans-serif; color: var(--ink-body); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab .ic { width: 18px; height: 18px; }
@media (max-width: 480px) { .tab { padding: 10px 12px; font-size: 14px; } .tab .ic { display: none; } }
.tab[aria-selected="true"] { background: var(--surface); color: var(--primary-700); box-shadow: var(--shadow-sm); }
.tab:hover { color: var(--ink); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.panel[hidden] { display: none; }
.panel.is-entering { animation: fadeUp .45s var(--ease); }
.panel h3 { font-size: clamp(26px, 3vw, 34px); }
.panel .where { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.panel .where .ic { width: 16px; height: 16px; }
.panel > div > p { margin-top: 14px; font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--ink-title); font-size: 15.5px; }
.ticks li .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-bg); color: var(--green-ink); stroke-width: 3; margin-top: 1px; }
.panel-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }
.panel-media .browser { width: 100%; }
.panel-media .phone { position: absolute; right: -8px; bottom: -28px; width: 32%; max-width: 210px; }
.panel-media.phones { gap: 18px; }
.panel-media.phones .phone { position: relative; right: auto; bottom: auto; width: 46%; max-width: 250px; }
.panel-media.phones .phone:nth-child(2) { transform: translateY(36px); }
@media (max-width: 860px) {
  .panel { grid-template-columns: 1fr; }
  .panel-media { min-height: 0; margin-bottom: 24px; }
}

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 128px); }
.feature--flip .feature-copy { order: 2; }
.feature-copy .icon-tile { margin-bottom: 18px; }
.feature-copy h3 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.03em; }
.feature-copy > p { margin-top: 14px; font-size: 17px; }
.feature-copy .ticks { margin-top: 20px; }
.feature-media { position: relative; display: flex; justify-content: center; align-items: center; }
.feature-media::before {
  content: ""; position: absolute; inset: 6% 2%; z-index: 0; border-radius: 40px;
  background: var(--bg, var(--primary-soft));
}
.feature-media > * { position: relative; z-index: 1; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 3vw, 28px); padding: 24px 0; width: 100%; }
.duo .phone { width: 46%; max-width: 260px; }
.duo .phone:nth-child(2) { margin-top: 56px; }
.stack { width: 100%; padding: 32px 0 56px; }
.stack .browser { width: 92%; }
.stack .overlay { position: absolute; right: 0; bottom: 0; width: 38%; max-width: 230px; z-index: 2; }
.paper { border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotate(2.5deg); }
.paper img { width: 100%; }
.callout { display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px dashed #CBD5E1; font-size: 14.5px; color: var(--ink-body); }
.callout .ic { color: var(--primary); margin-top: 2px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.flow span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-title); }
.flow .ic { width: 16px; height: 16px; }
.flow .sep { color: var(--ink-meta); border: 0; background: none; padding: 0; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature-copy { order: 0; }
  .feature-media { order: 2; }
}

/* Light & dark band */
.night {
  background: radial-gradient(60% 80% at 80% 0%, rgba(37, 99, 235, .35), transparent 60%), #0B1120;
  color: #CBD5E1; overflow: hidden;
}
.night h2 { color: #F1F5F9; }
.night .eyebrow { color: #93C5FD; }
.night-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.night-grid h2 { font-size: clamp(30px, 4vw, 42px); margin-top: 14px; }
.night-grid p { margin-top: 16px; font-size: 17px; }
.night .browser { border-color: #1E293B; background: #111827; }
.night .browser-bar { background: #1E293B; border-color: #1E293B; }
.night .browser-bar span { background: #111827; border-color: #334155; color: #94A3B8; }
.night-media { position: relative; padding-bottom: 40px; }
.night-media .phone { position: absolute; left: -24px; bottom: -10px; width: 30%; max-width: 200px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px #4B5563, inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 0 0 2px #1A2130; }
.night .chip { background: rgba(255, 255, 255, .08); color: #E2E8F0; }
.night .chips { margin-top: 24px; }
@media (max-width: 860px) {
  .night-grid { grid-template-columns: 1fr; }
  .night-media .phone { left: auto; right: -4px; }
}

/* Screens gallery */
.gallery { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 28px; scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 8px; }
.gallery figure { margin: 0; flex: none; width: 230px; scroll-snap-align: center; }
.gallery .phone { max-width: none; }
.gallery figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-title); font-weight: 600; }
.gallery figcaption small { display: block; font-weight: 500; color: var(--ink-meta); font-size: 13px; margin-top: 2px; }
.gallery-nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-title); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s; }
.round-btn:hover { border-color: #CBD5E1; transform: translateY(-1px); }
.round-btn .ic { width: 18px; height: 18px; }
.round-btn.prev .ic { transform: rotate(180deg); }

/* Modules */
.modules { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.module { flex: 0 1 calc((100% - 48px) / 5); min-width: 0; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.module:hover { border-color: var(--primary-200); transform: translateY(-2px); }
.module .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.module .icon-tile .ic { width: 19px; height: 19px; }
.module b { display: block; color: var(--ink-title); font-size: 15px; font-weight: 600; line-height: 1.3; }
.module small { display: block; color: var(--ink-meta); font-size: 13px; line-height: 1.35; margin-top: 2px; }
@media (max-width: 1100px) { .module { flex-basis: calc((100% - 36px) / 4); } }
@media (max-width: 860px) { .module { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 640px) { .module { flex-basis: calc((100% - 12px) / 2); } }
@media (max-width: 340px) { .module { flex-basis: 100%; } }
@media (max-width: 480px) { .module { padding: 12px; gap: 10px; } .module .icon-tile { width: 34px; height: 34px; } }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust { padding: 26px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.trust h3 { font-size: 18px; margin-top: 16px; }
.trust p { margin-top: 8px; font-size: 15px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary-soft); color: var(--primary-700); font-weight: 700; font-size: 14px;
}
.step h3 { font-size: 18px; margin-top: 18px; }
.step p { margin-top: 8px; font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -14px; width: 10px; height: 10px;
  border-top: 2px solid var(--primary-200); border-right: 2px solid var(--primary-200); transform: rotate(45deg);
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .step::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; color: var(--ink); font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-meta); transition: transform .25s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--primary); }
.faq details p { padding: 0 22px 22px; font-size: 15.5px; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; border-radius: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 60%, var(--primary-900) 100%);
  color: #fff; padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
}
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.cta::after { content: ""; position: absolute; width: 240px; height: 240px; left: 40%; bottom: -160px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); position: relative; z-index: 1; }
.cta p { margin-top: 14px; font-size: 17px; color: #fff; position: relative; z-index: 1; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta-actions { justify-content: center; } }
@media (max-width: 560px) { .cta-actions .btn { flex: 1 1 100%; } }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid p { margin-top: 14px; font-size: 14.5px; max-width: 320px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-meta); font-weight: 600; }
.foot-grid ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-body); font-size: 14.5px; }
.foot-grid .brand { color: var(--ink); font-size: 20px; }
.foot-grid a:hover { color: var(--primary); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--ink-meta); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Contact page */
.contact-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); position: relative; overflow: hidden; }
.contact-hero::before {
  content: ""; position: absolute; inset: 0 0 50% 0; z-index: -1;
  background: radial-gradient(50% 80% at 20% 0%, rgba(59, 130, 246, .16), transparent 70%), radial-gradient(40% 70% at 90% 10%, rgba(168, 85, 247, .10), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-copy h1 { font-size: clamp(34px, 4.6vw, 52px); margin-top: 16px; letter-spacing: -0.035em; line-height: 1.08; }
.contact-copy > p { margin-top: 18px; font-size: 17.5px; }
.next-steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.next-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.next-steps .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.next-steps .icon-tile .ic { width: 20px; height: 20px; }
.next-steps b { display: block; color: var(--ink-title); font-size: 16px; }
.next-steps b + span { display: block; font-size: 15px; margin-top: 2px; }
.direct { margin-top: 32px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.direct[hidden] { display: none; }
.direct h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-meta); font-weight: 600; }
.direct a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-title); font-weight: 600; }
.direct a:hover { color: var(--primary); }
.direct a .ic { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); padding: clamp(22px, 3.4vw, 40px); }
.form-card h2 { font-size: 24px; }
.form-card .sub { margin-top: 6px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 28px; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-title); padding: 0; }
.field label .opt, .field legend .opt { color: var(--ink-meta); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; font: 400 15.5px/1.4 "Inter", sans-serif; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.field input::placeholder, .field textarea::placeholder { color: #94A3B8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBD5E1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-500); box-shadow: 0 0 0 4px var(--primary-100); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-ink); }
.field .err { display: none; font-size: 13px; color: var(--red-ink); font-weight: 500; }
.field.has-error .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-body); font-size: 14px; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice span .ic { width: 15px; height: 15px; display: none; stroke-width: 3; }
.choice input:hover + span { border-color: #CBD5E1; }
.choice input:checked + span { background: var(--primary-soft); border-color: var(--primary-200); color: var(--primary-700); font-weight: 600; }
.choice input:checked + span .ic { display: block; }
.choice input:focus-visible + span { outline: 3px solid var(--primary-200); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.form-foot small { font-size: 13px; color: var(--ink-meta); max-width: 340px; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; display: none; }
.form-status.is-error { display: block; background: var(--red-bg); color: var(--red-ink); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.success { text-align: center; padding: 28px 8px; }
.success[hidden] { display: none; }
.success .badge { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--green-bg); color: var(--green-ink); animation: pop .5s var(--ease); }
.success .badge .ic { width: 34px; height: 34px; stroke-width: 2.5; }
.success h2 { margin-top: 20px; font-size: 26px; }
.success p { margin: 10px auto 0; max-width: 420px; font-size: 16px; }
.success .btn { margin-top: 24px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

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