/*
Theme Name: LearnTabletBalance Full
Theme URI: https://learntabletbalance.com/
Author: LearnTabletBalance
Author URI: https://learntabletbalance.com/
Description: Vollständige responsive Produkt- und Ratgeber-Website für LearnTabletBalance.
Version: 1.0.18
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: learntabletbalance-full
*/

:root {
  color-scheme: only light;
  --navy-950: #062342;
  --navy-900: #08315f;
  --navy-800: #0b4a88;
  --blue-600: #188bd0;
  --blue-400: #59c5ee;
  --sky-100: #e9f8ff;
  --sky-50: #f6fcff;
  --orange-600: #f15a24;
  --orange-500: #ff7a1a;
  --yellow-500: #ffbd24;
  --green-600: #169b55;
  --green-500: #28b968;
  --green-100: #e8f8ed;
  --purple-600: #6551ad;
  --ink: #10243a;
  --muted: #52657a;
  --line: rgba(8, 49, 95, 0.14);
  --surface: #ffffff;
  --shadow-sm: 0 10px 30px rgba(4, 39, 73, 0.1);
  --shadow-lg: 0 24px 70px rgba(4, 39, 73, 0.17);
  --radius-sm: 0.8rem;
  --radius-md: 1.35rem;
  --radius-lg: 2rem;
  --container: 72rem;
  --header-height: 4.65rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 18rem;
  color: var(--ink);
  background: var(--sky-50);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--navy-800);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-600);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow-500);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--navy-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 50rem);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.8rem;
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.85rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-500), var(--yellow-500));
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-950);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 9vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 6vw, 3.75rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
}

p {
  margin-top: 0;
}

.lead {
  max-width: 42rem;
  color: #314c68;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.7;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  box-shadow: 0 14px 30px rgba(11, 74, 136, 0.25);
}

.button-primary:hover {
  color: #fff;
  box-shadow: 0 18px 36px rgba(11, 74, 136, 0.34);
}

.button-secondary {
  border-color: rgba(8, 49, 95, 0.18);
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.86);
}

.button-store {
  min-height: 3.45rem;
  padding-inline: 1.35rem;
}

.hero-purchase-note {
  max-width: 44rem;
  margin: 0.45rem 0 0;
  color: #3f5872;
  font-size: 0.91rem;
  line-height: 1.55;
}

.hero-problem {
  max-width: 42rem;
  margin-bottom: 0.75rem;
  color: var(--navy-950);
  font-size: clamp(1.08rem, 2.3vw, 1.3rem);
  font-weight: 850;
  line-height: 1.5;
}

.hero-device-note {
  max-width: 44rem;
  margin: 0.9rem 0 0;
  color: var(--navy-800);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(8, 49, 95, 0.08);
  background: rgba(248, 253, 255, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-950);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 3.35rem;
  aspect-ratio: 1;
  object-fit: contain;
}

.brand-text {
  display: none;
}

.menu-toggle {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy-950);
  background: #fff;
  cursor: pointer;
  place-items: center;
}

.menu-toggle svg {
  width: 1.45rem;
}

.site-nav {
  position: absolute;
  z-index: 100;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  height: calc(100vh - var(--header-height));
  height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  padding: 1.5rem 1rem;
  background: #f6fcff;
  color-scheme: light;
  overscroll-behavior: contain;
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  color: var(--navy-950);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--sky-100);
}

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(3rem, 8vw, 6.8rem) 0 clamp(4rem, 10vw, 8rem);
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  pointer-events: none;
}

.hero::before {
  top: -12rem;
  right: -16rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(89, 197, 238, 0.4), transparent 68%);
}

.hero::after {
  bottom: -14rem;
  left: -16rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(40, 185, 104, 0.25), transparent 68%);
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.1rem;
}

