/* Moni — public site.
 *
 * The palette, radii and type roles are the variables defined in `moni.pen`,
 * which are the same values `moni/lib/core/theme/` mirrors into the app. The
 * design is a light-mode brand site: there is no dark variant in the .pen, so
 * the page commits to one look rather than inventing a second palette.
 *
 * Fonts ship with the site for the same reason the app bundles them: nothing
 * here is fetched from a third party at runtime.
 */

@font-face {
  font-family: 'Anton';
  src: url('fonts/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  --accent: #0e5a43;
  --accent-light: #e5f0ea;
  --surface-primary: #e8e9eb;
  --surface-card: #ffffff;
  --surface-dark: #1a1a1a;
  --surface-input: #f4f4f5;
  --fg-primary: #1a1a1a;
  --fg-secondary: #666666;
  --fg-muted: #999999;
  --fg-inverse: #ffffff;
  --border: #d4d4d8;
  --border-light: #e4e4e7;
  --success: #3b7d4f;
  --warning: #d4a843;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --caption: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --max: 82rem;
}

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

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

body {
  margin: 0;
  background: var(--surface-primary);
  color: var(--fg-primary);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  display: block;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- Type roles ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}

.kicker {
  font-family: var(--caption);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin: 0;
}

.lede {
  font-size: clamp(1rem, 1.15vw, 1.1875rem);
  color: var(--fg-secondary);
  margin: 0;
  max-width: 46ch;
}

a {
  color: inherit;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.375rem;
}

.nav__brand {
  font-family: var(--display);
  font-size: 1.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg-primary);
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav__links a {
  font-size: 0.9375rem;
  color: var(--fg-primary);
  text-decoration: none;
}

.nav__links a:hover {
  color: var(--accent);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--fg-inverse);
  border-radius: var(--r-pill);
  padding: 0.6875rem 1.375rem;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav__cta:hover {
  color: var(--fg-inverse);
  filter: brightness(1.15);
}

.nav__lang {
  display: flex;
  gap: 0.375rem;
  font-family: var(--caption);
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

.nav__lang a {
  text-decoration: none;
}

.nav__lang [aria-current='true'] {
  color: var(--fg-primary);
  font-weight: 600;
}

@media (max-width: 56rem) {
  .nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }
  .nav__links {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem 1.25rem;
  }
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 4.4vw, 4rem);
  align-items: center;
  padding-block: clamp(2rem, 4.4vw, 4rem) 0;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 1.9vw, 1.75rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 4.75rem);
}

.hero .lede {
  max-width: 52ch;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 0.5rem 1rem;
  font-family: var(--caption);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pill .icon {
  width: 1rem;
  height: 1rem;
}

.footnote {
  font-family: var(--caption);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0;
}

/* ---------- Store badges (unlinked until the app ships) ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  background: var(--surface-dark);
  color: var(--fg-inverse);
  border-radius: var(--r-md);
  padding: 0.75rem 1.375rem;
  min-width: 10.5rem;
}

.badge__top {
  font-size: 0.6875rem;
  opacity: 0.7;
}

.badge__name {
  font-size: 1.0625rem;
  font-weight: 500;
}

.badge--soon {
  position: relative;
  opacity: 0.75;
}

.badge--light {
  background: var(--fg-inverse);
  color: var(--fg-primary);
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--surface-dark);
  color: var(--fg-inverse);
  margin-top: clamp(2rem, 4.4vw, 4rem);
}

.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.625rem;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 2.8vw, 2.75rem);
}

.section__head h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  margin-top: 0.875rem;
}

.section__head .lede {
  max-width: 42ch;
}

@media (max-width: 52rem) {
  .section__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* ---------- Feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.card__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.card h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 0;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-secondary);
}

/* ---------- Showcase (dark band) ---------- */

.showcase {
  background: var(--surface-dark);
  color: var(--fg-inverse);
}

.showcase .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 4.4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 5.5vw, 5.5rem);
}

.showcase__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 30rem;
}

.showcase .kicker,
.showcase .lede {
  color: rgba(255, 255, 255, 0.62);
}

