@font-face {
  font-family: "QuranQuicksand";
  src: url("fonts/Quicksand-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "QuranSlab";
  src: url("fonts/RobotoSlab-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --background: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f2f5f0;
  --surface-accent: #e8f1ed;
  --text: #18312d;
  --muted: #586965;
  --accent: #286d61;
  --accent-dark: #1f574f;
  --border: #dbe3de;
  --border-strong: #c7d5ce;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(24, 49, 45, 0.14);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: "QuranQuicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid rgba(40, 109, 97, 0.35);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 18px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--white);
  background: var(--text);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 227, 222, 0.9);
  background: rgba(251, 250, 246, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-feature {
  padding: 8px 0;
  font-weight: 700;
}

.nav-feature:hover,
.footer-links a:hover {
  color: var(--accent);
}

.nav-feature[aria-current="page"] {
  color: var(--accent-dark);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
}

.language-switcher a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 700;
}

.language-switcher a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--surface);
  box-shadow: 0 1px 5px rgba(24, 49, 45, 0.08);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.button-small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: 14px;
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(40, 109, 97, 0.19);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--accent-dark);
  border-color: var(--border-strong);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.hero-layout {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 84px;
  padding-block: 76px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "QuranSlab", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 650px;
  font-size: clamp(3rem, 5.7vw, 4.35rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.1;
}

h3 {
  font-size: 21px;
  line-height: 1.25;
}

.hero-text {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% -18% 5% 16%;
  border: 1px solid var(--border-strong);
  border-radius: 42% 42% 18% 42%;
}

.device-frame {
  position: relative;
  width: min(100%, 292px);
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(24, 49, 45, 0.24);
  border-radius: 38px;
  background: #163b36;
  box-shadow: var(--shadow);
}

.device-frame img {
  width: 100%;
  height: auto;
  border-radius: 30px;
}

.section {
  padding-block: 106px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 52px;
}

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

.feature {
  padding-top: 22px;
  border-top: 1px solid var(--border-strong);
}

.feature-number {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.feature p,
.offline-layout p:last-child,
.reflection-copy > p:last-child,
.cta-inner p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
}

.showcase-band {
  border-block: 1px solid var(--border);
  background: var(--surface-soft);
}

.showcase-heading {
  max-width: 760px;
}

.showcase-heading > p:last-child,
.details-section > .section-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 42px;
}

.screenshot-item {
  min-width: 0;
  margin: 0;
}

.showcase-frame {
  width: min(100%, 276px);
  margin-inline: auto;
  border-radius: 34px;
  box-shadow: 0 22px 54px rgba(24, 49, 45, 0.12);
}

.showcase-frame img {
  border-radius: 26px;
}

.screenshot-item figcaption {
  max-width: 290px;
  margin: 25px auto 0;
}

.screenshot-item figcaption h3 {
  font-size: 22px;
}

.screenshot-item figcaption p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.offline-band {
  border-block: 1px solid var(--border);
  background: var(--surface-accent);
}

.offline-layout {
  display: grid;
  grid-template-columns: 126px minmax(0, 700px);
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding-block: 82px;
}

.section-symbol {
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 109, 97, 0.2);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.section-symbol svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offline-layout p:last-child,
.reflection-copy > p:last-child {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.7;
}

.reflection {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 110px;
}

.reflection-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.reflection-visual::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  top: 25%;
  border-radius: 50%;
  background: var(--surface-accent);
}

.device-frame-small {
  width: 260px;
}

.reflection-copy {
  max-width: 620px;
}

