/* Stratford Holdings — main site styles. The Gumbly area uses gumbly.css. */

:root {
  /* The Stratford Holdings house look, shared with the apps
     (FlutterAppTemplate lib/theme/tokens.dart): indigo-grey chrome,
     Nunito at 600-900, five accents for hero content. */
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #EEF0F7;
  --ink: #262A52;
  --ink-2: #3D4270;
  --muted: #565B7E;
  --line: #DADDEA;
  --line-strong: #C3C7DC;
  --accent: #4651C9;
  --accent-hover: #3640A8;
  --accent-soft: #E3E5F8;
  --accent-light: #8F98FF;
  --warm: #C7413D;
  --warm-soft: #FDECEB;
  --sun: #F6CF4A;

  /* Dark sections (heroes, spotlight, About): brand indigo with the dark
     theme's muted text. */
  --deep: #262A52;
  --deep-2: #0E1024;
  --on-deep-muted: #B4B8D6;

  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 22, 45, 0.04), 0 4px 12px rgba(20, 22, 45, 0.10);
  --shadow-lg: 0 2px 4px rgba(20, 22, 45, 0.05), 0 10px 30px rgba(20, 22, 45, 0.12);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
  color: #FFFFFF;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 600px;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #FFFFFF;
}

.btn-dark {
  background: var(--ink);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #353A6B;
  color: #FFFFFF;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-light {
  background: #FFFFFF;
  color: var(--ink);
}

.btn-light:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn-ghost-light {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  background: var(--accent-soft);
  color: var(--accent-hover);
  white-space: nowrap;
}

.badge-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  box-shadow: inset 0 -3px 0 var(--sun);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a:not(.btn) {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.site-nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.nav-toggle .nav-toggle-close,
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: inline;
}

@media (max-width: 820px) {
  .js .nav-toggle {
    display: grid;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(20, 26, 33, 0.08);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .js .site-nav a:not(.btn) {
    padding: 14px 12px;
    font-size: 17px;
  }

  .js .site-nav .btn {
    margin: 8px 0 0;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  html:not(.js) .site-nav {
    flex-wrap: wrap;
  }
}

/* Hero */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 .muted {
  color: var(--muted);
}

.hero .lede {
  font-size: clamp(18px, 1.8vw, 20px);
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hero-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-platforms svg {
  color: var(--accent);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -10% 4% 6%;
  border-radius: 40px;
  background: var(--accent);
  transform: rotate(-4deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -2%;
  top: 2%;
  border-radius: 50%;
  background: var(--sun);
}

.phone {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 270px;
  padding: 9px;
  border-radius: 42px;
  background: var(--deep-2);
  box-shadow: var(--shadow-lg);
}

.phone img {
  width: 100%;
  border-radius: 34px;
  aspect-ratio: 600 / 1304;
  object-fit: cover;
  background: var(--bg);
}

.hero-visual .phone-back {
  position: absolute;
  z-index: 1;
  left: 2%;
  bottom: -2%;
  max-width: 220px;
  transform: rotate(-7deg);
}

.hero-visual .phone-front {
  margin-left: 26%;
  transform: rotate(3deg);
  z-index: 2;
}

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

  .hero-visual {
    min-height: 0;
    padding: 24px 0 8px;
  }

  .hero-visual .phone-front {
    margin-left: 34%;
    max-width: 230px;
  }

  .hero-visual .phone-back {
    left: 6%;
    bottom: 0;
    max-width: 190px;
  }
}

@media (max-width: 480px) {
  .hero-visual .phone-front {
    margin-left: 30%;
    max-width: 200px;
  }

  .hero-visual .phone-back {
    left: 0;
    max-width: 165px;
  }
}

/* App cards */

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon-gumbly-match {
  background: #F7C9D6;
}

.app-icon-gumbly-match img {
  object-fit: contain;
  padding: 4px;
}

.app-card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.app-card h3 {
  font-size: 22px;
}

.app-card h3 a {
  color: inherit;
  text-decoration: none;
}

.app-card h3 a:hover {
  color: var(--accent);
}

.app-meta {
  font-size: 14px;
  color: var(--muted);
}

.app-card p {
  color: var(--ink-2);
  font-size: 16px;
  flex-grow: 1;
}

.app-card .btn-row {
  gap: 8px;
}

/* Feature spotlight (Focalog) */

.spotlight {
  background: var(--deep);
  color: #FFFFFF;
  overflow: hidden;
}

.spotlight .eyebrow {
  color: var(--accent-light);
}

.spotlight-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.spotlight-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spotlight-brand img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.spotlight h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

.spotlight .lede {
  color: var(--on-deep-muted);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px 28px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(143, 152, 255, 0.16);
  color: var(--accent-light);
}

.feature-list strong {
  display: block;
  font-weight: 600;
  font-size: 16px;
}

.feature-list li > div > span {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-deep-muted);
}

.spotlight-shots {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.spotlight-shots .phone {
  max-width: 250px;
}

.spotlight-shots .phone:nth-child(2) {
  margin-top: 64px;
}

@media (max-width: 900px) {
  .spotlight-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .spotlight-shots {
    gap: 12px;
  }

  .spotlight-shots .phone {
    padding: 6px;
    border-radius: 30px;
  }

  .spotlight-shots .phone img {
    border-radius: 25px;
  }
}

/* Core Board */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--ink-2);
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split-visual {
    order: -1;
  }
}

.tablet {
  padding: 12px;
  border-radius: 28px;
  background: var(--deep-2);
  box-shadow: var(--shadow-lg);
}

.tablet img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 800 / 1067;
  object-fit: cover;
  background: #FFFFFF;
}

.device-pair {
  position: relative;
  padding: 0 0 32px;
}

