/* Modern Apple-style Browser Theme pages — theme-v2.css
   Shared by browser/theme/index-new.html and the per-browser
   theme subpage redesigns. Loaded after style1.min.css + globalnav.css */
:root {
  --nv-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nv-text: #1d1d1f;
  --nv-text-sub: #6e6e73;
  --nv-text-dark: #f5f5f7;
  --nv-text-sub-dark: #a1a1a6;
  --nv-surface: #fff;
  --nv-surface-alt: #f5f5f7;
  --nv-surface-dark: #000;
  --nv-link: #0066cc;
  --nv-link-dark: #2997ff;
  --nv-accent: #0071e3;
  --nv-line: #d2d2d7;
  --nv-line-soft: #e8e8ed;
  --nv-radius-lg: 30px;
  --nv-radius-md: 18px;
  --nv-gutter: 20px;
}
.th-hero, .th-tile, .th-grid, .th-grid > *, #faq, .th-cta {
  font-family: var(--nv-font);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* Neutralize the site's legacy `main section` layout for this redesign
   (style1.min.css sets width:970px, 50px top margin, inline-block on sections) */
main .th-hero, main .th-tile, main .th-card, main #faq, main .th-cta {
  display: block;
  width: 100%;
  margin: 0;
}
.th-page .wideads {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
}

/* ---------- Hero ---------- */
.th-hero {
  padding: 96px 22px 0;
  text-align: center;
  background: var(--nv-surface-dark);
  color: var(--nv-text-dark);
  overflow: hidden;
}
.th-eyebrow {
  margin: 0 0 8px;
  font-size: clamp(15px, 1.8vw, 21px);
  line-height: 1.3;
  font-weight: 600;
  color: #ff9f0a;
}
.th-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.5vw, 80px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
}
.th-tagline {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.38;
  font-weight: 500;
  color: var(--nv-text-sub-dark);
}
.th-hero .th-links { margin-top: 24px; font-size: 19px; }
.th-hero .th-links a { color: var(--nv-link-dark); }
.th-hero .nv-media {
  max-width: 860px;
  margin: 52px auto 0;
}
.th-hero .nv-media img {
  width: 100%;
  height: auto;
  display: block;
  /* Crop the transparent cascade PNG so only the dark browser chrome
     shows — the white webpage in the lower half stays out of frame */
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 2%;
}
.th-hero .th-shot { margin: 52px auto 0; }

/* ---------- Text-link rows (Apple "Learn more >" pattern) ---------- */
.th-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 30px;
  font-size: 17px;
  line-height: 1.4;
}
.th-links a {
  color: var(--nv-link);
  text-decoration: none;
  font-weight: 500;
}
.th-links a::after { content: " ›"; }
.th-links a:hover { text-decoration: underline; }
.th-dark .th-links a, .th-card-dark .th-links a { color: var(--nv-link-dark); }
.th-tile .th-links, .th-card .th-links { margin-top: 26px; }

/* ---------- Feature tile ---------- */
.th-tile {
  width: 100%;
  padding: 96px 22px;
  text-align: center;
}
.th-tile h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.th-tile .th-sub {
  max-width: 680px;
  margin: 14px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.42;
  font-weight: 500;
}
.th-light { background: var(--nv-surface-alt); color: var(--nv-text); }
.th-light .th-sub { color: var(--nv-text-sub); }
.th-light .th-eyebrow { color: var(--nv-link); }
.th-dark { background: var(--nv-surface-dark); color: var(--nv-text-dark); }
.th-dark .th-sub { color: var(--nv-text-sub-dark); }
.th-dark .th-eyebrow { color: #a1a1a6; }

.th-shot {
  max-width: 880px;
  margin: 40px auto 0;
}
.th-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--nv-radius-md);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}
.th-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 34px;
}
.th-actions a.glassbutton {
  font-family: var(--nv-font);
  font-size: 17px;
  font-weight: 500;
  padding: 12px 26px;
  margin: 0;
  background: var(--nv-accent);
  border-radius: 980px;
}
.th-actions a.glassbutton:hover { background: #0077ed; }

/* ---------- Subpage hero + prose ---------- */
.th-subhero h1 { font-size: clamp(36px, 6vw, 64px); }
.th-subhero .th-actions { margin-top: 30px; }
.th-subhero .th-actions a.glassbutton {
  font-family: var(--nv-font);
  font-size: 17px;
  font-weight: 500;
  padding: 12px 26px;
  margin: 0;
  background: var(--nv-accent);
  border-radius: 980px;
}
.th-subhero .th-actions a.glassbutton:hover { background: #0077ed; }
.th-subhero .th-links { margin-top: 20px; }

.th-prose {
  max-width: 680px;
  margin: 24px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--nv-text-sub);
}
.th-prose p { margin: 0 0 18px; }
.th-prose p:last-child { margin-bottom: 0; }

/* ---------- Quality checklist chips ---------- */
.th-check {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 780px;
  margin: 34px auto 0;
  padding: 0;
  list-style: none;
}
.th-check li {
  font-size: 15px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--nv-text-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------- Theme card grid ---------- */
.th-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--nv-gutter);
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--nv-gutter);
  background: var(--nv-surface);
}
.th-card {
  padding: 64px 28px 56px;
  text-align: center;
  border-radius: var(--nv-radius-lg);
  background: var(--nv-surface-alt);
  color: var(--nv-text);
}
.th-card h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.012em;
}
.th-card .th-card-sub {
  max-width: 460px;
  margin: 12px auto 0;
  font-size: 17px;
  line-height: 1.42;
  color: var(--nv-text-sub);
}
.th-card .th-shot { max-width: 560px; margin-top: 32px; }
.th-card .th-actions { margin-top: 26px; }
.th-card .th-actions a.glassbutton { font-size: 15px; padding: 10px 20px; }
.th-card.th-card-dark { background: var(--nv-surface-dark); color: var(--nv-text-dark); }
.th-card.th-card-dark .th-card-sub { color: var(--nv-text-sub-dark); }

