/* Tody — marketing site */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  /* Sync with Tody `AppDesignColors.brandPrimary` — Start, chips, streak (0.35, 0.33, 0.98) */
  --brand: #5954fa;
  --brand-rgb: 89, 84, 250;
  --brand-dark: #4540d4;
  --brand-light: #7e79fc;
  --brand-soft: rgba(89, 84, 250, 0.12);
  /* Text links only — `AppDesignColors.linkBlue` */
  --link: #007aff;
  /* Brand typography — SF Pro Rounded Bold on Apple; rounded fallbacks elsewhere */
  --brand-text: #111827;
  --text-on-dark: #f4fff8;
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(89, 84, 250, 0.18);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-brand: "SF Pro Rounded", -apple-system-ui-rounded, ui-rounded, "Avenir Next Rounded", "Nunito", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --nav-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: var(--nav-h);
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container--narrow {
  width: min(640px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Header / Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  width: var(--container);
  margin-inline: auto;
}

.site-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}

.site-nav__logo:hover {
  text-decoration: none;
}

.site-nav__logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}

.site-nav__logo-text {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-text);
}

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav__toggle-bar {
  top: 50%;
  margin-top: -1px;
}

.site-nav__toggle-bar::before {
  content: "";
  top: -7px;
}

.site-nav__toggle-bar::after {
  content: "";
  top: 7px;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.site-nav__menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav__menu a:hover {
  color: var(--brand);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.lang-switch__link {
  color: var(--muted);
  text-decoration: none;
}

.lang-switch__link:hover {
  color: var(--brand);
  text-decoration: none;
}

.lang-switch__link.is-active {
  color: var(--ink);
  pointer-events: none;
}

.lang-switch__sep {
  color: var(--line);
  user-select: none;
}

@media (max-width: 768px) {
  .site-nav__toggle {
    display: block;
  }

  .site-nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-nav__menu.is-open {
    display: flex;
  }

  .site-nav__menu a,
  .site-nav__menu .btn,
  .site-nav__menu .lang-switch {
    width: 100%;
    text-align: center;
  }

  .site-nav__menu .lang-switch {
    justify-content: center;
    padding: 0.25rem 0;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--brand-rgb), 0.35);
}

.btn--primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 12px 32px rgba(var(--brand-rgb), 0.42);
}

.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.86rem;
}

.btn--lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.65;
  filter: saturate(0.85);
  cursor: not-allowed;
}

.app-store-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.app-store-cta__badge {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s ease;
}

.app-store-cta__badge:hover {
  opacity: 0.88;
}

.app-store-cta__badge:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.app-store-cta__badge img {
  display: block;
  width: auto;
  height: 56px;
}

.app-store-cta--lg .app-store-cta__badge img {
  height: 64px;
}

.nav-app-store {
  display: inline-flex;
  line-height: 0;
  transition: opacity 0.15s ease;
}

.nav-app-store:hover {
  opacity: 0.85;
}

.nav-app-store:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

.nav-app-store img {
  display: block;
  width: auto;
  height: 34px;
}

/* ——— Hero ——— */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem clamp(2rem, 6vw, 4rem);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--brand-rgb), 0.14), transparent 60%),
    linear-gradient(180deg, #f9f8ff 0%, #fff 100%);
}

.hero__inner {
  max-width: 920px;
  margin-inline: auto;
}

.hero__title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero__soon {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero__soon--light {
  color: rgba(255, 255, 255, 0.75);
}

/* Hero demo — tabs + phone + chips */
.hero-demo {
  text-align: left;
}

.hero-demo__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.hero-demo__tab {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: #fff;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.hero-demo__tab:hover {
  border-color: rgba(var(--brand-rgb), 0.28);
  color: var(--brand);
}

.hero-demo__tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.32);
}

.hero-demo__stage {
  position: relative;
  min-height: 360px;
}

.hero-demo__panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  animation: fade-in 0.35s ease;
}

.hero-demo__panel.is-active {
  display: grid;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 900px) {
  .hero-demo__panel.is-active {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
  }
}

/* Real app screenshots in hero tabs */
.hero-mockup {
  margin: 0 auto;
  width: min(100%, 248px);
  flex-shrink: 0;
}

@media (min-width: 520px) {
  .hero-mockup {
    width: min(100%, 268px);
  }
}

