/* ------------------------------------------------------------------ *
 * Samado — palette sampled directly from the App Store screenshots.
 * ------------------------------------------------------------------ */

:root {
  --cream: #ffefe0;
  --cream-deep: #fbe3d0;
  --surface: #ffffff;
  --accent: #ff2d00;
  --accent-dark: #d92400;
  --ink: #1e1005;
  --ink-soft: #4a3a2d;
  --muted: #8c7b6e;
  --line: #efd9c6;
  --gold: #ffb300;

  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
    Inter, Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 18px 44px rgba(94, 45, 12, 0.1);

  color-scheme: light;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: 1.16rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

p {
  margin: 0 0 1.05em;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main {
  flex: 1;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 14px;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- Top bar ---------- */

.topbar {
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 239, 224, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-icon {
  border-radius: 8px;
  display: block;
}

.topnav {
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 550;
}

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 650;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(255, 45, 0, 0.26);
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
}

.apple-glyph {
  margin-top: -2px;
  flex: none;
}

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

.hero {
  padding: 52px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-cta {
  margin: 26px 0 22px;
}

.hero-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 12px 0 0;
}

.works-with {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.works-with li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
}

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

.hero-shot img {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.section {
  padding: 66px 0;
}

.section--alt {
  background: var(--cream-deep);
}

.section-lede {
  max-width: 620px;
  color: var(--ink-soft);
  margin: 14px 0 34px;
}

.section h2 + .steps,
.section h2 + .features,
.section h2 + .guide-grid,
.section h2 + .faq,
.section h2 + .gallery {
  margin-top: 34px;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
}

.step-n {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: block;
}

.gallery-item figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Features ---------- */

.features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.feature-img {
  width: auto;
  height: 104px;
  max-width: 120px;
  object-fit: contain;
  flex: none;
}

.feature h3 {
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- Guide cards ---------- */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 26px;
}

.guide-grid--index {
  margin: 40px 0 60px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.guide-card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--cream-deep);
}

.guide-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.guide-card-body h3 {
  margin-bottom: 9px;
}

.guide-card-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.guide-card-more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent);
}

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

.faq {
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  cursor: pointer;
  padding: 18px 34px 18px 0;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  display: inline;
  font-size: 1.04rem;
  font-weight: 700;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-body {
  padding: 0 34px 20px 0;
  color: var(--ink-soft);
}

.faq-body p {
  margin: 0 0 10px;
}

.faq-more a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

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

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-radius: 26px;
  padding: 52px 40px;
  text-align: center;
  margin: 0 auto 72px;
  max-width: min(1120px, calc(100% - 48px));
}

.cta-band--inline {
  margin: 56px auto 72px;
  padding: 40px 32px;
}

.cta-band h2 {
  margin-bottom: 14px;
}

.cta-band p {
  color: #e6d3c2;
  max-width: 520px;
  margin: 0 auto 26px;
}

.section.cta-band {
  padding: 52px 40px;
}

/* ---------- Guide article ---------- */

.guide {
  padding: 30px 0 0;
}

.crumbs {
  display: flex;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.guide-meta {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 16px 0 26px;
}

.guide-hero {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 36px;
  display: block;
  border-radius: 22px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}

.guide .lede {
  font-size: 1.16rem;
  color: var(--ink);
  margin-bottom: 38px;
}

.guide-section {
  margin-bottom: 40px;
}

.guide-section h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.72rem);
  margin-bottom: 16px;
}

.guide-section p {
  color: var(--ink-soft);
}

.guide-section strong {
  color: var(--ink);
}

.howto {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px 24px;
  margin-bottom: 44px;
}

.howto h2 {
  font-size: 1.28rem;
  margin-bottom: 16px;
}

.howto ol {
  margin: 0;
  padding-left: 22px;
  list-style: decimal;
}

.howto li {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.97rem;
  padding-left: 4px;
}

.howto li::marker {
  color: var(--accent);
  font-weight: 700;
}

.shot {
  margin: 30px 0;
  text-align: center;
}

.shot img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.shot figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: left;
}

.callout {
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 32px 0;
}

.callout h3 {
  margin-bottom: 8px;
}

.callout p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.related {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.related h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.guides-intro {
  padding: 20px 0 0;
  max-width: 720px;
}

/* On the 404 page the intro is the page container, so it keeps its padding. */
.container--narrow.guides-intro {
  margin: 0 auto;
}

.guides-intro h1 {
  margin-bottom: 18px;
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 24px 0 72px;
}

.legal-inner {
  max-width: 720px;
}

.legal-eyebrow {
  color: var(--accent);
  font-weight: 750;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.legal-title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin: 0 0 8px;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 26px;
}

.legal-note {
  background: #fff3ec;
  border: 1px solid var(--line);
  color: #a83214;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.legal h2 {
  font-size: 1.24rem;
  margin: 34px 0 10px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal ul {
  padding-left: 22px;
  list-style: disc;
}

.legal li {
  margin-bottom: 8px;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .btn {
  color: #fff;
  text-decoration: none;
}

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

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 34px 0 42px;
  background: var(--cream-deep);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 800;
  margin: 0 0 4px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

/* ---------- Responsive ---------- */

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

  .hero-shot img {
    max-width: 280px;
  }

  .topnav {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 16px;
  }

  .container {
    padding: 0 18px;
  }

  .section {
    padding: 48px 0;
  }

  .feature {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 26px 22px;
  }

  .cta-band,
  .section.cta-band {
    padding: 38px 22px;
    border-radius: 20px;
  }

  .howto {
    padding: 22px 20px 18px;
  }

  .footer-inner {
    flex-direction: column;
  }
}
