/* BonsaiGlobe — bonsaiglobe.com
   Light mode: white ground like the app, with the "Matcha" icon greens as accents.
   Dark mode: the app's dark-icon colours.
   Type: the SF Pro / system sans stack throughout (same stack as pixelmator.com). */

:root {
  --bg: #FFFFFF;
  --bg-2: #F1F6F5;
  --band: #CFE1DF;
  --surface: #FFFFFF;
  --surface-2: #F7FBFA;
  --ink: #15302F;
  --ink-2: #3D5655;
  --muted: #5A706D;
  --accent: #1F6F73;
  --accent-2: #0F3F45;
  --accent-soft: rgba(31, 111, 115, 0.10);
  --pot: #8B5A3B;
  --trunk: #5A4634;
  --line: rgba(21, 48, 47, 0.12);
  --shadow: 0 18px 40px rgba(21, 48, 47, 0.12);
  --shadow-soft: 0 6px 18px rgba(21, 48, 47, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --error: #8A1F1F;
  --error-soft: #FDECEC;
  --error-line: #F0BCBC;

  /* Phone mock-up (iOS grouped list look) */
  --ios-bg: #F2F2F7;
  --ios-card: #FFFFFF;
  --ios-text: #111111;
  --ios-secondary: #6E6E73;
  --ios-sep: rgba(60, 60, 67, 0.16);
  --ios-frame: #1C1C1E;
  --ios-tab: rgba(249, 249, 249, 0.94);

  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica", sans-serif;
  --font-body: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B2A2F;
    --bg-2: #0F3439;
    --band: #134247;
    --surface: #153F45;
    --surface-2: #11363B;
    --ink: #F5EFDE;
    --ink-2: #DCD4BF;
    --muted: #9DB3B0;
    --accent: #7FC8C4;
    --accent-2: #A9DCD8;
    --accent-soft: rgba(127, 200, 196, 0.14);
    --pot: #B98A5E;
    --trunk: #C9A884;
    --line: rgba(245, 239, 222, 0.14);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.35);
    --error: #F3B5B5;
    --error-soft: rgba(243, 181, 181, 0.12);
    --error-line: rgba(243, 181, 181, 0.35);

    --ios-bg: #000000;
    --ios-card: #1C1C1E;
    --ios-text: #F2F2F7;
    --ios-secondary: #98989F;
    --ios-sep: rgba(84, 84, 88, 0.6);
    --ios-frame: #3A3A3C;
    --ios-tab: rgba(22, 22, 24, 0.94);
  }
}

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

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

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

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

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 34em;
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-2); }

.section-head { max-width: 40em; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-2); font-size: 1.1rem; }

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

