/* Heed website: shared styles. Colours mirror the app's Material 3 theme (ui/theme/Theme.kt). */

:root {
  color-scheme: light;
  --brand-1: #6366F1;
  --brand-2: #4338CA;
  --brand: #4F46E5;
  --brand-grad: linear-gradient(135deg, #6366F1, #4338CA);
  --wordmark-grad: linear-gradient(135deg, #6366F1, #4338CA);

  --bg: #F8F8FC;
  --on-bg: #14141F;
  --surface-lowest: #FFFFFF;
  --surface-low: #F3F3F9;
  --surface: #EEEEF6;
  --surface-high: #E8E8F2;
  --surface-highest: #E2E2EE;
  --on-surface-variant: #52526A;
  --outline: #C4C4D4;
  --outline-variant: #E0E0EA;

  --primary: #4F46E5;
  --on-primary: #FFFFFF;
  --primary-container: #E0E7FF;
  --on-primary-container: #1E1B4B;
  --secondary: #0E7490;
  --tertiary: #B45309;
  --tertiary-container: #FEF3C7;
  --error: #DC2626;

  --amber: #F59E0B;
  --green: #10B981;
  --red: #E5484D;
  --sky: #0EA5E9;
  --slate: #64748B;
  --c-amber: #B45309;
  --c-green: #047857;
  --c-red: #C2262B;
  --c-sky: #0369A1;
  --c-slate: #475569;
  --c-violet: #6D28D9;

  --shadow: 0 1px 2px rgba(20, 20, 31, .06), 0 8px 24px rgba(20, 20, 31, .06);
  --shadow-lg: 0 24px 60px rgba(67, 56, 202, .18), 0 4px 12px rgba(20, 20, 31, .08);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --wordmark-grad: linear-gradient(135deg, #C7D2FE, #818CF8);
    --bg: #0F0F17;
    --on-bg: #E8E8F2;
    --surface-lowest: #0A0A10;
    --surface-low: #15151F;
    --surface: #1A1A26;
    --surface-high: #22222F;
    --surface-highest: #2B2B3A;
    --on-surface-variant: #B0B0C6;
    --outline: #4A4A60;
    --outline-variant: #30303F;
    --primary: #A5B4FC;
    --on-primary: #1E1B4B;
    --primary-container: #3730A3;
    --on-primary-container: #E0E7FF;
    --secondary: #67E8F9;
    --tertiary: #FCD34D;
    --tertiary-container: #92400E;
    --error: #F87171;
  --c-amber: #FCD34D;
  --c-green: #6EE7B7;
  --c-red: #FCA5A5;
  --c-sky: #7DD3FC;
  --c-slate: #CBD5E1;
  --c-violet: #C4B5FD;
    --c-amber: #FCD34D;
    --c-green: #6EE7B7;
    --c-red: #FCA5A5;
    --c-sky: #7DD3FC;
    --c-slate: #CBD5E1;
    --c-violet: #C4B5FD;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --wordmark-grad: linear-gradient(135deg, #C7D2FE, #818CF8);
  --bg: #0F0F17;
  --on-bg: #E8E8F2;
  --surface-lowest: #0A0A10;
  --surface-low: #15151F;
  --surface: #1A1A26;
  --surface-high: #22222F;
  --surface-highest: #2B2B3A;
  --on-surface-variant: #B0B0C6;
  --outline: #4A4A60;
  --outline-variant: #30303F;
  --primary: #A5B4FC;
  --on-primary: #1E1B4B;
  --primary-container: #3730A3;
  --on-primary-container: #E0E7FF;
  --secondary: #67E8F9;
  --tertiary: #FCD34D;
  --tertiary-container: #92400E;
  --error: #F87171;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .3);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--on-bg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--tint { background: var(--surface-low); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--on-surface-variant); font-size: 1.1rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.muted { color: var(--on-surface-variant); }

/* ---------- Logo / wordmark ---------- */

.logo {
  width: 40px; height: 40px;
  flex: none;
}
.logo--lg { width: 72px; height: 72px; }

.wordmark {
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--wordmark-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--outline-variant);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
}
.brand .logo { width: 34px; height: 34px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--on-bg);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.nav__list a:hover { background: var(--surface-high); }
.nav__list a[aria-current="page"] { color: var(--primary); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--on-bg);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-high); }
.icon-btn svg { width: 22px; height: 22px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .nav__list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--shadow);
  }
  .nav__list a { padding: 12px 8px; border-radius: var(--radius-sm); }
  .nav.is-open .nav__list { display: flex; }
  .nav { position: static; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(79, 70, 229, .42); }