@media (min-width: 900px) {
  .hero-mockup {
    width: min(100%, 280px);
    justify-self: center;
  }
}

.hero-mockup__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(50vh, 520px);
  object-fit: contain;
  object-position: top center;
}

.hero-demo__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 520px) {
  .hero-demo__cards {
    grid-template-columns: 1fr;
  }
}

.feature-chip {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.feature-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.65rem;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-chip__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-chip h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-chip p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-demo__note {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ——— Phone mock ——— */
.phone {
  margin-inline: auto;
  width: min(100%, 280px);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: var(--shadow-lg);
}

.phone--float {
  position: absolute;
}

.phone__screen {
  border-radius: 28px;
  padding: 1.35rem 1.15rem 1.5rem;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.phone__screen--plan {
  background: linear-gradient(165deg, #145a3a 0%, #0b2418 55%, #061510 100%);
  color: #fff;
}

.phone__screen--focus {
  /* Matches native focus mode green (not purple / navy marketing tint) */
  background: linear-gradient(165deg, #146b45 0%, #0b3d28 55%, #061f14 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phone__screen--streak {
  background: linear-gradient(165deg, var(--brand-light) 0%, var(--brand-dark) 55%, #2e2880 100%);
  color: #fff;
  align-items: center;
  text-align: center;
}

.phone__screen--sm {
  min-height: 200px;
  padding: 1rem;
}

.phone__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.phone__headline {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.phone__headline--focus {
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.phone__headline--sm {
  font-size: 1.1rem;
}

.phone__tasks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.phone__tasks li {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
}

.phone__tasks li.is-muted {
  opacity: 0.5;
  text-decoration: line-through;
}

.phone__cta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.75;
}

.phone__timer {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 1.5rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}

.phone__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.phone__btn {
  display: block;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.phone__btn--done {
  background: rgba(var(--brand-rgb), 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.phone__btn--skip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.8;
}

.phone__streak {
  margin: 0.5rem 0 1.25rem;
  font-size: 1.75rem;
  font-weight: 800;
}

.phone__streak--sm {
  font-size: 1.1rem;
  margin: 0;
}

.phone__week {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.phone__week span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.phone__week span.is-done {
  background: var(--brand);
  border-color: var(--brand-light);
}

.phone__week span.is-today {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.45);
}

.phone__caption {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.7;
}

.phone-stack {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 340px;
  margin-inline: auto;
}

.phone--back {
  top: 20px;
  right: 0;
  width: 200px;
  transform: rotate(6deg);
  opacity: 0.85;
}

.phone--front {
  top: 60px;
  left: 0;
  width: 220px;
  transform: rotate(-4deg);
}

/* ——— Sections ——— */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.section-title--center {
  text-align: center;
}

.section-title--light {
  color: #fff;
}

.section-lead {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
  max-width: 560px;
}

.section-lead--center {
  text-align: center;
  margin-inline: auto;
}

.section-lead--light {
  color: rgba(255, 255, 255, 0.82);
  margin-inline: auto;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.link-arrow {
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.spotlight__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

/* Spotlight */
.spotlight {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
  background: var(--bg-soft);
  text-align: center;
}

.spotlight--muted {
  background: var(--bg);
}

.spotlight__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--brand);
}

.spotlight__icon svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spotlight .section-title,
.spotlight .section-lead {
  margin-inline: auto;
}

/* Use cases */
.use-cases {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.use-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .use-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .use-cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.use-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}

.use-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.use-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.use-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Mobile section */
.mobile-section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem 0;
  background: var(--bg-muted);
}

.mobile-section__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mobile-section__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.mobile-section__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-section__mockup {
  display: block;
  width: min(100%, 320px);
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center;
}

@media (min-width: 900px) {
  .mobile-section__mockup {
    width: min(100%, 380px);
    max-height: 600px;
    justify-self: center;
  }
}

.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Features detail */
.features-detail {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.features-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 600px) {
  .features-detail__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features-detail__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.detail-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
}

.detail-card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.17rem;
  color: var(--brand);
}

.detail-card .card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.detail-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* FAQ — MatchDay accordion */
.faq-section {
  padding: clamp(3.5rem, 8vw, 5rem) 1.25rem;
}

.faq-section--home {
  background: transparent;
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.faq-section__head {
  max-width: 40rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.faq-home__wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.faq-section__more {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-section__more a {
  font-weight: 600;
  text-decoration: none;
}

.faq-section__more a:hover {
  text-decoration: underline;
}

.faq {
  max-width: 40rem;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item:first-child {
  border-top: 1px solid var(--line);
}

button.faq__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  padding: 1.1rem 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  border-radius: 10px;
}

button.faq__summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out-expo);
}

.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr;
}

.faq__panel > .faq__body {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-0.45rem);
  transition:
    opacity 0.42s var(--ease-out-expo),
    transform 0.48s var(--ease-out-expo);
}

.faq__item.is-open .faq__panel > .faq__body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s, 0.04s;
}

.faq__question {
  flex: 1;
  text-align: left;
  font-size: clamp(0.94rem, 1.85vw, 1.05rem);
  line-height: 1.38;
  color: var(--ink);
  transition: color 0.26s var(--ease-out-expo), opacity 0.26s ease;
}

button.faq__summary:hover .faq__question {
  color: var(--ink-soft);
  opacity: 0.94;
}

.faq__toggle {
  flex-shrink: 0;
  width: 1.35rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  transition: color 0.3s var(--ease-out-expo);
}

.faq__item.is-open .faq__toggle {
  color: var(--brand);
}

.faq__minus {
  display: none;
}

.faq__item.is-open .faq__plus {
  display: none;
}

.faq__item.is-open .faq__minus {
  display: inline;
}

.faq__body {
  padding: 0 0 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.6vw, 0.98rem);
  line-height: 1.65;
}

.faq__body p {
  margin: 0 0 0.85rem;
}

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

.faq__body a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.faq__body a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .faq__panel,
  .faq__panel > .faq__body,
  .faq__toggle,
  button.faq__summary,
  .faq__question {
    transition: none !important;
  }

  .faq__item.is-open .faq__panel > .faq__body {
    transition-delay: 0s !important;
  }
}

/* Final CTA */
.cta-final {
  padding: clamp(4rem, 10vw, 6rem) 1.25rem;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 50%, var(--brand-light) 100%);
  text-align: center;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.cta-final .btn--primary {
  background: #fff;
  color: var(--brand-text);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.14);
}

.cta-final .btn--primary:hover {
  background: var(--text-on-dark);
  color: var(--brand-text);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.18);
}

.cta-appstore-link {
  display: inline-block;
  line-height: 0;
  margin-top: 0.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

.cta-appstore-badge {
  width: min(220px, 70vw);
  height: auto;
}

/* Footer — PhotoApp multi-column */
.site-footer {
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 2rem;
  background: var(--brand-text);
  color: rgba(244, 255, 248, 0.78);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

@media (max-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand-col {
    grid-column: 1 / -1;
  }
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-on-dark);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.site-footer__logo-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.site-footer__logo:hover {
  text-decoration: none;
}

.site-footer__tagline {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: rgba(244, 255, 248, 0.62);
}

.site-footer__fine {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(244, 255, 248, 0.45);
}

.site-footer__col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 255, 248, 0.5);
}

.site-footer__col a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: rgba(244, 255, 248, 0.75);
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--text-on-dark);
  text-decoration: none;
}

/* ——— Legal / inner pages ——— */
body.legal-page {
  background: var(--bg-soft);
}

.legal-shell {
  width: min(720px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
}

.legal-card header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-card h1 {
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-card .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.legal-page .prose h2:not(.support-page__h2) {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.6rem;
}

.legal-page .prose p,
.legal-page .prose li {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 0.85rem;
}

.legal-page .prose .fineprint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2rem;
}

.prose a.inline {
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.prose a.inline:hover {
  text-decoration: underline;
}

/* Support page extras */
.support-page header {
  border-bottom: none;
  padding-bottom: 0;
}

.support-page__intro {
  margin: 1rem 0 2rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.support-page__intro-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.support-page__intro-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.support-page__h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.support-page__h2--sub {
  margin-top: 0;
}

.support-page__faq {
  margin-top: 2rem;
}

.support-contact {
  margin-top: 2rem;
}

.support-contact__hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.support-mailto {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.support-mailto:hover {
  text-decoration: underline;
}

.support-mailto__icon {
  width: 1.1rem;
  height: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-demo__panel {
    animation: none;
  }
}