.ic {
  width: 1.25em; height: 1.25em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Skip link ---------- */

/* First stop for the Tab key: jumps past the header to <main id="content">. Off-screen until
   it has focus. */
.skip-link {
  position: absolute;
  z-index: 40;
  top: 12px;
  left: 16px;
  padding: 0.55em 1.1em;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; text-decoration: none; }
#content { scroll-margin-top: 80px; }
#content:focus { outline: none; }

/* ---------- Buttons (outlined, like the app) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary:hover { background: var(--accent-soft); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--ink); }

.btn-small { padding: 0.55em 1.1em; font-size: 0.92rem; }

/* Apple's official "Download on the App Store" badge (assets/app-store-badge-*.svg) in the
   hero and the final CTA; the header keeps the small text button. Black artwork on the light
   theme, white artwork on the dark theme, never restyled; Apple asks for at least 40 px height
   and clear space of a quarter of that around it. */
.store-badge {
  display: inline-flex;
  flex: none;
  border-radius: 7px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.store-badge img { display: block; height: 48px; width: auto; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: translateY(0); }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cta-row { align-items: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); text-decoration: none; }

/* Mobile menu: a hamburger toggle that opens the links in a panel under the header bar */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  flex: none;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle .ic { width: 22px; height: 22px; stroke-width: 2; }
.nav-toggle .ic path { transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle .bar-1 { transform-origin: 12px 7px; }
.nav-toggle .bar-3 { transform-origin: 12px 17px; }
.nav-open .nav-toggle .bar-1 { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle .bar-2 { opacity: 0; }
.nav-open .nav-toggle .bar-3 { transform: translateY(-5px) rotate(-45deg); }

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 800px) {
  .nav { gap: 12px; }
  .nav .btn { margin-left: auto; }
  .nav-toggle { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px 16px;   /* 10 + 14 px link padding = the 24 px page gutter */
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .nav-open .nav-links { display: flex; animation: nav-in 0.18s ease; }
  .nav-links a {
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 500;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 112px) 0 clamp(32px, 6vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 60%;
  background: radial-gradient(60% 80% at 50% 100%, var(--band) 0%, transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero h1 { max-width: 11em; }
.hero .lead { margin-bottom: 1.6rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1rem;
}

.fineprint { font-size: 0.9rem; color: var(--muted); }

.hero-art {
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: 2; margin-top: 16px; }
}

/* ---------- Thumbnails in the hand-over mock-up ---------- */

.thumb {
  width: 56px; height: 56px;
  border-radius: 10px;
  flex: none;
  object-fit: cover;
  background: var(--bg-2);
}
.thumb.t2 { filter: hue-rotate(-14deg) saturate(1.1); }
.thumb.t3 { filter: hue-rotate(22deg) brightness(0.96); }
.thumb.t4 { filter: hue-rotate(-30deg) saturate(0.9); }
.thumb.t5 { filter: hue-rotate(40deg) saturate(0.85); }

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

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.strip ul {
  list-style: none;
  margin: 0; padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.strip .ic { color: var(--accent); }
@media (max-width: 860px) { .strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .strip ul { grid-template-columns: 1fr; } }

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

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card .icon .ic { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.card-wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.card-wide .icon { margin-bottom: 0; flex: none; }
.card-wide h3 { margin-top: 0.35em; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; gap: 18px; }
  .card-wide h3 { margin-top: 0; }
}

/* ---------- Spotlights ---------- */

.spot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
}
.spot + .spot { border-top: 1px solid var(--line); }
.spot.flip .spot-art { order: -1; }
.spot h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.spot p { color: var(--ink-2); }
.spot ul {
  margin: 1.2em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.spot li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
}
.spot li .ic { color: var(--accent); margin-top: 0.2em; }
.spot-art { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .spot { grid-template-columns: 1fr; }
  .spot.flip .spot-art { order: 0; }
}

.photo {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Mock-up cards (timeline, reminders) */

.mock {
  width: 100%;
  max-width: 400px;
  background: var(--ios-bg);
  border-radius: 28px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  color: var(--ios-text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.35;
}
.mock .group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ios-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 12px 4px 6px;
}
.mock .group-label:first-of-type { margin-top: 0; }

/* Hand-over sheet mock-up */
.sheet-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 2px 2px 14px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}
.sheet-title .cancel { justify-self: start; color: var(--accent); font-weight: 400; font-size: 14px; }
.sheet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ios-card);
  border-radius: 12px;
  padding: 10px 12px;
}
.sheet-head .thumb { width: 52px; height: 52px; }
.sheet-head b { display: block; font-weight: 600; font-size: 14px; }
.sheet-head span { color: var(--ios-secondary); font-size: 12px; }
.kv-list {
  list-style: none; margin: 0; padding: 0;
  background: var(--ios-card);
  border-radius: 12px;
  overflow: hidden;
}
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 0.5px solid var(--ios-sep);
  font-size: 13.5px;
}
.kv-list li:last-child { border-bottom: 0; }
.kv-list li span:last-child { color: var(--ios-secondary); }
.kv-list li .kv-input { color: var(--ios-text); }
.mock-foot { margin: 6px 12px 0; color: var(--ios-secondary); font-size: 11px; line-height: 1.35; }
.mock-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px auto 4px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
  width: fit-content;
}
.mock .mock-cta { display: flex; }
.mock-cta .ic { width: 15px; height: 15px; stroke-width: 2.4; }

/* ---------- Sync & backup ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}
.pillar {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.pillar .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}
.pillar .icon .ic { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.pillar p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Privacy blurb ---------- */

.privacy-box {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
}
.privacy-box .icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.privacy-box .icon .ic { width: 30px; height: 30px; }
.privacy-box p { color: var(--ink-2); }
.privacy-box p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .privacy-box { grid-template-columns: 1fr; } }

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

.faq { max-width: 760px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; max-width: 60ch; }

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

.cta-final {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) 0;
  background:
    radial-gradient(70% 90% at 50% 120%, var(--band) 0%, transparent 70%),
    var(--bg-2);
}
.cta-final .container > img {   /* the app icon only, not the App Store badge below it */
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.cta-final h2 { margin-bottom: 0.4em; }
.cta-final p { color: var(--ink-2); max-width: 36em; margin: 0 auto 1.6rem; }
.cta-final .cta-row { justify-content: center; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--ink-2); }