.btn--tonal { background: var(--primary-container); color: var(--on-primary-container); }
.btn--tonal:hover { filter: brightness(.97); }
.btn--outline { border-color: var(--outline); color: var(--on-bg); background: transparent; }
.btn--outline:hover { background: var(--surface-high); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 720px; height: 720px;
  max-width: 120vw;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .22), transparent);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 104px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}
.hero__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.hero__brand .wordmark { font-size: 2.6rem; line-height: 1; }
.hero h1 { max-width: 14ch; }
.hero__lead { font-size: 1.2rem; color: var(--on-surface-variant); max-width: 34rem; margin-bottom: 28px; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-surface-variant);
  font-size: .92rem;
}
.hero__badges li { display: inline-flex; align-items: center; gap: 6px; }
.hero__badges svg { width: 18px; height: 18px; color: var(--green); }

/* ---------- Phone mockup ---------- */

.phone {
  --p-bg: var(--bg);
  position: relative;
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 12px;
  border-radius: 44px;
  background: #1C1C26;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2E2E3C;
}
.phone__screen {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: var(--p-bg);
  color: var(--on-bg);
  font-size: 13px;
  line-height: 1.4;
}
.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  font-size: 12px;
  font-weight: 600;
}
.phone__status-icons { display: flex; gap: 5px; align-items: center; }
.phone__status-icons span { display: block; background: currentColor; border-radius: 2px; }
.phone__camera {
  position: absolute;
  top: 10px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #0B0B14;
}
.app-bar { padding: 10px 18px 6px; font-size: 20px; font-weight: 700; }
.app-body { padding: 4px 14px 14px; display: grid; gap: 12px; }