.hero h1 .accent {
  color: var(--orange-600);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-media {
  position: relative;
}

.hero-poster {
  overflow: hidden;
  border: 0.45rem solid #fff;
  border-radius: clamp(1.2rem, 4vw, 2.3rem);
  background: #d9f4ff;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.hero-sticker {
  position: absolute;
  right: auto;
  bottom: -0.65rem;
  left: 50%;
  display: grid;
  width: clamp(4rem, 18vw, 4.8rem);
  aspect-ratio: 1;
  border: 0.22rem solid #fff;
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--yellow-500);
  box-shadow: var(--shadow-sm);
  font-size: clamp(0.68rem, 3.1vw, 0.78rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  transform: translateX(-50%) rotate(-4deg);
  place-items: center;
}

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -2.2rem;
}

.trust-list {
  display: grid;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  gap: 0.75rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy-900);
  font-size: 0.93rem;
  font-weight: 800;
}

.trust-icon {
  display: grid;
  width: 2rem;
  flex: 0 0 2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--green-600);
  font-size: 0.9rem;
  place-items: center;
}

.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section[id],
main[id],
.guide-product-moment[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-white {
  background: #fff;
}

.section-sky {
  background: linear-gradient(180deg, var(--sky-100), #f7fcff);
}

.section-green {
  background: linear-gradient(180deg, var(--green-100), #f7fff9);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 25px rgba(4, 39, 73, 0.06);
}

.card-icon {
  display: grid;
  width: 3.25rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  font-size: 1.4rem;
  font-weight: 900;
  place-items: center;
}

.card:nth-child(2) .card-icon {
  background: linear-gradient(135deg, var(--orange-600), var(--yellow-500));
}

.card:nth-child(3) .card-icon {
  background: linear-gradient(135deg, var(--green-600), var(--green-500));
}

.card:nth-child(4) .card-icon {
  background: linear-gradient(135deg, var(--purple-600), #8c73df);
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.cycle-diagram {
  position: relative;
  width: min(100%, 50rem);
  margin: 0 auto;
}

.cycle-arrows,
.cycle-center {
  display: none;
}

.cycle-steps {
  display: grid;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cycle;
}

.cycle-step {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  counter-increment: cycle;
}

.cycle-step::before {
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--navy-800);
  content: counter(cycle);
  font-size: 1.2rem;
  font-weight: 900;
  place-items: center;
}

.cycle-step:nth-child(2)::before {
  background: var(--green-600);
}

.cycle-step:nth-child(3)::before {
  background: var(--orange-600);
}

.cycle-step:nth-child(4)::before {
  background: var(--purple-600);
}

.cycle-step:not(:last-child)::after {
  position: absolute;
  top: calc(100% + 0.15rem);
  left: 50%;
  color: var(--blue-600);
  content: "↓";
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  transform: translateX(-50%);
}

.cycle-step h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.cycle-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

@media (min-width: 52rem) {
  .cycle-diagram {
    aspect-ratio: 1;
  }

  .cycle-arrows {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .cycle-arrows > path {
    fill: none;
    stroke: #188bd0;
    stroke-width: 8;
    stroke-linecap: round;
  }

  .cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 12.5rem;
    aspect-ratio: 1;
    align-content: center;
    border: 5px solid #cdeefa;
    border-radius: 50%;
    color: var(--navy-900);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .cycle-center span + span::before {
    display: block;
    color: var(--orange-600);
    content: "↓";
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .cycle-steps {
    position: absolute;
    inset: 0;
    display: block;
  }

  .cycle-step {
    position: absolute;
    width: 14rem;
    min-height: 9rem;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0.55rem;
    padding: 1rem 1.15rem;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .cycle-step::before {
    width: 2.4rem;
    font-size: 1rem;
    justify-self: center;
  }

  .cycle-step::after {
    display: none;
  }

  .cycle-step:nth-child(1) {
    top: 16%;
    left: 50%;
  }

  .cycle-step:nth-child(2) {
    top: 50%;
    left: 82%;
  }

  .cycle-step:nth-child(3) {
    top: 84%;
    left: 50%;
  }

  .cycle-step:nth-child(4) {
    top: 50%;
    left: 18%;
  }

  .cycle-step h3 {
    font-size: 1.05rem;
  }

  .cycle-step p {
    font-size: 0.85rem;
  }
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
}

.check-list {
  display: grid;
  margin: 1.5rem 0 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  display: grid;
  width: 1.35rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--green-600);
  content: "✓";
  font-size: 0.82rem;
  font-weight: 900;
  place-items: center;
}

.device-frame {
  position: relative;
  width: min(100%, 25rem);
  margin-inline: auto;
  padding: 0.55rem;
  border: 0.35rem solid var(--navy-950);
  border-radius: 2rem;
  background: #0b263d;
  box-shadow: var(--shadow-lg);
}

.device-frame img {
  width: 100%;
  border-radius: 1.35rem;
}

.device-frame-landscape {
  width: min(100%, 45rem);
  border-radius: 1.6rem;
}

.device-frame-landscape img {
  border-radius: 1rem;
}

.learning-visual-stack {
  display: grid;
  gap: 0.9rem;
}

.learning-visual-secondary {
  width: min(88%, 39rem);
  margin: -2.6rem 0 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transform: none;
}

.learning-visual-secondary picture {
  display: block;
  height: 100%;
}

.learning-visual-secondary img {
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.screenshot-grid {
  display: grid;
  align-items: start;
  gap: 1.2rem;
}

.screenshot-card {
  margin: 0;
}

.screenshot-card figcaption {
  padding: 0.85rem 0.3rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.store-grid {
  display: grid;
  gap: 1rem;
}

.store-card {
  padding: clamp(1.5rem, 4vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.store-label {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--navy-900);
  background: var(--sky-100);
  font-size: 0.82rem;
  font-weight: 850;
}

.store-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.4rem 0.68rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.store-status::before {
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.store-status-approved {
  color: #13733d;
  background: #effcf4;
}

.store-status-review {
  color: #8a5410;
  background: #fff9e9;
}

.store-card:nth-child(2) .store-label {
  color: #14502e;
  background: var(--green-100);
}

.store-card h3 {
  margin-bottom: 0.75rem;
}

.store-card .price-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.store-card .button {
  margin-top: 1rem;
}

.store-release-note {
  margin-top: 0.9rem;
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(4, 39, 73, 0.05);
}

.faq-list summary {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: var(--navy-950);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  display: grid;
  width: 1.85rem;
  flex: 0 0 1.85rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--navy-900);
  background: var(--sky-100);
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  place-items: center;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 1.1rem 1.2rem;
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 4.5rem);
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 189, 36, 0.55), transparent 30%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow-lg);
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.84);
}

.cta-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.28);
}

/*
 * Samsung Internet kann Webseiten trotz eigener heller Gestaltung automatisch
 * invertieren. Die Klasse wird nur dort gesetzt; die expliziten Farben halten
 * die Markenansicht lesbar, ohne den Gerätemodus des Besuchers zu verändern.
 */
html.samsung-browser,
html.samsung-browser body {
  color-scheme: dark;
}

html.samsung-browser body,
html.samsung-browser .section-white,
html.samsung-browser .site-footer,
html.samsung-browser .legal-card,
html.samsung-browser .guide-article,
html.samsung-browser .guide-card,
html.samsung-browser .store-card,
html.samsung-browser .faq-list details,
html.samsung-browser .screenshot-card {
  color: var(--ink);
  background-color: #fff;
}

html.samsung-browser .hero,
html.samsung-browser .section-sky,
html.samsung-browser .guide-hero,
html.samsung-browser .legal-main,
html.samsung-browser .guide-main {
  color: var(--ink);
  background-color: var(--sky-50);
}

html.samsung-browser .section-green {
  color: var(--ink);
  background-color: var(--green-100);
}

html.samsung-browser .site-header {
  color: var(--ink);
  background-color: rgba(248, 253, 255, 0.98);
}

html.samsung-browser .lead,
html.samsung-browser .section-heading p,
html.samsung-browser .faq-answer,
html.samsung-browser .screenshot-card figcaption,
html.samsung-browser .guide-intro,
html.samsung-browser .guide-article p,
html.samsung-browser .guide-article li,
html.samsung-browser .footer-meta {
  color: var(--muted);
}

html.samsung-browser .cta-panel,
html.samsung-browser .site-footer .cta-panel {
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 189, 36, 0.55), transparent 30%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-950);
  font-weight: 900;
}

.footer-brand img {
  width: 3rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.legal-main {
  min-height: calc(100vh - var(--header-height));
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(89, 197, 238, 0.22), transparent 28rem),
    var(--sky-50);
}

.legal-card {
  padding: clamp(1.4rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 7vw, 4.2rem);
  overflow-wrap: anywhere;
}

.legal-card h2 {
  margin: 2.4rem 0 0.8rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  letter-spacing: -0.02em;
}

.legal-card h3 {
  margin: 1.7rem 0 0.6rem;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.legal-card p,
.legal-card li {
  color: #314c68;
}

.legal-card ul {
  padding-left: 1.25rem;
}

.legal-note {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-left: 0.3rem solid var(--blue-600);
  border-radius: 0.5rem;
  background: var(--sky-100);
  color: var(--navy-900);
}

.guide-main {
  min-height: calc(100vh - var(--header-height));
  background:
    radial-gradient(circle at 92% 4%, rgba(255, 189, 36, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--sky-50), #fff 35rem);
}

.guide-hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.guide-hero-inner {
  max-width: 54rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.guide-hero h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.guide-intro {
  max-width: 48rem;
  color: #314c68;
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  line-height: 1.75;
}

.guide-overview {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.guide-grid {
  display: grid;
  gap: 1.1rem;
}

.guide-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.guide-card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guide-card-number {
  display: grid;
  width: 2.7rem;
  margin-bottom: 1.4rem;
  aspect-ratio: 1;
  border-radius: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  font-weight: 900;
  place-items: center;
}

.guide-card h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.guide-card p {
  color: var(--muted);
}

.guide-card-link {
  margin-top: auto;
  padding-top: 0.8rem;
  color: var(--navy-800);
  font-weight: 850;
}

.guide-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.guide-hero h1 {
  overflow-wrap: anywhere;
}

.guide-toc,
.guide-article {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.guide-toc {
  padding: 1.25rem;
}

.guide-toc strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--navy-950);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.guide-toc li + li {
  margin-top: 0.45rem;
}

.guide-article {
  padding: clamp(1.4rem, 5vw, 3.5rem);
}

.guide-article h2 {
  margin: 3rem 0 1rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  letter-spacing: -0.025em;
}

.guide-article h2:first-child {
  margin-top: 0;
}

.guide-article h3 {
  margin: 2rem 0 0.7rem;
}

.guide-article p,
.guide-article li {
  color: #314c68;
}

.guide-article li + li {
  margin-top: 0.45rem;
}

.guide-byline {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  color: #5b7086;
}

.guide-related-link {
  margin-top: 2rem;
}

.guide-related,
.guide-sources ul {
  padding-left: 1.2rem;
}

.guide-sources {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(11, 74, 136, 0.16);
}

.guide-sources h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.guide-sources li,
.guide-sources a {
  font-size: 0.94rem;
}

.guide-product-moment {
  display: grid;
  gap: 1.6rem;
  margin: 3rem 0;
  padding: clamp(1.35rem, 4vw, 2.2rem);
  overflow: hidden;
  border: 1px solid rgba(25, 125, 185, 0.2);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 189, 36, 0.22), transparent 15rem),
    linear-gradient(145deg, #eefaff, #fffaf0);
  box-shadow: 0 1.1rem 2.6rem rgba(7, 43, 79, 0.09);
}

.guide-product-moment h2 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
}

.guide-product-copy > p:not(.eyebrow):not(.guide-product-facts) {
  font-size: 1.05rem;
}

.guide-product-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

.guide-product-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.65rem;
  align-items: start;
  margin: 0;
}

.guide-product-steps li > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  background: var(--blue-600);
  place-items: center;
}

.guide-product-steps strong {
  color: var(--navy-950);
}

.guide-product-facts {
  margin: 1rem 0 0;
  color: #526c83;
  font-size: 0.86rem;
  font-weight: 700;
}

.guide-access-flow,
.guide-cycle,
.guide-setting-grid {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.guide-access-flow > div,
.guide-cycle > div,
.guide-setting-grid > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(11, 74, 136, 0.15);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.45rem 1rem rgba(7, 43, 79, 0.05);
}

.guide-access-flow > b,
.guide-cycle > b {
  display: none;
  align-self: center;
  color: var(--blue-600);
  font-size: 1.25rem;
  text-align: center;
}

.guide-access-flow span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-weight: 900;
  place-items: center;
}

