/* MamaCare website.
   Palette: the app's blue (design-system-boards/), a navy ink for type and dark surfaces,
   and Adey Abeba yellow (the Meskel daisy of new beginnings) used only for "your week".
   The one bold element is the 40-week ribbon, drawn like the tibeb border of a habesha kemis.
   Icon colors match the tool icons in the app; all text pairs meet WCAG AA. */
:root {
  --blue: #0466C8;
  --blue-deep: #03549F;
  --blue-tint: #E8F1FB;
  --ink: #13294B;
  --text: #3B4A61;
  --muted: #5B6B82;
  --line: #DCE4EE;
  --mist: #F2F6FB;
  --blush: #FCEEF2;
  --adey: #E0A400;
  --white: #FFFFFF;
  --error: #C2281C;

  --footer-blue: #0C3C84;
  --cream: #F2E8D5;

  --stitch: #C9D8EA;
  --ribbon-edge: #9DB9DD;
  --field-border: #7B8BA0;

  --radius: 16px;
  --header-height: 72px;
  --font: "Plus Jakarta Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
:lang(am) body, body:lang(am) { line-height: 1.75; }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--blue); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(4, 102, 200, 0.45); outline-offset: 3px; border-radius: 8px; }

/* Content sits in a centered column up to 1320px wide, so wide screens keep calm space on both
   sides. Section backgrounds still run the full width; only their content is held in. */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(18px, 3.2vw, 40px); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Icon colors, matching the tool icons in the app */