.showcase h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  margin: 0;
}

.bullets {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.bullets li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.86);
}

.bullets .icon {
  color: #7bbfa3;
  margin-top: 0.1rem;
}

/* ---------- Reminders ---------- */

.reminders .wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  align-items: center;
}

.reminders__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.reminders h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  margin: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chip {
  background: var(--surface-card);
  border-radius: var(--r-pill);
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.chip--on {
  background: var(--accent);
  color: var(--fg-inverse);
}

.note {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--fg-secondary);
  margin: 0;
}

.note .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex: none;
}

@media (max-width: 62rem) {
  .hero,
  .showcase .wrap,
  .reminders .wrap {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .hero__copy,
  .showcase__copy,
  .reminders__copy {
    justify-self: start;
  }
  .reminders .phone {
    order: 2;
  }
}

/* ---------- Privacy band ---------- */

.privacy-band {
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.privacy-band__inner {
  background: var(--accent-light);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: center;
}

.privacy-band__icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--fg-inverse);
  display: grid;
  place-items: center;
}

.privacy-band__icon .icon {
  width: 2rem;
  height: 2rem;
}

.privacy-band h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 0.625rem;
  color: var(--accent);
}

.privacy-band p {
  margin: 0;
  color: #14503d;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--fg-inverse);
  border-radius: var(--r-pill);
  padding: 0.875rem 1.625rem;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  filter: brightness(1.15);
}

.button--dark {
  background: var(--surface-dark);
}

@media (max-width: 62rem) {
  .privacy-band__inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ---------- FAQ / support ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.25rem;
}

.faq__item {
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
}

.faq__item h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.15;
  margin: 0 0 0.625rem;
}

.faq__item p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-secondary);
}

.contact-row {
  margin-top: 1.25rem;
  background: var(--surface-card);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.contact-row h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.contact-row p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--fg-secondary);
}

.head-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  justify-self: start;
  align-self: end;
}

/* ---------- Final CTA ---------- */

.cta {
  background: var(--accent);
  color: var(--fg-inverse);
  text-align: center;
}

.cta .wrap {
  padding-block: clamp(3.5rem, 6vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.625rem;
}

.cta .kicker {
  color: rgba(255, 255, 255, 0.72);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3.625rem);
  margin: 0;
  max-width: 18ch;
}

.cta p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--surface-dark);
  color: var(--fg-inverse);
}

.footer .wrap {
  padding-block: 3.5rem 2.25rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 5rem);
}

.footer__brand p {
  margin: 0.75rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer__wordmark {
  font-family: var(--display);
  font-size: 1.875rem;
  text-transform: uppercase;
  line-height: 1;
}

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem clamp(2rem, 4.5vw, 4.5rem);
}

.footer__col h3 {
  font-family: var(--caption);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 0.875rem;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--fg-inverse);
}

.footer__rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 2.25rem 0 1.5rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom a {
  text-decoration: none;
}

@media (max-width: 52rem) {
  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Phone mockups — the app's own screens, rebuilt in CSS
   ============================================================ */

.phone {
  background: var(--surface-dark);
  border-radius: 46px;
  padding: 10px;
  width: 393px;
  max-width: 100%;
  flex: none;
}

.phone__screen {
  background: var(--surface-primary);
  border-radius: 36px;
  overflow: hidden;
  height: 832px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--fg-primary);
}

@media (max-width: 26rem) {
  .phone {
    width: 100%;
    border-radius: 34px;
    padding: 7px;
  }
  .phone__screen {
    border-radius: 28px;
    height: 760px;
  }
}

.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 4px;
  font-family: var(--caption);
  font-size: 13px;
  font-weight: 600;
}

.status__dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.status__dots i {
  display: block;
  width: 16px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

.status__dots i:last-child {
  width: 22px;
  border-radius: 3px;
  opacity: 0.8;
}

.app {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 20px 0;
  min-height: 0;
}

.app__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app__title {
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.app__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--caption);
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-secondary);
}