.guide-access-flow strong,
.guide-access-flow small,
.guide-cycle strong,
.guide-cycle span,
.guide-setting-grid strong {
  display: block;
}

.guide-access-flow strong,
.guide-cycle strong,
.guide-setting-grid strong {
  color: var(--navy-950);
}

.guide-access-flow small,
.guide-cycle span {
  margin-top: 0.35rem;
  color: #526c83;
  font-size: 0.86rem;
  line-height: 1.45;
}

.guide-cycle > div {
  border-top: 0.28rem solid var(--blue-600);
}

.guide-cycle > div:nth-of-type(2) {
  border-top-color: var(--green-500);
}

.guide-cycle > div:nth-of-type(3) {
  border-top-color: var(--orange-500);
}

.guide-cycle > div:nth-of-type(4) {
  border-top-color: var(--navy-800);
}

.guide-setting-grid > div {
  border-top: 0.28rem solid var(--green-500);
}

.guide-setting-grid > div:nth-child(2) {
  border-top-color: var(--blue-600);
}

.guide-setting-grid > div:nth-child(3) {
  border-top-color: var(--orange-500);
}

.guide-setting-grid p {
  margin: 0.55rem 0 0;
  font-size: 0.94rem;
}

.guide-product-formula {
  margin: 1.2rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(25, 125, 185, 0.22);
  border-radius: 0.8rem;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.5rem 1.1rem rgba(7, 43, 79, 0.06);
}