/* ---------- Analytics consent bar (js/analytics.js) ---------- */

/* Built by the script, so it only exists while the question is open. Both answers are the
   same outlined capsule; declining must be as easy as accepting. */
.consent {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.45;
  animation: consent-in 0.25s ease;
}
.consent p { margin: 0; color: var(--ink-2); }
.consent strong { color: var(--ink); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 10px; flex: none; }
@keyframes consent-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 640px) {
  .consent { flex-direction: column; align-items: stretch; }
  .consent-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Text pages (privacy, support) ---------- */

.page {
  max-width: 720px;
  padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px);
}
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page h3 { font-size: 1.15rem; margin-top: 1.6em; }
.page p, .page li { color: var(--ink-2); }
.page ul, .page ol { padding-left: 1.3em; }
.page li { margin-bottom: 0.4em; }
.page .updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.5em; }
.page .callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.5em 0;
}
.page .callout p:last-child { margin-bottom: 0; }
.page code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--accent-soft);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
.page kbd, .page .ui {
  font-weight: 600;
  color: var(--ink);
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 1.5em 0 2.5em;
  box-shadow: var(--shadow-soft);
}
.contact-card .icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.contact-card .icon .ic { width: 24px; height: 24px; }
.contact-card p { margin: 0; }
.contact-card .btn { margin-left: auto; }

/* ---------- Contact form (about.html#contact) ---------- */

.contact-form,
.form-thanks {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 1.5em 0 2.5em;
  box-shadow: var(--shadow-soft);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form .field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-form .field input,
.contact-form .field textarea {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font: inherit;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder { color: var(--muted); opacity: 1; }
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.contact-form .field textarea { resize: vertical; min-height: 150px; }
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.contact-form .form-error {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--error-soft);
  border: 1px solid var(--error-line);
  color: var(--error);
  font-size: 0.95rem;
}
.contact-form .actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.contact-form .actions .note {
  flex: 1 1 18em;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.contact-form .btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-thanks .thanks-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-2);
  cursor: pointer;
}
.form-thanks .thanks-back:hover { color: var(--accent); }
.form-thanks .thanks-back .ic { width: 1.1em; height: 1.1em; }
.form-thanks h3 { margin: 0 0 8px; }
.page .form-thanks h3 { margin-top: 0; }
.form-thanks p { margin: 0; }

@media (max-width: 560px) {
  .contact-form, .form-thanks { padding: 22px 18px; }
}

/* ---------- Device frames around real screenshots ---------- */

.device {
  margin: 0;
  width: 320px;
  max-width: 100%;
  padding: 9px;
  border-radius: 54px;
  background: var(--ios-frame);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.device picture, .device img { display: block; }
.device img {
  width: 100%;
  height: auto;
  border-radius: 45px;
  background: var(--ios-bg);
}
.device-hero { transform: rotate(-2deg); }
.device-sm { width: 300px; }
@media (max-width: 860px) { .device-hero { transform: none; } }

.tablet {
  margin: 0;
  width: 100%;
  max-width: 560px;
  padding: 10px;
  border-radius: 34px;
  background: var(--ios-frame);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
}
.tablet picture, .tablet img { display: block; }
.tablet img { width: 100%; height: auto; border-radius: 24px; background: var(--ios-bg); }

.spot-ipad { padding-top: 0; margin-bottom: clamp(24px, 4vw, 48px); }

/* ---------- Screens gallery ---------- */

.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100% - 1120px) / 2)) 28px;
  scroll-padding-inline: max(24px, calc((100% - 1120px) / 2));
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shot {
  flex: 0 0 236px;
  margin: 0;
  scroll-snap-align: start;
}
.shot picture, .shot img { display: block; }
.shot img {
  width: 100%;
  height: auto;
  border-radius: 34px;
  border: 7px solid var(--ios-frame);
  background: var(--ios-frame);
  box-shadow: var(--shadow-soft);
}
.shot figcaption {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
}
@media (max-width: 560px) { .shot { flex-basis: 208px; } .gallery { gap: 20px; } }

/* ---------- Siri phrases mock-up ---------- */

.phrases { display: grid; gap: 10px; }
.phrase {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ios-card);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}
.phrase .ic { width: 20px; height: 20px; color: var(--accent); flex: none; }
.phrase.muted { background: transparent; color: var(--ios-secondary); font-weight: 400; padding-block: 6px; }
