/* Strongbro design tokens — congruent with the iOS app (AppColors.swift).
   Paper ground, graphite ink, one font, colour only on emoji squircles. */

@font-face { font-family: Manrope; src: url(/fonts/Manrope-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(/fonts/Manrope-ExtraBold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #F6F5F1;
  --card: #FFFFFF;
  --elevated: #ECEAE4;
  --ink: #16171B;
  --secondary: #8E8E93;
  --tertiary: #B8B8BE;
  --divider: rgba(0, 0, 0, 0.07);
  --red: #FF3B30;
  --float-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  --fab-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  --radius-card: 24px;
  --radius-tile: 20px;
  --radius-chip: 18px;
  --font: Manrope, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: var(--ink); }
img { max-width: 100%; height: auto; }

h1 { font-size: clamp(2rem, 5.5vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0.4em 0; }
h2 { font-size: 1.45rem; font-weight: 700; line-height: 1.25; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.4em 0 0.4em; }
p, li { color: var(--ink); }
.sub, .byline, .footer-line { color: var(--secondary); }

/* Header */
.site-header { padding: 14px 0; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.wordmark { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--ink); font-size: 0.95rem; }
@media (max-width: 560px) { .nav-links { display: none; } }

/* Buttons — ink capsule CTA, white pill */
.btn-primary, .btn-pill-ink {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 999px; font-weight: 600;
}
.btn-primary { padding: 16px 28px; font-size: 1.02rem; box-shadow: var(--fab-shadow); }
.btn-pill-ink { padding: 10px 18px; font-size: 0.9rem; }
.btn-pill-white {
  display: inline-block; background: var(--card); color: var(--ink); text-decoration: none;
  border-radius: 999px; padding: 12px 20px; font-weight: 600; box-shadow: var(--float-shadow);
}
.cta-block { margin: 2.2em 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-sub { color: var(--tertiary); font-size: 0.85rem; }

/* Squircles — the only colour on the page */
.squircle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; font-size: 21px;
  box-shadow: inset 0 0 0 0.8px rgba(255, 255, 255, 0.7); flex: none;
}
.squircle-lg { width: 64px; height: 64px; border-radius: 19px; font-size: 33px; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: 24px 0 60px; }
.article-head { margin-bottom: 8px; }
.byline { font-size: 0.9rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--tertiary); padding: 10px 0 0; }
.breadcrumbs a { color: var(--secondary); text-decoration: none; }
.article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 0.95rem; }
.article th, .article td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--divider); }
.article th { color: var(--secondary); font-weight: 600; }

/* Quick answer — white card, ink border-left */
.quick-answer {
  background: var(--card); border-radius: var(--radius-card); padding: 20px 24px; margin: 22px 0;
}
.quick-answer .qa-label {
  font-size: 0.8rem; font-weight: 700; color: var(--secondary);
  text-transform: none; margin: 0 0 6px;
}
.quick-answer p { margin: 0; }

/* FAQ */
.faq-item { background: var(--card); border-radius: var(--radius-tile); padding: 4px 20px; margin: 10px 0; }
.faq-item summary { font-weight: 600; padding: 12px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--ink); margin-top: 0; }

/* Related + hub cards */
.related-grid, .hub-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
@media (min-width: 640px) { .related-grid { grid-template-columns: 1fr 1fr; } }
.related-card, .hub-card {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border-radius: var(--radius-tile); padding: 14px 18px; text-decoration: none; font-weight: 500;
}
.hub-card-text { display: flex; flex-direction: column; gap: 2px; }
.hub-card-title { font-weight: 600; }
.hub-card-desc { color: var(--secondary); font-size: 0.9rem; font-weight: 400; }

/* Sources */
.sources ul { padding-left: 20px; }
.sources a { color: var(--secondary); }