.status-card {
  border-radius: 22px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, #6366F1, #4338CA);
}
.status-card--paused { background: linear-gradient(135deg, #F59E0B, #B45309); }
.status-card--off { background: linear-gradient(135deg, #64748B, #334155); }
.status-card__row { display: flex; align-items: center; gap: 12px; }
.status-card__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  flex: none;
}
.status-card__icon svg { width: 22px; height: 22px; fill: #fff; }
.status-card__title { font-size: 16px; font-weight: 650; }
.status-card__sub { font-size: 12px; opacity: .85; }
.status-card__text { flex: 1; min-width: 0; }
.switch {
  position: relative;
  width: 40px; height: 24px;
  border-radius: 999px;
  background: #fff;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #4338CA;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 12.5px;
  font-weight: 600;
}
.chip-btn svg { width: 14px; height: 14px; fill: #fff; }

.m-label { font-size: 13px; font-weight: 650; margin: 2px 2px -4px; }

.m-card {
  border-radius: 16px;
  padding: 12px;
  background: var(--surface-low);
}
.m-reminder__head { display: flex; gap: 10px; }
.app-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  flex: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.app-icon--msg { background: #0EA5E9; }
.app-icon--mail { background: #DC2626; }
.app-icon--phone { background: #16A34A; }
.app-icon--chat { background: #10B981; }
.app-icon--bot { background: #8B5CF6; }
.m-meta { font-size: 11px; color: var(--on-surface-variant); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-title { font-weight: 650; font-size: 14px; }
.m-text { font-size: 12px; color: var(--on-surface-variant); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tag, var(--primary));
  background: color-mix(in srgb, var(--tag, var(--primary)) 14%, transparent);
}
.m-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.m-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--outline);
}
.m-btn--filled { background: var(--primary); color: var(--on-primary); border-color: transparent; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { border-radius: 14px; padding: 10px; background: var(--surface-low); }
.stat svg { width: 16px; height: 16px; }
.stat b { display: block; font-size: 18px; margin-top: 4px; }
.stat span { font-size: 11px; color: var(--on-surface-variant); }

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px 14px;
  background: var(--surface);
  font-size: 10.5px;
  text-align: center;
  color: var(--on-surface-variant);
}
.bottom-nav span { display: grid; justify-items: center; gap: 2px; }
.bottom-nav i {
  display: grid; place-items: center;
  width: 44px; height: 24px;
  border-radius: 999px;
}
.bottom-nav i svg { width: 16px; height: 16px; fill: currentColor; }
.bottom-nav .is-active { color: var(--on-bg); font-weight: 600; }
.bottom-nav .is-active i { background: var(--primary-container); color: var(--on-primary-container); }

/* ---------- Feature blocks ---------- */

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}
.feature + .feature { margin-top: 96px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature--flip .feature__visual { order: -1; }
}
.feature__text h2 { margin-bottom: 16px; }
.feature__text > p { color: var(--on-surface-variant); font-size: 1.08rem; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--primary); }

.panel {
  border-radius: var(--radius-lg);
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow);
  padding: 20px;
}
.section--tint .panel { background: var(--bg); }

/* Reminder styles */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 520px) { .styles-grid { grid-template-columns: 1fr; } }
.style-card { display: grid; gap: 10px; }
.style-card figcaption { font-weight: 650; font-size: .95rem; text-align: center; }
.style-card figcaption span { display: block; font-weight: 400; font-size: .82rem; color: var(--on-surface-variant); }
.mini {
  position: relative;
  aspect-ratio: 9 / 15;
  border-radius: 22px;
  overflow: hidden;
  padding: 14px 10px;
  color: #fff;
  font-size: 11px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
@media (max-width: 520px) { .mini { aspect-ratio: auto; min-height: 220px; max-width: 260px; margin: 0 auto; width: 100%; } }
.mini--popup { background: linear-gradient(180deg, #A5B4FC, #6366F1); justify-content: flex-start; }
.mini--alarm { background: linear-gradient(180deg, #312E81, #0B0B14); }
.mini--call { background: linear-gradient(180deg, #064E3B, #0B0B14); }
.heads-up {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  color: #14141F;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.heads-up__meta { font-size: 9.5px; color: #52526A; display: flex; align-items: center; gap: 4px; }
.heads-up__meta svg { width: 11px; height: 11px; fill: #4F46E5; }
.heads-up b { display: block; font-size: 11.5px; margin-top: 2px; }
.heads-up__actions { display: flex; gap: 10px; margin-top: 6px; font-size: 10px; font-weight: 700; color: #4F46E5; }
.mini__clock { font-size: 30px; font-weight: 300; line-height: 1; margin-top: 8px; }
.mini__label { opacity: .7; font-size: 9.5px; }
.pulse {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  margin: 10px 0 4px;
  border-radius: 50%;
  background: var(--ring);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ring) 60%, transparent);
  animation: pulse 2s ease-out infinite;
  font-weight: 700;
  font-size: 16px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ring) 55%, transparent); }
  80%, 100% { box-shadow: 0 0 0 16px transparent; }
}
.mini__name { font-weight: 650; font-size: 13px; }
.mini__progress { font-size: 9.5px; }
.mini__ack {
  margin-top: auto;
  width: 100%;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  color: #1E1B4B;
  font-weight: 700;
}
.mini__calls { margin-top: auto; display: flex; justify-content: space-around; width: 100%; }
.mini__calls span { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; }
.mini__calls i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.mini__calls svg { width: 16px; height: 16px; fill: #fff; }

.escalation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: .9rem;
}
.escalation .tag { font-size: .82rem; padding: 4px 10px; }
.escalation__arrow { color: var(--on-surface-variant); }

/* Logic blocks */
.blocks { display: grid; gap: 8px; font-size: .92rem; }
.block {
  --c: var(--brand-1);
  border-radius: 14px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--c) 10%, var(--surface-lowest));
  border-left: 4px solid var(--c);
}
.section--tint .block { background: color-mix(in srgb, var(--c) 10%, var(--bg)); }
.block__kw {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--kw, var(--c));
  margin-right: 6px;
}
.block__body { display: grid; gap: 6px; margin-top: 6px; }
.cond {
  --c: #3B82F6;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface-lowest);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.section--tint .cond { background: var(--bg); }
.cond em { font-style: normal; font-weight: 600; }
.group { --c: #8B5CF6; }
.block--when { --c: #6366F1; --kw: var(--primary); }
.block--if { --c: #3B82F6; --kw: var(--c-sky); }
.block--then { --c: #10B981; --kw: var(--c-green); }
.block--else { --c: #F97316; --kw: var(--c-amber); }
.group { --kw: var(--c-violet); }
.act { --c: #F59E0B; }
.act--filter { --c: #EF4444; }
.act--cat { --c: #14B8A6; }

/* History */
.history { display: grid; gap: 10px; }
.history .m-card { background: var(--surface-low); font-size: .9rem; }
.section--tint .history .m-card { background: var(--surface-lowest); }
.history .m-title { font-size: .98rem; }
.history .m-text { font-size: .86rem; }
.unsent { color: var(--c-red); font-weight: 500; }

/* Feature cards grid */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow);
}
.section--tint .card { background: var(--bg); }
.card h3 { margin-top: 14px; }
.card p { color: var(--on-surface-variant); margin: 0; }
.card__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.card__icon--amber { background: #FEF3C7; color: #92400E; }
.card__icon--green { background: #D1FAE5; color: #065F46; }
.card__icon--red { background: #FEE2E2; color: #991B1B; }
.card__icon--sky { background: #E0F2FE; color: #075985; }

/* Widgets */
.widgets {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: 640px;
}
.widget-fig { margin: 0; display: grid; gap: 8px; }
.widget-fig--wide { grid-column: 1 / -1; }
.widget-fig figcaption { font-size: .85rem; color: var(--on-surface-variant); }
.widget {
  border-radius: 24px;
  background: linear-gradient(315deg, #4338CA, #6366F1);
  color: #fff;
  padding: 12px 14px;
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(67, 56, 202, .3);
}
.widget b { display: block; font-size: 14px; line-height: 1.2; }
.widget small { display: block; font-size: 11px; opacity: .85; line-height: 1.3; }
.widget svg.bell { width: 22px; height: 22px; fill: #fff; flex: none; }
.widget__row { display: flex; align-items: center; gap: 10px; }
.widget__row > div { flex: 1; min-width: 0; }
.widget__row > div b, .widget__row > div small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.w-btn--solid { background: #fff; color: #4338CA; }
.widget--tiny { min-height: 56px; display: flex; align-items: center; }
.widget--small { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.widget--small .w-btn { text-align: center; }
.widget--wide { min-height: 60px; display: flex; align-items: center; }
.widget--full { min-height: 132px; display: grid; gap: 12px; align-content: space-between; }
.widget__actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* Languages / themes */
.lang-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lang-cloud span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-high);
  font-size: .88rem;
}
.theme-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.theme-swatch { border-radius: 18px; padding: 14px; border: 1px solid var(--outline-variant); font-size: .82rem; }
.theme-swatch--light { background: #F8F8FC; color: #14141F; }
.theme-swatch--dark { background: #0F0F17; color: #E8E8F2; border-color: #30303F; }
.theme-swatch .bar { height: 26px; border-radius: 10px; margin-bottom: 8px; background: linear-gradient(135deg, #6366F1, #4338CA); }
.theme-swatch .ln { height: 8px; border-radius: 4px; margin-top: 6px; background: currentColor; opacity: .15; }
.theme-swatch .ln:last-child { width: 60%; }

/* Privacy band */
.privacy-band {
  border-radius: 32px;
  padding: 40px 24px;
  background: var(--brand-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) { .privacy-band { padding: 56px; } }
.privacy-band h2 { color: #fff; }
.privacy-band > p { max-width: 640px; opacity: .92; font-size: 1.1rem; }
.privacy-band .eyebrow { color: #C7D2FE; }
.privacy-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  list-style: none;
  padding: 0;
  margin: 32px 0 28px;
}
.privacy-list li {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}
.privacy-list svg { width: 26px; height: 26px; fill: #fff; margin-bottom: 10px; }
.privacy-list b { display: block; font-size: 1.02rem; }
.privacy-list span { font-size: .92rem; opacity: .88; }
.privacy-band a { color: #fff; font-weight: 600; }
.privacy-band .btn--light { background: #fff; color: #3730A3; }

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow);
}
.section--tint .step { background: var(--bg); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}
.step p { color: var(--on-surface-variant); margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  background: var(--surface-lowest);
  border: 1px solid var(--outline-variant);
}
.section--tint .faq details { background: var(--bg); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 600;
  position: relative;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--on-surface-variant);
  border-bottom: 2px solid var(--on-surface-variant);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--on-surface-variant); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Download */
.download {
  text-align: center;
  border-radius: 32px;
  padding: 48px 24px;
  background: var(--surface-low);
  border: 1px solid var(--outline-variant);
}
.download .logo { margin: 0 auto 16px; }
.download .btn-row { justify-content: center; margin-top: 24px; }
.download p { color: var(--on-surface-variant); max-width: 560px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--outline-variant);
  padding: 40px 0;
  color: var(--on-surface-variant);
  font-size: .92rem;
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer .brand { font-size: 1.1rem; }
.site-footer .brand .logo { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--on-surface-variant); }
.footer-links a:hover { color: var(--primary); }

/* ---------- Legal page ---------- */

.legal { padding: 48px 0 80px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.45rem; margin-top: 48px; padding-top: 8px; }
.legal h3 { font-size: 1.08rem; margin-top: 24px; }
.legal p, .legal li { color: var(--on-bg); }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: .5em; }
.legal .summary {
  margin: 28px 0 8px;
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: var(--primary-container);
  color: var(--on-primary-container);
}
.legal .summary ul { margin: 8px 0 0; }
.legal .summary li { color: inherit; }
.legal .summary h2 { margin: 0; padding: 0; font-size: 1.1rem; }
.legal .toc { margin: 28px 0; padding: 20px 24px; border-radius: var(--radius); background: var(--surface-low); }
.legal .toc h2 { margin: 0 0 8px; padding: 0; font-size: 1rem; }
.legal .toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; }
.legal .toc li { margin-bottom: .3em; }
.perm-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.perm-table th, .perm-table td { text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--outline-variant); }
.perm-table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--on-surface-variant); }
.perm-table code { font-size: .8rem; word-break: break-word; color: var(--on-surface-variant); }
@media (max-width: 640px) {
  .perm-table thead { display: none; }
  .perm-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--outline-variant); }
  .perm-table td { display: block; padding: 4px 0; border: 0; }
  .perm-table td:first-child { font-weight: 650; }
}
.updated { color: var(--on-surface-variant); }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* Softer icon tiles in dark mode */
:root[data-theme="dark"] .card__icon--amber { background: #78350F; color: #FDE68A; }
:root[data-theme="dark"] .card__icon--green { background: #064E3B; color: #A7F3D0; }
:root[data-theme="dark"] .card__icon--red { background: #7F1D1D; color: #FECACA; }
:root[data-theme="dark"] .card__icon--sky { background: #0C4A6E; color: #BAE6FD; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .card__icon--amber { background: #78350F; color: #FDE68A; }
  :root:not([data-theme="light"]) .card__icon--green { background: #064E3B; color: #A7F3D0; }
  :root:not([data-theme="light"]) .card__icon--red { background: #7F1D1D; color: #FECACA; }
  :root:not([data-theme="light"]) .card__icon--sky { background: #0C4A6E; color: #BAE6FD; }
}

/* ---------- Real app screenshots in a phone frame ---------- */

.phone--shot { margin: 0 auto; }
.phone--shot .phone__screen { background: #0B0B14; }
.phone--shot img { display: block; width: 100%; height: auto; }
.hero .phone--shot { width: min(320px, 100%); }
.feature__visual .phone--shot { width: min(300px, 100%); }

/* Two screenshots side by side (they stack on narrow phones). */
.phone-pair { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.phone-pair .phone--shot { width: min(260px, 48%); padding: 8px; border-radius: 34px; }
.phone-pair .phone--shot .phone__screen { border-radius: 27px; }
.phone-pair .phone--shot:nth-child(2) { margin-top: 48px; }
@media (max-width: 420px) {
  .phone-pair { flex-direction: column; align-items: center; }
  .phone-pair .phone--shot { width: min(280px, 100%); }
  .phone-pair .phone--shot:nth-child(2) { margin-top: 0; }
}

/* ---------- Who it's for ---------- */

.cards--work { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.work-card h3 { margin-bottom: 6px; }
.work-card .work-card__apps { font-size: .9rem; margin-bottom: 4px; }
.work-card .checklist { margin-top: 14px; font-size: .97rem; }
.work-card .checklist b { color: var(--on-bg); }

.fineprint { color: var(--on-surface-variant); font-size: .88rem; margin: 28px 0 0; }
.site-footer .fineprint { margin: 18px auto 0; font-size: .8rem; }