.details-band {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.details-section > .section-heading {
  max-width: 760px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.detail-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.detail-panel h3 {
  font-size: 24px;
}

.detail-panel > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.detail-panel ul {
  display: grid;
  gap: 11px;
  margin: 22px 0 26px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}

.detail-panel ul li::marker {
  color: var(--accent);
}

.text-link,
.inline-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(40, 109, 97, 0.3);
  text-underline-offset: 4px;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 15px;
}

.text-link:hover,
.inline-link:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.support-actions {
  display: grid;
  gap: 12px;
  margin-top: 25px;
}

.blog-hero,
.article-hero {
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.blog-hero-inner {
  max-width: 850px;
  padding-block: 96px;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 850px;
}

.blog-intro,
.article-dek {
  max-width: 760px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.blog-list-section {
  max-width: 920px;
}

.blog-list {
  display: grid;
  gap: 22px;
}

.blog-card {
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(24, 49, 45, 0.06);
}

.blog-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
}

.blog-card-meta span:not(:last-child)::after,
.article-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 18px;
  color: var(--border-strong);
}

.blog-card h2 {
  max-width: 720px;
  margin-top: 16px;
  font-size: clamp(1.8rem, 3.5vw, 2.35rem);
}

.blog-card > p {
  max-width: 740px;
  margin: 15px 0 0;
  color: var(--muted);
}

.blog-card .text-link {
  margin-top: 24px;
}

.article-shell {
  width: min(calc(100% - 48px), 780px);
  margin-inline: auto;
}

.article-hero .article-shell {
  padding-block: 76px 82px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--accent-dark);
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-meta {
  margin-top: 28px;
}

.article-body {
  padding-block: 76px 112px;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body p {
  margin: 18px 0 0;
}

.article-body .article-lede {
  margin-top: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.72;
}

.article-body h2 {
  margin-top: 58px;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  scroll-margin-top: 110px;
}

.article-body h3 {
  margin-top: 34px;
  font-size: 23px;
  scroll-margin-top: 110px;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding-left: 24px;
}

.article-body li::marker {
  color: var(--accent);
  font-weight: 700;
}

.article-toc,
.article-callout {
  margin-top: 38px;
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.article-toc h2,
.article-callout h2 {
  margin-top: 0;
  font-size: 22px;
}

.article-toc ol {
  gap: 9px;
  margin-top: 16px;
}

.article-toc a {
  color: var(--accent-dark);
  font-weight: 700;
}

.article-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-callout {
  border-color: rgba(40, 109, 97, 0.22);
  background: var(--surface-accent);
}

.article-callout p:first-of-type {
  margin-top: 12px;
}

.article-cta {
  margin-top: 64px;
  padding: 34px;
  border-radius: 22px;
  color: var(--white);
  background: var(--text);
}

.article-cta h2 {
  margin-top: 0;
  color: var(--white);
}

.article-cta p {
  color: rgba(255, 255, 255, 0.74);
}

.article-cta .button {
  margin-top: 24px;
}

.resource-hero {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.resource-hero-layout {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 70px;
  padding-block: 74px;
}

.resource-hero-copy {
  max-width: 690px;
}

.resource-hero-copy .breadcrumb {
  margin-bottom: 30px;
}

.resource-hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.72;
}

.resource-hero-media {
  min-width: 0;
  margin: 0;
}

.resource-editorial-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.resource-device {
  margin-inline: auto;
}

.resource-section {
  padding-block: 94px;
}

.resource-section-soft {
  border-block: 1px solid var(--border);
  background: var(--surface-soft);
}

.resource-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.resource-heading > p:last-child,
.resource-copy > p,
.resource-copy li {
  color: var(--muted);
}

.resource-heading > p:last-child {
  margin: 18px 0 0;
  font-size: 18px;
}

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

.benefit-card,
.related-card,
.source-card {
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.benefit-card h3,
.related-card h3,
.source-card h3 {
  font-size: 23px;
}

.benefit-card p,
.related-card p,
.source-card p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.benefit-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 14px;
  color: var(--accent-dark);
  background: var(--surface-accent);
  font-size: 20px;
  font-weight: 700;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  gap: 96px;
}

.split-feature-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
}

.split-feature-reverse .split-visual {
  grid-column: 2;
}

.split-feature-reverse .resource-copy {
  grid-column: 1;
  grid-row: 1;
}

.split-visual {
  display: flex;
  justify-content: center;
}

.resource-copy {
  max-width: 690px;
}

.resource-copy h2 {
  margin-bottom: 20px;
}

.resource-copy p {
  margin: 16px 0 0;
}

.resource-copy ul,
.resource-copy ol,
.source-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding-left: 23px;
}

.resource-copy li::marker,
.source-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.step-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: resource-step;
}

.step-list li {
  position: relative;
  min-height: 90px;
  padding: 4px 0 32px 76px;
  counter-increment: resource-step;
}