.guide-learning-effect {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--orange-500);
  border-radius: 0.65rem;
  color: #314c68;
  background: rgba(255, 248, 236, 0.9);
}

.guide-learning-effect strong {
  color: var(--navy-950);
}

.guide-product-visuals {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(7.5rem, 0.65fr);
  gap: 0.8rem;
  align-items: end;
}

.guide-product-shot {
  margin: 0;
  padding: 0.5rem;
  border: 1px solid rgba(11, 74, 136, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.8rem 1.8rem rgba(7, 43, 79, 0.12);
}

.guide-product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

.guide-product-shot figcaption {
  padding: 0.65rem 0.35rem 0.2rem;
  color: #526c83;
  font-size: 0.8rem;
  line-height: 1.4;
}

.guide-cta-benefits {
  display: grid;
  gap: 0.45rem;
  margin: 1.3rem 0 1.6rem;
  padding-left: 1.25rem;
}

.guide-cta-benefits li,
.guide-cta-note {
  color: #fff;
}

.guide-cta-note {
  margin: 1.2rem 0 0;
  font-size: 0.84rem;
  opacity: 0.78;
}

.guide-note {
  margin: 1.6rem 0;
  padding: 1.1rem 1.2rem;
  border-left: 0.32rem solid var(--blue-600);
  border-radius: 0.65rem;
  background: var(--sky-100);
}

.guide-note strong {
  color: var(--navy-950);
}

.guide-note-warning {
  border-left-color: var(--orange-500);
  background: #fff8ec;
}

.guide-cta {
  margin-top: 3rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.guide-cta h2,
.guide-cta p {
  color: #fff;
}

.guide-cta h2 {
  margin-top: 0;
}

.steps-demo-link {
  justify-content: center;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.info-page-layout,
.demo-page-layout {
  padding-bottom: clamp(4rem, 9vw, 8rem);
}

.info-page-article,
.demo-article {
  max-width: 62rem;
  margin-inline: auto;
}

.info-principles {
  margin-block: 1.5rem 2.5rem;
}

.demo-hero {
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.demo-video-card {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 62rem;
  margin: 0 auto 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fff, var(--sky-50));
  box-shadow: var(--shadow-sm);
}

.demo-video-copy h2 {
  margin-top: 0.4rem;
}

.demo-video {
  display: block;
  width: min(100%, 24rem);
  max-height: 42rem;
  margin-inline: auto;
  border-radius: 1.35rem;
  background: #071c31;
  box-shadow: var(--shadow-lg);
}

.demo-steps {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  list-style: none;
  counter-reset: demo-step;
}

.demo-steps li {
  position: relative;
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding: 1rem 1rem 1rem 4rem;
  border: 1px solid rgba(11, 74, 136, 0.14);
  border-radius: 1rem;
  background: var(--sky-50);
  counter-increment: demo-step;
}

.demo-steps li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-weight: 900;
  content: counter(demo-step);
  place-items: center;
}

.demo-steps strong {
  color: var(--navy-950);
}

.demo-steps span {
  color: #314c68;
}

.guide-author-box {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.15rem;
  align-items: center;
  border: 1px solid rgba(11, 74, 136, 0.16);
  border-radius: 1rem;
  background: var(--sky-50);
}

.guide-author-box img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.guide-author-box strong {
  color: var(--navy-950);
}

.guide-author-box p {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
}

@media (min-width: 46rem) {
  .demo-video-card {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
  }

  .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guide-access-flow {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .guide-cycle {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .guide-access-flow > b,
  .guide-cycle > b {
    display: block;
  }

  .guide-setting-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .guide-layout {
    grid-template-columns: 16rem minmax(0, 1fr);
  }

  .guide-toc {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }
}

.minimal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.9), transparent 17rem),
    radial-gradient(circle at 88% 4%, rgba(255, 189, 36, 0.23), transparent 16rem),
    linear-gradient(180deg, #dff6ff 0%, #f8fdff 58%, #e9f8ed 100%);
}

.minimal-main {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  padding: 2.5rem 0 4rem;
  place-items: center;
  isolation: isolate;
}

.minimal-main::before,
.minimal-main::after {
  position: absolute;
  z-index: -1;
  bottom: -12rem;
  width: 80rem;
  height: 23rem;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.minimal-main::before {
  left: -18rem;
  background: #a9e6ad;
  transform: rotate(4deg);
}

.minimal-main::after {
  right: -24rem;
  bottom: -15rem;
  background: #7fd48d;
  transform: rotate(-5deg);
}

.minimal-content {
  width: min(calc(100% - 2rem), 48rem);
  margin-inline: auto;
  text-align: center;
}

.minimal-logo {
  width: min(76vw, 25rem);
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 20px 28px rgba(4, 39, 73, 0.16));
}

.minimal-content h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.35rem, 10vw, 5rem);
}

