/* Shared style for the landing pages (index, best-countdown-app).
   Always light, on purpose (Caner, 17 Oct 2026: dark looked too black).
   Brand colours match the App Store screenshots and tools/social/brand.py. */
:root {
  --yellow: #FFE66D; --yellow-soft: #FFF6C7;
  --coral: #FF686B; --coral-soft: #FFE3E3;
  --turquoise: #4ECDC4; --turquoise-soft: #DDF6F4;
  --ink: #262F36; --ink-2: #4A555E; --muted: #6B757D;
  --bg: #FFFCF4; --surface: #FFFFFF; --line: #EFE9DA;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(38,47,54,0.04), 0 8px 28px rgba(38,47,54,0.07);
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: #000; }
img { max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--round); color: var(--ink); letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 4.2vw, 36px); line-height: 1.15; margin: 0 0 8px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.section { padding: 56px 0; }
.section-intro { color: var(--muted); font-size: 17px; margin: 0 0 26px; max-width: 36em; }

/* Top bar */
.topbar { padding: 16px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round);
         font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(38,47,54,0.15); }
.topbar .small-cta { font-size: 14px; font-weight: 700; text-decoration: none; padding: 9px 16px;
                     border-radius: 999px; background: var(--ink); color: #fff; }
.topbar .small-cta:hover { color: #fff; background: #000; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
       padding: 15px 28px; border-radius: 16px; text-decoration: none; font-size: 17px;
       font-weight: 700; box-shadow: 0 6px 18px rgba(38,47,54,0.22); transition: transform .15s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* Hero (home) */
.hero { background: var(--yellow); position: relative; overflow: hidden; }
.hero::after { /* soft coral glow, bottom right */
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,104,107,0.35), rgba(255,104,107,0) 70%);
  pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; text-align: center; padding-top: 28px; padding-bottom: 0; }
.hero .icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(38,47,54,0.22); }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.04; margin: 22px auto 14px; max-width: 12em; }
.hero .pitch { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-2); max-width: 32em; margin: 0 auto 18px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; max-width: 40em; }
.pill { background: rgba(255,255,255,0.7); border: 1px solid rgba(38,47,54,0.08); color: var(--ink);
        padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.hero .meta { font-size: 13px; color: var(--ink-2); margin-top: 14px; }
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
         padding: 40px 20px 0; margin: 0 -20px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { width: 200px; height: auto; flex: 0 0 auto; border-radius: 22px 22px 0 0;
             scroll-snap-align: center; box-shadow: 0 -4px 30px rgba(38,47,54,0.16); }
@media (min-width: 960px) {
  .shots { justify-content: center; overflow: visible; }
  .shots img { width: 150px; }  /* six frames (5 iPhone + Apple Watch) fit the 1000px wrap */
  .shots img:nth-child(odd) { margin-top: 26px; }
}

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
        font-size: 22px; margin-bottom: 14px; }