.step-list li::before {
  content: counter(resource-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 4px;
  left: 24px;
  width: 1px;
  background: var(--border);
}

.step-list h3 {
  font-size: 22px;
}

.step-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.related-card {
  display: flex;
  flex-direction: column;
}

.related-card .text-link {
  margin-top: 22px;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.faq-list summary {
  padding: 22px 56px 22px 24px;
  cursor: pointer;
  color: var(--text);
  font-family: "QuranSlab", Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.faq-list details p {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
}

.calculator-band {
  border-bottom: 1px solid var(--border);
  background: var(--surface-accent);
}

.calculator-shell {
  width: min(calc(100% - 48px), 960px);
  margin-inline: auto;
  padding-block: 92px;
}

.calculator-card {
  overflow: hidden;
  border: 1px solid rgba(40, 109, 97, 0.2);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 26px 70px rgba(24, 49, 45, 0.11);
}

.calculator-form {
  padding: 36px;
}

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

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  background: var(--background);
  font: inherit;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(40, 109, 97, 0.16);
}

.field-help {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.preset-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.preset-button:hover {
  border-color: var(--accent);
  background: var(--surface-accent);
}

.calculator-submit {
  margin-top: 26px;
}

.calculator-results {
  display: block;
  padding: 36px;
  color: var(--white);
  background: var(--text);
}

.calculator-results h2 {
  color: var(--white);
  font-size: 30px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.result-item {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.result-label {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-value {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-family: "QuranSlab", Georgia, "Times New Roman", serif;
  font-size: 25px;
  line-height: 1.2;
}

.result-summary {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.calculator-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.source-card .source-list {
  color: var(--muted);
  font-size: 15px;
}

.editorial-note {
  max-width: 860px;
  margin-top: 38px;
  padding: 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--surface-accent);
}

.editorial-note h3 {
  font-size: 22px;
}

.editorial-note p {
  margin: 10px 0 0;
  color: var(--muted);
}

.final-cta {
  color: var(--white);
  background: var(--text);
}

.cta-inner {
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
  padding-block: 66px;
}

.cta-inner > div {
  max-width: 720px;
}

.cta-inner h2 {
  color: var(--white);
}

.cta-inner .eyebrow {
  color: #a7d1c9;
}

.cta-inner p:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.button-light {
  color: var(--text);
  background: var(--white);
}

.button-light:hover {
  background: var(--surface-accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-inner {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding-block: 32px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 14px;
}

.copyright {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    gap: 48px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screenshot-grid {
    gap: 24px;
  }

  .showcase-frame {
    width: min(100%, 248px);
  }

  .reflection {
    gap: 70px;
  }

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

  .detail-panel {
    padding: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .resource-hero-layout {
    gap: 44px;
  }

  .benefit-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-feature,
  .split-feature-reverse {
    gap: 60px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 124px;
  }

  .nav {
    min-height: 104px;
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
    padding-block: 9px;
  }

  .nav-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid var(--border);
  }

  .nav-links {
    gap: 16px;
  }

  .language-switcher a {
    min-height: 30px;
    padding: 4px 9px;
  }

  .hero-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 68px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual::before {
    inset: 10% 3% 5% 28%;
  }

  .device-frame {
    width: 270px;
  }

  .section {
    padding-block: 82px;
  }

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

  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .showcase-frame {
    width: 260px;
  }

  .screenshot-item figcaption {
    text-align: center;
  }

  .offline-layout {
    grid-template-columns: 90px 1fr;
    gap: 30px;
    padding-block: 68px;
  }

  .section-symbol {
    width: 90px;
    height: 90px;
  }

  .section-symbol svg {
    width: 38px;
    height: 38px;
  }

  .reflection {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .reflection-copy {
    grid-row: 1;
  }

  .device-frame-small {
    width: 250px;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .blog-hero-inner,
  .article-hero .article-shell {
    padding-block: 66px;
  }

  .article-body {
    padding-block: 62px 88px;
  }

  .resource-hero-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 46px;
    padding-block: 62px;
  }

  .resource-hero-media {
    max-width: 620px;
  }

  .resource-section {
    padding-block: 76px;
  }

  .split-feature,
  .split-feature-reverse {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .split-feature-reverse .split-visual,
  .split-feature-reverse .resource-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .split-feature-reverse .resource-copy {
    grid-row: 1;
  }

  .calculator-shell {
    padding-block: 72px;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  .brand span {
    font-size: 15px;
  }

  .nav-meta {
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 3.25rem);
  }

  .hero-text,
  .offline-layout p:last-child,
  .reflection-copy > p:last-child {
    font-size: 17px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .detail-panel {
    padding: 25px;
  }

  .blog-card,
  .article-toc,
  .article-callout,
  .article-cta {
    padding: 24px;
  }

  .article-shell {
    width: min(calc(100% - 32px), 780px);
  }

  .benefit-grid,
  .related-grid,
  .source-grid,
  .calculator-fields,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .benefit-card,
  .related-card,
  .source-card,
  .calculator-form,
  .calculator-results {
    padding: 24px;
  }

  .calculator-shell {
    width: min(calc(100% - 32px), 960px);
  }

  .step-list li {
    padding-left: 66px;
  }

  .offline-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-symbol {
    width: 76px;
    height: 76px;
  }

  .reflection-visual::before {
    width: 260px;
    height: 260px;
  }

  .footer-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
    padding-block: 42px;
  }

  .footer-links {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
