:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d9dee7;
  --soft: #f6f7f9;
  --paper: #ffffff;
  --accent: #0f766e;
  --accent-2: #d9480f;
  --focus: #2563eb;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand, .site-nav, .site-footer nav, .hero-actions, .store-row, .filter-row, .trust-row {
  display: flex;
  align-items: center;
}
.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 0.8rem;
}
.site-nav, .site-footer nav {
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}
.site-nav a, .site-footer a { text-decoration: none; }
.site-nav a:hover, .site-footer a:hover { color: var(--ink); }

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(48px, 7vw, 86px) 0 36px;
}
.hero h1, .page-heading h1, .app-hero h1, .article-header h1 {
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}
.hero-lede, .page-heading p, .article-header p, .app-hero-copy > p {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.primary-link, .secondary-link, .store-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 800;
}
.primary-link {
  background: var(--ink);
  color: #fff;
}
.secondary-link {
  border: 1px solid var(--line);
  background: #fff;
}
.store-button {
  min-width: 0;
  min-height: 40px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
}
.app-store-badge {
  display: block;
  width: clamp(120px, 34vw, 160px);
  height: auto;
  max-width: 100%;
}
.store-row {
  flex-wrap: wrap;
  gap: 14px;
}

.hero-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 12px;
}
.hero-icons img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.metric-row div {
  padding: 18px;
  background: var(--soft);
  border-right: 1px solid var(--line);
}
.metric-row div:last-child { border-right: 0; }
.metric-row strong {
  display: block;
  font-size: 1.4rem;
}
.metric-row span { color: var(--muted); }

.apps-section, .guide-section, .faq-section, .related-apps, .page-heading, .article-page {
  padding: 72px 0 0;
}
.section-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.section-heading h2, .strategy-band h2, .copy-panel h2, .quick-panel h2, .article-content h2, .article-cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}
.search-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}
.search-box input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
}
.filter-row {
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.filter-chip.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.app-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-card a, .guide-card, .copy-panel, .quick-panel, .article-cta, .faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}
.app-card a {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  text-decoration: none;
}
.app-card a:hover, .guide-card:hover {
  border-color: #a9b2c1;
  transform: translateY(-2px);
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}
.app-icon-large {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.card-category, .guide-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.app-card h3, .guide-card h3, .guide-card h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}
.app-card p, .guide-card p, .strategy-band p, .copy-panel p, .quick-panel p, .article-content p, .article-cta p, .faq-list p {
  margin: 0;
  color: var(--muted);
}
.text-link {
  margin-top: auto;
  color: var(--focus);
  font-weight: 900;
}

.strategy-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: center;
  margin: 72px 0;
  padding: 28px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}
.strategy-band p { color: #d8dee8; }

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.breadcrumb a { color: var(--focus); text-decoration: none; }
.app-hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: 48px 0 36px;
}
.app-subtitle {
  color: var(--ink);
  font-weight: 900;
  font-size: 1.25rem;
}
.store-row {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.trust-row {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.trust-row span {
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--soft);
}
.phone-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.phone-strip img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}
.phone-strip img:nth-child(2) { transform: translateY(-22px); }
.phone-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel-color) 18%, #ffffff), #ffffff 62%);
  box-shadow: var(--shadow);
}
.phone-card img {
  width: 76px;
  height: 76px;
  aspect-ratio: 1;
  border-radius: 8px;
}
.phone-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}
.phone-card span {
  color: var(--muted);
  font-size: 0.92rem;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  padding-top: 36px;
}
.deep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 16px;
  padding-top: 34px;
}
.deep-section {
  padding: 64px 0 0;
}
.narrative-grid,
.decision-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.narrative-grid h3,
.decision-split h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}
.visual-section .section-heading {
  max-width: 860px;
}
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.screenshot-card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  display: block;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.screenshot-card div:not(.phone-card) {
  padding: 14px;
}
.screenshot-card span,
.store-fact span,
.step-card span {
  display: block;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.screenshot-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.fallback-visual {
  max-width: 260px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.step-card {
  min-height: 240px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.step-card h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.store-fact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.store-fact {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.store-fact strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.keyword-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 800;
}
.section-note {
  max-width: 82ch;
  margin: 16px 0 0;
  color: var(--muted);
}
.language-section {
  margin: 34px 0;
  padding: 24px 0 6px;
  border-top: 1px solid var(--line);
}
.language-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.language-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}
.language-chip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.language-chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.language-chip.is-active small {
  color: rgba(255, 255, 255, 0.72);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #fff;
}
th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--soft);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tr:last-child td { border-bottom: 0; }
html[dir="rtl"] th,
html[dir="rtl"] td {
  text-align: right;
}
.copy-panel, .quick-panel, .article-cta {
  padding: 24px;
}
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}
.check-list li {
  position: relative;
  padding-left: 24px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
}
html[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 24px;
}
html[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-grid.wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  padding: 18px 20px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}
.faq-list p {
  margin-top: 10px;
}
.page-heading {
  max-width: 760px;
}
.article-page {
  max-width: 880px;
  margin: 0 auto;
}
.article-header {
  display: grid;
  gap: 14px;
}
.article-content {
  display: grid;
  gap: 20px;
  margin-top: 34px;
  font-size: 1.06rem;
}
.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 80px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.site-footer p {
  max-width: 54ch;
  margin: 6px 0 0;
  color: var(--muted);
}
.site-footer .legal-line {
  max-width: 72ch;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .hero, .app-hero, .content-grid, .deep-grid, .strategy-band, .toolbar {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .app-grid, .app-grid.compact, .guide-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .narrative-grid,
  .decision-split,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .screenshot-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .store-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-cta, .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  main, .site-footer {
    width: min(100% - 28px, 1180px);
  }
  .app-hero-copy,
  .section-heading,
  .copy-panel,
  .quick-panel,
  .guide-card,
  .app-card,
  .store-fact,
  .step-card,
  .screenshot-card {
    min-width: 0;
  }
  .eyebrow,
  .trust-row span,
  .app-hero-copy > p,
  .page-heading p,
  .guide-card h2,
  .guide-card h3,
  .app-card h3,
  .store-fact strong {
    overflow-wrap: anywhere;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .hero h1, .page-heading h1, .app-hero h1, .article-header h1 {
    font-size: 3rem;
  }
  .app-grid, .app-grid.compact, .guide-grid, .guide-grid.wide, .metric-row {
    grid-template-columns: 1fr;
  }
  .narrative-grid,
  .decision-split,
  .step-grid,
  .screenshot-gallery,
  .store-fact-grid {
    grid-template-columns: 1fr;
  }
  .hero-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .metric-row div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric-row div:last-child { border-bottom: 0; }
  .phone-strip {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .phone-strip img {
    min-width: 110px;
  }
}