.tag {
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app__controls {
  display: flex;
  gap: 8px;
}

.sq {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface-card);
  color: var(--fg-primary);
  display: grid;
  place-items: center;
  flex: none;
}

.sq--accent {
  background: var(--accent);
  color: var(--fg-inverse);
}

.sq .icon {
  width: 18px;
  height: 18px;
}

.panel {
  background: var(--surface-card);
  border-radius: var(--r-sm);
  padding: 12px;
}

/* Calendar */

.cal__dow,
.cal__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal__dow {
  margin-bottom: 10px;
  font-family: var(--caption);
  font-size: 10px;
  font-weight: 700;
  color: var(--fg-muted);
  text-align: center;
}

.cal__week + .cal__week {
  margin-top: 4px;
}

.day {
  height: 42px;
  border-radius: var(--r-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
}

.day--on {
  background: var(--surface-dark);
  color: var(--fg-inverse);
  font-weight: 700;
}

.day__dots {
  display: flex;
  gap: 3px;
  height: 4px;
}

.day__dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.day--on .day__dots i {
  background: var(--fg-inverse);
}

/* Day detail */

.detail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.detail__head .icon {
  width: 18px;
  height: 18px;
  color: var(--fg-muted);
}

.overline {
  font-family: var(--caption);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  display: block;
}

.detail__title {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-input);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}

.row__logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.row__text {
  flex: 1;
  min-width: 0;
}

.row__name {
  font-size: 14px;
  font-weight: 700;
}

.row__meta {
  font-family: var(--caption);
  font-size: 11px;
  color: var(--fg-secondary);
}

