:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --text: #111827;
  --muted: #4b5563;
  --line: rgba(17, 24, 39, 0.1);
  --accent: #ef4444;
  --accent-2: #f97316;
  --ink-accent: #0f766e;
  --blue-accent: #2563eb;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.1), transparent 32%),
    linear-gradient(220deg, rgba(15, 118, 110, 0.12), transparent 38%),
    var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
li,
a {
  overflow-wrap: break-word;
}

.container {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: max(0px, env(safe-area-inset-top));
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.locale-switch a {
  min-width: 34px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  padding: 6px 8px;
  border-radius: 999px;
}

.locale-switch a:hover {
  background: rgba(15, 23, 42, 0.06);
}

.locale-switch a.active-locale {
  background: rgba(239, 68, 68, 0.16);
  color: #991b1b;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #273246;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 24, 39, 0.08);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.18);
  color: #0f172a;
}

.nav a.active {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.45);
  color: #991b1b;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  font-weight: 700;
  font-size: 13px;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 56px 0;
}

.hero-expanded {
  place-items: stretch;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.hero-copy {
  max-width: 660px;
  min-width: 0;
}

.hero-card {
  width: min(720px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 26px;
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.2);
}

.hero-copy .logo {
  width: 96px;
  height: 96px;
  margin-bottom: 12px;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitle {
  margin: 0 auto;
  color: var(--muted);
  max-width: 54ch;
}

.cta-row {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

.hero-card .cta-row {
  justify-content: center;
}

.apple-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  text-decoration: none;
  background: #000;
  color: #fff;
  border-radius: 14px;
  padding: 12px 20px;
  border: 1px solid #000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.apple-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.apple-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.apple-label {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.apple-label small {
  opacity: 0.84;
  font-size: 11px;
  letter-spacing: 0;
}

.apple-label strong {
  font-size: 17px;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.phone-preview {
  position: relative;
  width: min(360px, 100%);
  padding: 20px;
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    linear-gradient(180deg, #111827, #172033);
  color: #ffffff;
  box-shadow:
    0 34px 80px rgba(15, 23, 42, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border: 9px solid rgba(255, 255, 255, 0.92);
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.phone-header span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
}

.phone-header strong {
  font-size: 28px;
  line-height: 1.1;
}

.companion-tile {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.companion-tile img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  transform: translateY(5px);
}

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

.preview-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-list span {
  font-weight: 700;
}

.preview-list b {
  width: 74px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2dd4bf, #facc15, #fb7185);
}

.page {
  padding: 48px 0 72px;
}

.doc {
  min-width: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 36px);
}

.doc h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

.doc h2 {
  font-size: 1.14rem;
  margin: 26px 0 8px;
}

.doc p,
.doc li {
  color: #1f2937;
}

.doc ul {
  margin: 8px 0 0;
}

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

.lead {
  color: #243044;
  font-size: 1.05rem;
  max-width: 68ch;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.guide-preview {
  padding: 0 0 72px;
}

.landing-section {
  padding: 72px 0;
}

.landing-section + .landing-section {
  padding-top: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-width: 0;
  min-height: 210px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.feature-card h3,
.routine-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.feature-card p,
.routine-step p,
.routine-layout p,
.trust-layout p,
.compare-landing p {
  margin: 0;
  color: #334155;
}

.routine-band,
.trust-band,
.compare-band {
  padding-top: 34px;
}

.routine-layout,
.trust-layout,
.compare-landing {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.routine-layout h2,
.trust-layout h2,
.compare-landing h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.routine-steps {
  display: grid;
  gap: 14px;
}

.routine-step {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.routine-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 900;
}

.trust-layout {
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.trust-layout ul {
  margin: 0;
  padding-left: 20px;
}

.trust-layout li {
  margin: 8px 0;
  color: #12312e;
}

.compare-landing {
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
}

.compare-landing p {
  color: rgba(255, 255, 255, 0.78);
}

.compare-landing .text-link {
  justify-self: end;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.guide-card h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.guide-card h2 a,
.text-link {
  color: #0f172a;
  text-decoration: none;
}

.guide-card p {
  margin: 0;
  color: #334155;
}

.guide-meta {
  color: #7f1d1d;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.text-link {
  margin-top: auto;
  font-weight: 800;
}

.text-link:hover,
.guide-card h2 a:hover,
.breadcrumb a:hover {
  color: var(--accent);
}

.guide-index .guide-grid {
  margin-top: 24px;
}

.guide-doc section {
  margin-top: 28px;
}

.guide-doc h2 {
  margin-top: 0;
}

.quick-answer-panel {
  position: relative;
  padding: 22px 0 6px;
  border-top: 1px solid rgba(15, 118, 110, 0.22);
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.quick-answer-panel h2,
.qa-section h2 {
  margin-bottom: 14px;
}

.quick-answer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-answer-list li {
  position: relative;
  min-width: 0;
  padding: 12px 14px 12px 38px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.07);
  color: #12312e;
}

.quick-answer-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.qa-section {
  padding-top: 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.qa-list {
  display: grid;
  gap: 14px;
}

.qa-item {
  padding: 0 0 14px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  border-left: 3px solid rgba(37, 99, 235, 0.38);
}

.qa-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.qa-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.qa-item p {
  margin: 0;
}

.comparison-doc .lead {
  max-width: 72ch;
}

.comparison-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.decision-card {
  min-height: 180px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.decision-card h3,
.competitor-row h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.decision-card p,
.competitor-row p {
  margin: 0;
}

.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.compare-table thead th {
  color: #0f172a;
  font-size: 0.82rem;
  text-transform: uppercase;
  background: rgba(15, 118, 110, 0.08);
}

.compare-table tbody th {
  width: 130px;
  color: #0f172a;
  font-size: 0.96rem;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.competitor-list {
  display: grid;
  gap: 14px;
}

.competitor-row {
  padding-left: 16px;
  border-left: 3px solid rgba(239, 68, 68, 0.32);
}

.source-section p {
  margin-top: 0;
  color: var(--muted);
}

.source-section ul {
  columns: 2;
  padding-left: 18px;
}

.content-standard {
  min-width: 0;
  margin-top: 30px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.content-standard h2 {
  margin-top: 0;
}

.content-standard p {
  margin: 8px 0 0;
}

.related-comparisons ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-comparisons a {
  display: block;
  min-width: 0;
  min-height: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.1);
}

.related-comparisons a:hover {
  color: var(--accent);
  border-color: rgba(239, 68, 68, 0.34);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
}

.takeaway-box {
  min-width: 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.takeaway-box h2 {
  font-size: 1rem;
}

.guide-cta {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: #101827;
  color: #ffffff;
}

.guide-cta h2,
.guide-cta p {
  margin: 0;
}

.guide-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.guide-cta .apple-btn {
  width: fit-content;
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

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

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

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
}

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

.footer-locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .topbar-inner {
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-card {
    padding: 28px 20px;
  }

  .nav-toggle {
    display: inline-flex;
    align-self: center;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    white-space: normal;
    font-size: 13px;
    padding: 10px 12px;
    width: 100%;
    text-align: center;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .logo {
    width: 108px;
    height: 108px;
  }

  .subtitle {
    max-width: 100%;
    font-size: 15px;
  }

  .apple-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding-inline: 12px;
  }

  .apple-label strong {
    font-size: 16px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 42px;
  }

  .hero-layout,
  .routine-layout,
  .trust-layout,
  .compare-landing {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .doc {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy .logo {
    width: 82px;
    height: 82px;
  }

  .hero-visual {
    overflow: hidden;
    min-height: 340px;
  }

  .phone-preview {
    width: min(320px, calc(100vw - 48px));
    padding: 16px;
    border-width: 6px;
  }

  .phone-header {
    gap: 10px;
  }

  .phone-header strong {
    font-size: 24px;
  }

  .companion-tile {
    width: 78px;
    height: 78px;
    border-radius: 24px;
  }

  .companion-tile img {
    width: 74px;
    height: 74px;
    transform: translateY(4px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .landing-section {
    padding: 44px 0;
  }

  .compare-landing .text-link {
    justify-self: stretch;
    text-align: center;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-card {
    min-height: auto;
  }

  .source-section ul {
    columns: 1;
  }

  .related-comparisons ul {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: auto;
  }

  .guide-cta .apple-btn {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