/* ---------- FAQ (same accordion style as /compare/) ---------- */
main #faq {
  background: var(--nv-surface);
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 22px;
  text-align: left;
}
#faq .section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--nv-link);
  margin: 0 0 14px;
}
#faq .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; max-width: 620px;
  line-height: 1.2;
  margin: 0 0 48px;
  color: var(--nv-text);
}
#faq .faq-item {
  border-bottom: 1px solid var(--nv-line);
  padding: 24px 0;
}
#faq .faq-q {
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer; color: var(--nv-text);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
#faq .faq-q .arrow { color: var(--nv-link); font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; }
#faq .faq-a {
  color: var(--nv-text-sub); font-size: 0.93rem; line-height: 1.75;
  max-height: 0; overflow: hidden; margin: 0;
  transition: max-height 0.35s ease, padding 0.3s ease;
}
#faq .faq-item.open .faq-a { max-height: 300px; padding-top: 14px; }
#faq .faq-item.open .arrow { transform: rotate(45deg); }
#faq .faq-a a { color: var(--nv-link); }

/* ---------- Closing CTA ---------- */
.th-cta {
  background: var(--nv-surface-alt);
  padding: 96px 22px;
  text-align: center;
}
.th-cta h2 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--nv-text);
}
.th-cta p {
  max-width: 600px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--nv-text-sub);
}
.th-cta .th-actions { margin-top: 30px; }
.th-cta .th-actions a.glassbutton {
  font-family: var(--nv-font);
  font-size: 17px;
  font-weight: 500;
  padding: 12px 26px;
  margin: 0;
  background: var(--nv-accent);
  border-radius: 980px;
}
.th-cta .th-actions a.glassbutton:hover { background: #0077ed; }
.th-cta .th-links { margin-top: 26px; }

/* ---------- Ads strip ---------- */
.th-page .wideads { background: var(--nv-surface); padding: 24px 0; text-align: center; }


/* ---------- Dark mode (OS preference) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --nv-text: #f5f5f7;
    --nv-text-sub: #a1a1a6;
    --nv-surface: #000;
    --nv-surface-alt: #1c1c1e;
    --nv-link: #2997ff;
    --nv-line: #424245;
    --nv-line-soft: #38383a;
  }
  /* Keep cards defined against the dark page, and the dark card visible */
  .th-card { border: 1px solid var(--nv-line-soft); }
  .th-card.th-card-dark { border-color: #424245; }
  #faq .faq-a { color: #d1d1d6; }
  .th-shot img { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
}

/* ---------- Squircle corners where supported ---------- */
@supports (corner-shape: squircle) {
  .th-card { corner-shape: squircle; border-radius: var(--nv-radius-lg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 834px) {
  .th-hero { padding-top: 64px; }
  .th-tile { padding: 64px 18px; }
  main #faq, .th-cta { padding: 64px 18px; }
  .th-grid { grid-template-columns: 1fr; }
  .th-card { padding: 48px 20px 44px; }
  .th-actions a.glassbutton { width: 100%; max-width: 340px; box-sizing: border-box; }
}