.tone-blue { background: #E8F1FB; color: #0466C8; }
.tone-green { background: #E1F5EC; color: #0B7A55; }
.tone-pink { background: #FCE6EE; color: #BE2A60; }

.tool-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
}

/* Buttons and store badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { min-height: 56px; background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 15px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  border: 1.5px solid #000; border-radius: 12px; background: #000; color: #fff;
  text-decoration: none; transition: background-color 0.15s;
}
.store-badge:hover { background: #1F2937; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge small { font-size: 11px; font-weight: 500; }
.store-badge strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.play-logo { width: 26px; height: 26px; flex: none; }
.store-badge-light { border-color: #fff; background: #fff; color: #000; }
.store-badge-light:hover { background: var(--blue-tint); border-color: var(--blue-tint); }
.store-badge-small { min-height: 48px; }
.store-badge-small strong { font-size: 17px; }

/* Note on the Amharic page for visitors whose browser isn't in Amharic */
.lang-hint {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 4px 8px 4px 16px; background: var(--ink); color: #fff; font-size: 14.5px;
}
.lang-hint p { text-align: center; }
.lang-hint a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.lang-hint-close {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: #fff; font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.lang-hint-close:hover { background: rgba(255, 255, 255, 0.12); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-height); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.main-nav { display: none; gap: 28px; margin: 0 auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.lang-switch { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px;
  border-radius: 999px; color: var(--muted);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.lang-switch a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-deep); }

/* Hero */
.hero { padding: 32px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; }
.hero-echo {
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px; color: var(--blue); font-size: 18px; font-weight: 600; line-height: 1.4;
}
.hero-echo::before { content: ""; flex: none; width: 28px; height: 2px; background: currentColor; }
.lead { max-width: 32em; margin: 20px 0 32px; font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.qr-code { flex: none; width: 114px; height: 114px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-code img, .qr-code canvas { width: 96px; height: 96px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-disc { position: absolute; width: min(88%, 470px); aspect-ratio: 1; border-radius: 50%; background: var(--mist); }
.hero-image { position: relative; width: min(400px, 76%); }

/* Week calculator and ribbon */
.calc-band { padding: 56px 0 48px; background: var(--mist); }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.calc-intro h2 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.calc-intro p { max-width: 30em; margin-top: 12px; }

.calc-switches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.segmented { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.segmented legend { padding: 0; margin-bottom: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.segmented-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
}
.segmented label { position: relative; display: flex; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
  padding: 6px 10px; border-radius: 10px;
  color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center;
}
.segmented input:checked + span { background: var(--blue-tint); color: var(--blue-deep); box-shadow: inset 0 0 0 1px rgba(4, 102, 200, 0.25); }
.segmented input:focus-visible + span { outline: 3px solid rgba(4, 102, 200, 0.45); outline-offset: 2px; }

.field-label { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 600; }
.calc-row { display: flex; flex-direction: column; gap: 10px; }
.date-greg, .date-eth { flex: 1; min-width: 0; }
.date-eth { display: grid; grid-template-columns: 0.8fr 1.5fr 1fr; gap: 8px; }
.calc-row input, .calc-row select {
  width: 100%; min-height: 52px; padding: 10px 14px;
  border: 1px solid var(--field-border); border-radius: 14px;
  background-color: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
.calc-row select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
.calc-row input:focus, .calc-row select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4, 102, 200, 0.2); }
.calc-row [aria-invalid="true"] { border-color: var(--error); }
.calc-error { margin-top: 10px; color: var(--error); font-size: 15px; font-weight: 600; }

.ribbon { margin-top: 28px; }
.ribbon-track {
  display: grid; grid-template-columns: 13fr 14fr 13fr; gap: clamp(10px, 2.4vw, 28px);
  padding: 12px 0;
  border-top: 4px double var(--ribbon-edge);
  border-bottom: 4px double var(--ribbon-edge);
}
.tri { display: grid; grid-template-columns: repeat(13, 1fr); gap: 2px; align-items: center; }
.tri:nth-child(2) { grid-template-columns: repeat(14, 1fr); }
.stitch {
  display: block; width: 100%; max-width: 24px; aspect-ratio: 1; justify-self: center;
  border-radius: 2px; background: var(--stitch);
  transform: rotate(45deg) scale(0.66);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.stitch:nth-child(even) { transform: rotate(45deg) scale(0.42); }
.stitch.is-done { background: var(--blue); }
.stitch.is-now {
  background: var(--adey);
  transform: rotate(45deg) scale(0.92);
  box-shadow: 0 0 0 2px var(--mist), 0 0 0 4px var(--ink);
}
.ribbon-labels { display: grid; grid-template-columns: 13fr 14fr 13fr; gap: clamp(10px, 2.4vw, 28px); margin-top: 10px; }
.ribbon-labels span { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; }

.calc-status { margin-top: 16px; }
.ribbon-hint { color: var(--muted); font-size: 15px; }
.calc-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 32px; align-items: center; }
.calc-week { color: var(--ink); font-size: 36px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.calc-details p { font-size: 16px; }
.calc-details p:first-child { color: var(--ink); font-weight: 600; }
.calc-link { justify-self: start; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.calc-link:hover { color: var(--blue-deep); }
.calc-note { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.section-head h2 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.section-head p { margin-top: 12px; font-size: 18px; }
.section-head-left { margin: 0 0 24px; text-align: left; }

/* Features: three moments of the journey, each with one small scene from the app */
.journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.moment { padding: 24px 24px 30px; border-radius: 28px; }
.moment-blue { background: var(--mist); }
.moment-green { background: #EEF8F3; }
.moment-pink { background: var(--blush); }
.moment-visual { display: grid; place-items: center; min-height: 200px; margin-bottom: 24px; }
/* Each title leads its card: larger than the text, with a short bar in the card's own color. */
.moment h3 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
.moment h3::before { content: ""; display: block; width: 32px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--accent); }
.moment-blue { --accent: #0466C8; }
.moment-green { --accent: #0B7A55; }
.moment-pink { --accent: #BE2A60; }
.moment > p { margin-top: 10px; color: var(--muted); }

.week-card, .journal-note { background: var(--white); box-shadow: 0 16px 32px -20px rgba(19, 41, 75, 0.4); }
.week-card { width: min(100%, 270px); padding: 18px 18px 16px; border-radius: 18px; }
.week-card-title { color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.week-card-sub { color: var(--muted); font-size: 13px; }
.week-card-tabs { display: flex; gap: 6px; }
.week-card-tabs span { padding: 5px 12px; border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; }
.week-card-tabs .is-on { background: var(--blue-tint); color: var(--blue-deep); }
.mini-ribbon {
  display: grid; grid-template-columns: repeat(40, 1fr); gap: 1px;
  margin: 14px 0 12px; padding: 6px 0;
  border-top: 3px double var(--ribbon-edge); border-bottom: 3px double var(--ribbon-edge);
}
.mini-ribbon i { display: block; aspect-ratio: 1; border-radius: 1px; background: var(--stitch); transform: rotate(45deg) scale(0.62); }
.mini-ribbon i:nth-child(even) { transform: rotate(45deg) scale(0.4); }
.mini-ribbon i.is-done { background: var(--blue); }
.mini-ribbon i.is-now { background: var(--adey); transform: rotate(45deg) scale(1.15); box-shadow: 0 0 0 1.5px var(--white), 0 0 0 2.5px var(--ink); }

.kick-counter { display: grid; justify-items: center; gap: 14px; }
.kick-ring {
  display: grid; place-items: center; align-content: center;
  width: 136px; height: 136px; border-radius: 50%; background: var(--white);
  box-shadow: 0 0 0 10px rgba(11, 122, 85, 0.1), 0 16px 32px -20px rgba(19, 41, 75, 0.4);
}
.kick-ring strong { color: #0B7A55; font-size: 46px; line-height: 1; font-weight: 800; }
.kick-ring small { margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 600; }
.kick-time { padding: 6px 14px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; }

.journal-note { width: min(100%, 260px); padding: 20px 22px 22px; border-radius: 6px 20px 20px 20px; transform: rotate(-2deg); }
.journal-note .icon { width: 22px; height: 22px; color: #BE2A60; }
.journal-week { margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.journal-text { margin-top: 4px; color: var(--ink); font-size: 17px; line-height: 1.55; }
:lang(en) .journal-text { font-style: italic; }

/* Share the journey: the app's invite flow, with a picture of the invite screen */
.share-band { background: var(--blush); }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.share-copy h2 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.share-lead { max-width: 34em; margin-top: 14px; font-size: 18px; }
.share-steps { display: grid; gap: 20px; margin: 32px 0 28px; }
.share-steps li { display: flex; gap: 16px; align-items: flex-start; }
.share-steps h3 { font-size: 18px; line-height: 1.35; font-weight: 700; }
.share-steps p { margin-top: 2px; }
.share-control {
  display: flex; align-items: center; gap: 14px; max-width: 34em;
  padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.75);
  color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.45;
}
.share-visual { display: grid; justify-items: center; }
.share-card {
  width: min(100%, 360px); padding: 22px 22px 18px; border-radius: 28px; background: var(--white);
  box-shadow: 0 24px 48px -24px rgba(19, 41, 75, 0.4);
}
.share-card-title { color: var(--ink); font-size: 19px; font-weight: 800; }
.share-roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin: 14px 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: 14px;
}
.share-roles span { padding: 8px 4px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.share-roles .is-on { background: var(--blue-tint); color: var(--blue-deep); box-shadow: inset 0 0 0 1px rgba(4, 102, 200, 0.25); }
.share-perms li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 2px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 500;
}
.share-perms li:first-child { border-top: 0; }
.toggle { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #C3CEDC; }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(19, 41, 75, 0.3);
}
.toggle.is-on { background: var(--blue); }
.toggle.is-on::after { left: 19px; }
.share-code { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--mist); text-align: center; }
.share-code-label, .share-code-note { color: var(--muted); font-size: 13px; font-weight: 600; }
.share-code-value { color: var(--ink); font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: 0.14em; font-variant-numeric: tabular-nums; }
.share-toast {
  display: inline-flex; align-items: center; gap: 8px; margin-top: -20px;
  padding: 10px 16px; border-radius: 999px; background: var(--white);
  color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 12px 28px -14px rgba(19, 41, 75, 0.45);
}
.share-toast .icon { width: 18px; height: 18px; color: #BE2A60; }

/* Trust */
.trust-band { background: var(--mist); }
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.trust-list { display: grid; gap: 24px; }
.trust-list li { display: flex; gap: 16px; align-items: flex-start; }
.trust-list h3 { font-size: 18px; font-weight: 700; }
.trust-art img { width: min(380px, 100%); margin: 0 auto; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
.faq-list summary:hover h3 { color: var(--blue); }
.faq-list summary .icon { width: 22px; height: 22px; color: var(--muted); transition: transform 0.2s; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { max-width: 60ch; padding: 0 0 22px; }

/* Final call to action */
.final {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center;
  margin-top: 72px; padding: 40px 24px;
  border-radius: 28px; background: var(--mist); color: var(--text);
}
.final h2 { color: var(--ink); font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.final-copy > p { margin-top: 10px; font-size: 18px; }
.steps { display: grid; gap: 12px; margin: 28px 0 32px; }
.steps li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.steps span, .step-number {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700;
}
.final-soft { margin-top: 22px; }
.final-soft a { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; }
.final-qr { display: none; justify-self: center; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--text); text-align: center; }
.final-qr .qr-code { width: 132px; height: 132px; padding: 0; border: 0; }
.final-qr .qr-code img, .final-qr .qr-code canvas { width: 132px; height: 132px; }
.final-qr p { margin-top: 10px; font-size: 14px; font-weight: 600; }

/* Footer: a grainy printed blue sky over an engraved highland landscape (scripts/footer-art.py).
   --footer-blue must match BLUE in that script; the drawing's sky is transparent so the grain runs through. */
.site-footer { padding-top: 56px; background: var(--footer-blue) url("/assets/footer-grain.png") repeat; color: #D3DEEE; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.brand-light { color: var(--cream); }
.brand-light img { padding: 3px; border-radius: 50%; background: var(--cream); }
.footer-brand p { max-width: 300px; margin-top: 14px; color: #D3DEEE; line-height: 1.6; }
.footer-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; color: var(--cream); text-underline-offset: 3px; }
.footer-contact .icon { width: 18px; height: 18px; }
.footer-social { margin-top: 18px; }
.footer-social p { color: var(--cream); font-size: 14px; font-weight: 600; }
.footer-social ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid rgba(242, 232, 213, 0.4); border-radius: 50%; color: var(--cream);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.footer-social a:hover { border-color: var(--cream); background: var(--cream); color: var(--footer-blue); }
.site-footer :focus-visible { outline-color: var(--cream); }
.footer-heading { margin-bottom: 10px; color: var(--cream); font-size: 15px; font-weight: 700; }
.footer-heading::after { content: ""; display: block; width: 24px; height: 1.5px; margin-top: 10px; background: var(--cream); opacity: 0.7; }
.footer-col a { display: flex; align-items: center; min-height: 40px; color: #D3DEEE; text-decoration: none; }
.footer-col a:hover { color: var(--cream); text-decoration: underline; }
.footer-app p:not(.footer-heading) { margin-bottom: 16px; color: #D3DEEE; }
.footer-col .store-badge-light { display: inline-flex; min-height: 48px; color: #000; text-decoration: none; }
/* Bottom bar: copyright on the left, Terms and Privacy on the right, the disclaimer below. */
.footer-legal { margin-top: 40px; color: #B9C8DE; font-size: 13.5px; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px;
  padding-top: 12px; border-top: 1px solid rgba(242, 232, 213, 0.22);
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-legal-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #D3DEEE; font-size: 14.5px; text-decoration: none;
}
.footer-legal-links a:hover, .footer-legal-links a[aria-current="page"] { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-disclaimer { margin-top: 4px; }
/* The drawing's top is transparent sky, so it can tuck under the legal line; it never takes clicks. */
.footer-art { margin-top: clamp(-56px, -3.6vw, -12px); line-height: 0; pointer-events: none; }
.footer-art img { width: 100%; height: clamp(170px, 27.5vw, 440px); object-fit: cover; object-position: 46% 100%; }

/* Terms and Privacy pages: the published legal text, kept to a comfortable reading width */
.legal { padding: 32px 0 72px; background: var(--white); }
.legal-page { max-width: 820px; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: none; }
.legal-back::before { content: "←"; margin-right: 8px; }
.legal-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal h1 { margin-top: 12px; font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.legal-meta { margin-top: 10px; color: var(--muted); font-size: 15px; }
.legal-note { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--mist); color: var(--ink); font-size: 15.5px; }
.legal-body { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--text); }
.legal-body h2 { margin: 36px 0 12px; font-size: 23px; line-height: 1.3; font-weight: 700; }
.legal-body h3 { margin: 28px 0 10px; font-size: 19px; line-height: 1.35; font-weight: 700; }
.legal-body h4 { margin: 24px 0 8px; color: var(--ink); font-size: 17px; font-weight: 700; }
.legal-body > :first-child { margin-top: 0; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body blockquote { margin: 0 0 16px; }
.legal-body ul { padding-left: 24px; list-style: disc; }
.legal-body ol { padding-left: 24px; list-style: decimal; }
.legal-body li { margin-bottom: 6px; padding-left: 4px; }
.legal-body blockquote { padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--muted); }
.legal-body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.legal-body a { overflow-wrap: anywhere; }
.legal-body code { padding: 1px 6px; border-radius: 6px; background: var(--mist); font-size: 0.92em; }
:lang(am) .legal h1 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }

/* Download bar on phones once the hero badge has scrolled away */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.97);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; }

/* Ethiopic script reads better with open line height and no tight tracking */
:lang(am) h1, :lang(am) h2, :lang(am) h3 { letter-spacing: 0; }
:lang(am) .hero h1 { font-weight: 700; line-height: 1.28; }
:lang(am) .section-head h2, :lang(am) .calc-intro h2, :lang(am) .final h2, :lang(am) .share-copy h2 { font-weight: 700; line-height: 1.35; }
:lang(am) .calc-week { letter-spacing: 0; }
:lang(am) .moment h3 { font-weight: 700; line-height: 1.4; }

@media (max-width: 559px) {
  .header-cta { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .lang-switch a { padding: 4px 12px; }
  .hero h1 { font-size: 36px; }
  :lang(am) .hero h1 { font-size: 32px; }
  .hero-echo { font-size: 16px; }
  .tri { gap: 1px; }
  .ribbon-labels span { font-size: 11.5px; }
}

@media (min-width: 560px) {
  .calc-switches { grid-template-columns: 1fr 1fr; }
  .calc-row { flex-direction: row; }
  .calc-row .btn { flex: none; }
}

@media (min-width: 720px) {
  .section-head h2, .final h2, .share-copy h2 { font-size: 36px; }
  .calc-intro h2 { font-size: 36px; }
  .calc-result { grid-template-columns: auto minmax(0, 1fr) auto; }
  .steps { display: flex; flex-wrap: wrap; gap: 14px 28px; }
  .final { padding: 56px 48px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .legal { padding: 48px 0 96px; }
  .legal h1 { font-size: 42px; }
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; }
  .hero h1 { font-size: 60px; }
  :lang(am) .hero h1 { font-size: 50px; }
  .hero-echo { font-size: 20px; }
  .hero-image { width: min(440px, 84%); }
  .calc-band { padding: 72px 0 64px; }
  .calc-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
  .section { padding: 96px 0; }
  .journey { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .share-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 64px; }
  .share-toast { transform: translateX(30%); }
  .trust-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
  .final { grid-template-columns: minmax(0, 1fr) auto; padding: 56px 64px; margin-top: 96px; }
  .final-qr { display: block; }
  .sticky-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Delete-account request form */
.js .deletion-form { display: grid; }
.js .deletion-form[hidden] { display: none; }
.deletion-form { display: none; gap: 18px; max-width: 560px; margin: 8px 0 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.deletion-form .form-field { display: grid; }
.deletion-form input[type="email"], .deletion-form textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--field-border); border-radius: 14px;
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px;
}
.deletion-form textarea { min-height: 96px; resize: vertical; }
.deletion-form input:focus, .deletion-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(4, 102, 200, 0.2); }
.deletion-form [aria-invalid="true"], .deletion-form [aria-invalid="true"]:focus { border-color: var(--error); }
.deletion-form .btn { justify-self: start; }
.deletion-form .btn:disabled { opacity: 0.7; cursor: wait; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 14px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; color: var(--ink); font-size: 15.5px; cursor: pointer; }
.form-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.form-error { margin-top: 8px; color: var(--error); font-size: 15px; font-weight: 600; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { margin-bottom: 24px; font-weight: 600; }
.form-success:focus { outline: none; }