.device-pair .tablet {
  max-width: 440px;
  margin-right: 18%;
}

.device-pair .phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  max-width: 190px;
  padding: 7px;
  border-radius: 30px;
}

.device-pair .phone img {
  aspect-ratio: 500 / 1082;
  border-radius: 24px;
}

@media (max-width: 900px) {
  .device-pair .tablet {
    margin: 0 18% 0 0;
  }
}

.gallery.gallery-tablet {
  margin-top: clamp(48px, 7vw, 72px);
}

.gallery-tablet figure {
  width: clamp(220px, 26vw, 270px);
}

.gallery-tablet .tablet {
  padding: 8px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.gallery-tablet .tablet img {
  border-radius: 12px;
}

/* Callout (games teaser) */

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 32px;
  padding: clamp(24px, 4vw, 36px) clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--warm-soft);
  border: 1px solid #F7CFCD;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

.callout:hover {
  color: var(--ink);
  border-color: var(--warm);
}

.callout img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  transform: rotate(-6deg);
  transition: transform 0.2s ease;
}

.callout:hover img {
  transform: rotate(0deg) scale(1.05);
}

.callout h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  margin-bottom: 6px;
}

.callout p {
  color: #7A2E2B;
}

.callout .btn {
  background: var(--warm);
  color: #FFFFFF;
}

@media (max-width: 720px) {
  .callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .callout img {
    width: 88px;
    height: 88px;
  }
}

/* Websites list */

.site-list {
  display: grid;
  gap: 12px;
}

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.site-row:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.site-row-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.site-row-meta {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

.site-row svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* About */

.about {
  background: var(--ink);
  color: #FFFFFF;
}

.about .eyebrow {
  color: var(--accent-light);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 72px);
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-intro p {
  color: var(--on-deep-muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 28px;
}

.value {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.value h3 {
  font-size: 19px;
  font-weight: 600;
}

.value p {
  font-size: 15px;
  color: var(--on-deep-muted);
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact-card > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.contact-email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  overflow-wrap: anywhere;
}

/* Page header (inner pages) */

.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px);
}

.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-hero-inner > * {
  max-width: 760px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: 0;
}

/* App detail rows (apps page) */

.app-rows {
  display: grid;
  gap: 20px;
}

.app-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-row .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

.app-row-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-row h2 {
  font-size: 24px;
}

.app-row h2 a {
  color: inherit;
  text-decoration: none;
}

.app-row h2 a:hover {
  color: var(--accent);
}

.app-row p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 640px;
}

.app-row .btn-row {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .app-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-row .btn-row {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .app-row .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    align-self: start;
  }
}

/* Focalog page */

.product-hero {
  padding: clamp(48px, 7vw, 88px) 0 0;
  background: var(--deep);
  color: #FFFFFF;
  overflow: hidden;
}

.product-hero .eyebrow {
  color: var(--accent-light);
}

.product-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: end;
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.product-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  letter-spacing: 0;
}

.product-hero .lede {
  color: var(--on-deep-muted);
}

.product-hero-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-bottom: -48px;
}

.product-hero-visual .phone {
  max-width: 260px;
}

.product-hero-visual .phone:first-child {
  margin-top: 48px;
}

@media (max-width: 900px) {
  .product-hero-inner {
    grid-template-columns: 1fr;
  }

  .product-hero-copy {
    padding-bottom: 0;
  }

  .product-hero-visual {
    margin-bottom: -64px;
  }
}

@media (max-width: 520px) {
  .product-hero-visual {
    gap: 12px;
  }

  .product-hero-visual .phone {
    padding: 6px;
    border-radius: 30px;
  }

  .product-hero-visual .phone img {
    border-radius: 25px;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card .feature-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 20px;
}

.feature-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 24px;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: thin;
}

.gallery figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(200px, 22vw, 240px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gallery .phone {
  max-width: none;
  box-shadow: var(--shadow);
}

.gallery figcaption {
  font-size: 15px;
  color: var(--ink-2);
}

.gallery figcaption strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #FFFFFF;
}

.notice > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 600px;
}

.notice h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.notice p {
  color: var(--accent-soft);
}

/* Prose (privacy policy) */

.policy-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-bottom: var(--section-y);
}

.policy-toc {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.policy-toc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 8px;
}

.policy-toc a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
}

.policy-toc a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.prose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.prose h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.prose p,
.prose ul {
  color: var(--ink-2);
  margin: 0 0 12px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 6px;
}

.prose-contact {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.last-updated {
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 820px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
    padding: 16px 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
}

/* 404 */

.error-page {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
}

.error-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.error-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent);
}

/* Footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: 56px;
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer-brand p {
  color: var(--muted);
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px clamp(32px, 6vw, 72px);
}

.footer-cols > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-cols h2 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.footer-cols a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
}

.footer-cols a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.stack-lg {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

.policy-summary {
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--line);
}

.policy-summary p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.page-hero .eyebrow a {
  color: inherit;
  text-decoration: none;
}

.page-hero .eyebrow a:hover {
  text-decoration: underline;
}

/* Official store badges (artwork from Apple, Google and Microsoft; don't recolor or alter) */

.store-badge {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
  line-height: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover {
  opacity: 0.88;
}

.store-badge:active {
  transform: translateY(1px);
}

.store-badge img {
  height: 44px;
  width: auto;
}

.btn-row:has(.store-badge) {
  align-items: center;
}

.app-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.app-row .app-links {
  align-items: flex-end;
}

@media (max-width: 760px) {
  .app-row .app-links {
    grid-column: 1 / -1;
    align-items: flex-start;
  }
}

.app-card .store-badge img {
  height: 40px;
}