/* Home */
.hero { text-align: left; padding: 48px 0 20px; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.hero .sub { font-size: 1.15rem; max-width: 34em; }
.hero-cta { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.qr-hint { display: none; align-items: center; gap: 12px; color: var(--secondary); font-size: 0.85rem; }
.qr-hint img { width: 84px; height: 84px; border-radius: 12px; background: #fff; padding: 6px; }
@media (min-width: 900px) { .qr-hint { display: flex; } }
.steps { display: grid; gap: 12px; margin: 16px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--card); border-radius: var(--radius-tile); padding: 16px 20px 16px 58px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.price-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 18px 0; }
@media (min-width: 640px) { .price-cards { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--card); border-radius: var(--radius-card); padding: 22px 24px; }
.price-card.hot { outline: 1.5px solid var(--ink); }
.price-num { font-size: 2rem; font-weight: 800; }
.price-note { color: var(--secondary); font-size: 0.9rem; }
.home-section { max-width: 720px; margin: 0 auto; padding: 8px 0; }

/* Footer */
.site-footer { margin-top: 60px; border-top: 1px solid var(--divider); padding: 36px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid a { display: block; text-decoration: none; color: var(--secondary); padding: 3px 0; font-size: 0.95rem; }
.footer-grid .btn-primary { display: inline-block; color: #fff; margin-top: 12px; }
.footer-head { font-weight: 700; font-size: 0.9rem; }
.footer-legal { color: var(--tertiary); font-size: 0.85rem; margin-top: 26px; }
.footer-legal a { color: var(--tertiary); }

/* Split hero — copy left, device right (stacks under 860px) */
.hero-split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; max-width: 960px; padding: 40px 0 10px; }
@media (min-width: 860px) { .hero-split { grid-template-columns: 1.15fr 0.85fr; padding: 56px 0 24px; } }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.trust-chips span { background: var(--card); border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--secondary); box-shadow: var(--float-shadow); }
.qr-card { display: none; align-items: center; gap: 16px; background: var(--card); border-radius: var(--radius-tile); padding: 14px 18px; margin-top: 18px; max-width: 420px; }
.qr-card img { width: 84px; height: 84px; border-radius: 12px; }
.qr-card span { color: var(--secondary); font-size: 0.9rem; }
@media (min-width: 860px) { .qr-card { display: flex; } .qr-hint { display: none; } }
.hero-fine { color: var(--tertiary); font-size: 0.85rem; margin-top: 14px; }
.hero-device { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw); padding: 12px; background: var(--ink); border-radius: 46px;
  box-shadow: var(--fab-shadow);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; font-size: 0.8rem; font-weight: 700; color: var(--secondary); background: var(--card); border-radius: 999px; padding: 8px 12px; box-shadow: var(--float-shadow); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-list { position: absolute; right: 0; top: 40px; background: var(--card); border-radius: var(--radius-tile); box-shadow: var(--float-shadow); padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; width: 300px; max-height: 70vh; overflow: auto; z-index: 20; }
.lang-list a { text-decoration: none; padding: 6px 16px; font-size: 0.9rem; color: var(--ink); white-space: nowrap; }
.checklist ul { padding-left: 20px; }
.ugc { background: var(--card); border-radius: var(--radius-tile); padding: 16px 20px; margin: 22px 0; color: var(--secondary); }
[dir="rtl"] .breadcrumbs, [dir="rtl"] .article { text-align: right; }

/* Footer: features column, explore/company column, then every language */
.footer-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-langs { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--divider); }
.footer-lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px; }
@media (min-width: 560px) { .footer-lang-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .footer-lang-grid { grid-template-columns: repeat(6, 1fr); } }
.footer-lang-grid a { text-decoration: none; color: var(--secondary); font-size: 0.9rem; padding: 3px 0; }
.footer-lang-grid a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* Spotlight rows: copy beside a phone, alternating sides; stacked on mobile */
.spotlights { max-width: 960px; margin: 0 auto; padding: 10px 0; }
.spot { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 34px 0; border-top: 1px solid var(--divider); }
@media (min-width: 760px) {
  .spot { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
  .spot-flip .spot-copy { order: 2; }
  .spot-flip .phone { order: 1; }
}
.spot-copy h2 { margin: 14px 0 8px; }
.spot-copy p { color: var(--secondary); margin: 0 0 14px; }
.spot-link { font-weight: 600; text-decoration: none; }
.phone-sm { width: min(260px, 70vw); margin: 0 auto; }
.phone-xs { width: 100%; padding: 8px; border-radius: 34px; }
.phone-xs img { border-radius: 27px; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 760px; margin: 24px auto 0; }
@media (max-width: 560px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } .shot-grid .phone-xs:nth-child(3) { display: none; } }
/* Footer languages: quieter */
.footer-lang-grid a { text-decoration: none; }