.minimal-content .lead {
  margin-inline: auto;
}

.minimal-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(8, 49, 95, 0.11);
  border-radius: 999px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 800;
}

.minimal-status::before {
  width: 0.65rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0.3rem rgba(40, 185, 104, 0.16);
  content: "";
}

.not-found {
  display: grid;
  min-height: 75vh;
  padding: 3rem 1rem;
  text-align: center;
  place-items: center;
}

.not-found h1 {
  margin-bottom: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 36rem) {
  .brand-text {
    display: inline;
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    z-index: auto;
    top: auto;
    right: auto;
    left: auto;
    display: block;
    height: auto;
    overflow: visible;
    padding: 0;
    background: transparent;
  }

  .site-nav ul {
    display: flex;
    align-items: center;
  }

  .site-nav a {
    padding: 0.6rem 0.7rem;
    font-size: 0.9rem;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .hero-sticker {
    right: -0.4rem;
    bottom: -1.1rem;
    left: auto;
    width: 6.5rem;
    border-width: 0.3rem;
    font-size: 0.92rem;
    transform: rotate(-7deg);
  }

  .trust-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

@media (min-width: 70rem) {
  .site-nav a {
    padding-inline: 0.9rem;
  }
}

@media (max-width: 24rem) {
  .container,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .store-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button-row {
    display: none;
  }

  body,
  .legal-main {
    background: #fff;
  }

  .legal-card {
    border: 0;
    box-shadow: none;
  }
}

/* Article metadata preview: local existing assets until final image selection. */
.guide-preview-image { margin: 1.25rem 0 2rem; }
.guide-preview-image img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 16px; background: #eef9ff; }