.row__price {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ahead {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  font-family: var(--caption);
  font-size: 12px;
  font-weight: 600;
}

.ahead .icon {
  width: 16px;
  height: 16px;
}

/* Tab bar — the app's MoniTabBar: three segments in a white pill, the active
   one filled with the dark foreground. */

.tabbar {
  margin-top: auto;
  padding: 12px 21px 21px;
}

.tabbar__pill {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 62px;
  padding: 4px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.tabbar__tab {
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--fg-secondary);
  font-family: var(--caption);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tabbar__tab .icon {
  width: 18px;
  height: 18px;
}

.tabbar__tab.on {
  background: var(--surface-dark);
  color: var(--fg-inverse);
}

/* Totals card (list screen) */

.totals {
  background: var(--surface-dark);
  color: var(--fg-inverse);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

.totals__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--caption);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.totals__top .icon {
  width: 14px;
  height: 14px;
}

.totals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.totals__col {
  padding-inline: 12px;
}

.totals__col:first-child {
  padding-left: 0;
}

.totals__col + .totals__col {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.totals__ccy {
  font-family: var(--caption);
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.totals__amount {
  font-family: var(--display);
  font-size: 18px;
  margin-top: 2px;
}

/* Subscription cards (list screen) */

.subs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.sub {
  background: var(--surface-card);
  border-radius: var(--r-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub__right {
  text-align: right;
}

.sub__when {
  font-family: var(--caption);
  font-size: 11px;
  color: var(--fg-secondary);
}

/* Lock screen (reminders) */

.lock {
  background: linear-gradient(180deg, #123a2c 0%, #0b0b0c 100%);
  color: var(--fg-inverse);
}

.lock .status {
  color: var(--fg-inverse);
}

.lock__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 20px 24px;
  min-height: 0;
}

.lock__clock {
  text-align: center;
  padding-bottom: 8px;
}

.lock__date {
  font-family: var(--caption);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.lock__time {
  font-family: var(--display);
  font-size: 68px;
  line-height: 1.05;
}

.lock__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Notifications stack against the bottom of the lock screen, the way the OS
   actually shows them, instead of hanging under the clock. */
.lock__group:first-of-type {
  margin-top: auto;
}

.lock__label {
  font-family: var(--caption);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.notif {
  background: rgba(255, 255, 255, 0.95);
  color: var(--fg-primary);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}

.notif__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--caption);
  font-size: 11px;
  color: var(--fg-secondary);
  margin-bottom: 6px;
}

.notif__app {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.notif__mark {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--accent);
  color: var(--fg-inverse);
  font-family: var(--display);
  font-size: 10px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.notif__title {
  font-size: 14px;
  font-weight: 700;
}

.notif__body {
  font-size: 13px;
  color: var(--fg-secondary);
  margin-top: 2px;
}

.notif--stack {
  position: relative;
}

/* The two peeking edges of the stack sit fully below the card, so no negative
   z-index is needed to keep them out from under its background. */
.notif--stack::before,
.notif--stack::after {
  content: '';
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -6px;
  height: 6px;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: rgba(255, 255, 255, 0.45);
}

.notif--stack::after {
  left: 16px;
  right: 16px;
  bottom: -11px;
  background: rgba(255, 255, 255, 0.24);
}

.lock__bar {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  padding-inline: 4px;
}

.lock__bar i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: block;
}

/* ============================================================
   Document pages (privacy, support)
   ============================================================ */

.page-head {
  padding-block: clamp(2.5rem, 4.5vw, 4.5rem) clamp(1.75rem, 3vw, 3rem);
}

.page-head h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  margin: 0.875rem 0 0;
}

.page-head .meta {
  font-size: 0.9375rem;
  color: var(--fg-secondary);
  margin: 1rem 0 0;
}

.summary {
  margin-top: 2rem;
  background: var(--accent-light);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.summary h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.375rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.summary p {
  margin: 0;
  color: #14503d;
}

.summary__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.summary__pills span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface-card);
  border-radius: var(--r-pill);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: var(--accent);
}

.summary__pills .icon {
  width: 1.05rem;
  height: 1.05rem;
}

@media (max-width: 52rem) {
  .summary {
    grid-template-columns: 1fr;
  }
}

.doc {
  display: grid;
  grid-template-columns: 16rem minmax(0, 46rem);
  gap: clamp(2rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  align-items: start;
}

.toc {
  position: sticky;
  top: 1.5rem;
}

.toc h2 {
  font-family: var(--caption);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 0.875rem;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  text-decoration: none;
}

.toc a::before {
  content: counter(toc) '. ';
}

.toc a:hover {
  color: var(--accent);
}

.doc__body {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.doc__body section {
  scroll-margin-top: 1.5rem;
}

.doc__body h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.15;
  margin: 0 0 0.625rem;
}

.doc__body p {
  margin: 0 0 0.75rem;
  color: var(--fg-secondary);
}

.doc__body p:last-child {
  margin-bottom: 0;
}

.doc__body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
  color: var(--fg-secondary);
}

.doc__body li {
  margin-bottom: 0.375rem;
}

.doc__body a {
  color: var(--accent);
}

@media (max-width: 62rem) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
  }
}

/* ---------- Support layout ---------- */

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25rem;
  gap: 2rem;
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  align-items: start;
}

.support__groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.support__group h2 {
  font-family: var(--caption);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin: 0 0 0.75rem;
}

.support__group .faq__item + .faq__item {
  margin-top: 0.75rem;
}

.support__group .faq__item h3 {
  font-size: 1.1875rem;
}

.aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.aside__card {
  border-radius: var(--r-lg);
  padding: 1.75rem;
}

.aside__card--dark {
  background: var(--surface-dark);
  color: var(--fg-inverse);
}

.aside__card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.aside__card--light {
  background: var(--surface-card);
}

.aside__card--accent {
  background: var(--accent-light);
}

.aside__card--accent h3,
.aside__card--accent p {
  color: var(--accent);
}

.aside__card h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.625rem;
  margin: 0 0 0.75rem;
}

.aside__card--accent h3 {
  font-size: 1.125rem;
}

.aside__card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--fg-secondary);
}

.aside__card p:last-child {
  margin-bottom: 0;
}

.aside__card .button {
  width: 100%;
  justify-content: center;
}

.tips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tips li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--fg-secondary);
}

.tips .icon {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--accent);
  margin-top: 0.15rem;
}

@media (max-width: 62rem) {
  .support {
    grid-template-columns: minmax(0, 1fr);
  }
}