.t-yellow { background: var(--yellow-soft); } .t-coral { background: var(--coral-soft); }
.t-turq { background: var(--turquoise-soft); } .t-ink { background: #E9ECEE; }

/* Claim band */
.band { background: var(--ink); color: #fff; border-radius: 28px; padding: 34px 28px; text-align: center; }
.band h2 { color: #fff; margin-bottom: 6px; }
.band p { color: #C9D0D5; margin: 0; font-size: 17px; }

/* Tables */
.table-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
           background: #FFFDF6; font-weight: 700; }
tbody tr:last-child td { border-bottom: none; }
td.c, th.c { text-align: center; white-space: nowrap; width: 120px; }
.col-pro { background: var(--yellow-soft); }
thead .col-pro { background: var(--yellow); color: var(--ink); }
.yes { color: #138A5B; font-weight: 700; }
.no { color: #C33B36; font-weight: 700; }
.na { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 560px) {
  th, td { padding: 11px 10px; font-size: 14px; }
  td.c, th.c { width: 80px; }
}

/* FAQ */
.faq details { background: var(--surface); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px;
               box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; list-style: none; display: flex;
               justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--round); font-size: 22px; line-height: 1;
                      color: var(--coral); flex: 0 0 auto; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 10px 0 2px; font-size: 15px; }

/* Final call to action */
.final { background: var(--turquoise); border-radius: 28px; padding: 44px 24px; text-align: center; }
.final h2 { margin-bottom: 8px; }
.final p { color: var(--ink-2); margin: 0 0 22px; font-size: 17px; }

/* Footer */
footer { padding: 40px 0 56px; text-align: center; font-size: 14px; color: var(--muted); }
footer a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .row { margin: 6px 0; }

/* Article pages (comparison) */
.article-head { padding: 28px 0 8px; }
.article-head h1 { font-size: clamp(32px, 5.6vw, 52px); line-height: 1.08; margin: 6px 0 14px; max-width: 16em; }
.article-head .lede { font-size: 19px; color: var(--ink-2); max-width: 38em; margin: 0 0 22px; }
.kicker { display: inline-block; background: var(--yellow); padding: 5px 12px; border-radius: 999px;
          font-size: 13px; font-weight: 700; }
.disclosure { background: var(--yellow-soft); border-radius: 18px; padding: 16px 20px; font-size: 15px;
              color: var(--ink-2); }
.quick { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.quick li { background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); }
.compare table { min-width: 820px; font-size: 14px; }
.compare td.app { font-weight: 700; white-space: nowrap; }
.compare td.app, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.compare thead th:first-child { background: #FFFDF6; }
.compare tr.us td { background: var(--yellow-soft); }
.app-card { background: var(--surface); border-radius: var(--radius); padding: 24px; margin-bottom: 14px;
            box-shadow: var(--shadow); }
.app-card.us { outline: 3px solid var(--yellow); }
.app-card .by { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.app-card dl { margin: 0; display: grid; grid-template-columns: 9.5em 1fr; gap: 8px 14px; font-size: 15px; }
.app-card dt { color: var(--muted); font-weight: 600; }
.app-card dd { margin: 0; }
@media (max-width: 560px) { .app-card dl { grid-template-columns: 1fr; gap: 2px; } .app-card dt { margin-top: 8px; } }
.prose p { max-width: 42em; color: var(--ink-2); }
.prose strong { color: var(--ink); }
.wrap main .section { padding: 30px 0; }
.wrap main .section > h2 { margin-bottom: 16px; }
.swipe-hint { display: none; font-size: 13px; color: var(--muted); margin: -6px 0 10px; }
@media (max-width: 820px) { .swipe-hint { display: block; } }

/* Question / guide pages (generated by simple-count/tools/site/make_pages.py) */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .article-grid { grid-template-columns: minmax(0, 1fr) 260px; } }
.article-body .section { padding: 22px 0; }
.article-body h2 { font-size: clamp(22px, 3.4vw, 28px); margin-bottom: 12px; }
.article-side { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
@media (min-width: 900px) { .article-side { position: sticky; top: 20px; } }
.side-shot { width: 230px; max-width: 70vw; height: auto; border-radius: 26px; box-shadow: var(--shadow); }
.side-note { font-size: 13px; color: var(--muted); margin: 0; max-width: 230px; }
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ol.steps li { counter-increment: step; position: relative; background: var(--surface); border-radius: 16px;
              padding: 14px 18px 14px 58px; box-shadow: var(--shadow); color: var(--ink-2); }
ol.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px;
                      border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--round);
                      font-weight: 700; display: grid; place-items: center; font-size: 15px; }
ol.steps strong, ul.tips strong { color: var(--ink); }
ul.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.tips li { background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
             color: var(--ink-2); border-left: 4px solid var(--turquoise); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.related-link { background: var(--surface); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
                text-decoration: none; font-weight: 600; color: var(--ink); }
.related-link:hover { color: #000; outline: 2px solid var(--yellow); }

/* Chinese pages */
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; letter-spacing: 0; }

/* Language menu + suggestion bar (generated home pages) */
.topbar-right { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
                     height: 40px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600;
                     color: var(--ink); background: rgba(255,255,255,0.82); border: 1px solid rgba(38,47,54,0.10);
                     box-shadow: 0 1px 2px rgba(38,47,54,0.06); white-space: nowrap; user-select: none;
                     -webkit-tap-highlight-color: transparent; transition: background .15s ease, box-shadow .15s ease; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::marker { content: ""; }
.lang-menu summary:hover { background: #fff; box-shadow: 0 2px 10px rgba(38,47,54,0.10); }
.lang-menu summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lang-menu .flag { font-size: 18px; line-height: 1; }
.lang-menu .chev { width: 12px; height: 12px; color: var(--muted); transition: transform .2s ease; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--surface);
             border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(38,47,54,0.18);
             padding: 8px; width: 380px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
             text-align: left; animation: lang-pop .14s ease-out; }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
               text-decoration: none; color: var(--ink); }
.lang-list a:hover { background: var(--yellow-soft); }
.lang-list .flag { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.lang-names { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.lang-native { font-size: 15px; font-weight: 600; }
.lang-en { font-size: 12px; color: var(--muted); }
.lang-list a[aria-current="page"] { background: var(--yellow-soft); }
.lang-list a[aria-current="page"]::after { content: "✓"; margin-left: auto; font-weight: 700; color: var(--ink); }
@media (max-width: 560px) {
  .topbar .wrap { position: relative; }
  .lang-menu { position: static; }
  .lang-list { left: 16px; right: 16px; width: auto; top: calc(100% + 6px); max-height: 70vh; overflow-y: auto; }
  .lang-menu .lang-current { display: none; }
  .lang-menu summary { padding: 0 10px; }
}
@media (max-width: 380px) { .topbar .small-cta { display: none; } }
.suggest-bar { background: var(--ink); color: #fff; font-size: 14px; padding: 10px 16px; display: flex;
               align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.suggest-bar[hidden] { display: none; }
.suggest-bar a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.suggest-bar button { background: none; border: 0; color: #C9D0D5; font-size: 16px; cursor: pointer; padding: 2px 6px; }
.topbar { position: relative; z-index: 30; }
.brand, .topbar .small-cta { white-space: nowrap; }
@media (max-width: 430px) { .topbar .small-cta { padding: 8px 12px; font-size: 13px; } .brand { font-size: 16px; } .brand img { width: 30px; height: 30px; } }
