:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --bg-2: #efece4;
  --surface: #ffffff;
  --surface-muted: #fbfaf6;
  --ink: #0d1b2e;
  --ink-2: #1f2c47;
  --muted: #5b6884;
  --brand: #1d4ed8;
  --brand-dark: #1a3fb8;
  --brand-soft: #e7edff;
  --brand-line: rgba(29, 78, 216, 0.18);
  --warm: #c2683f;
  --warm-soft: #f6e3d3;
  --success: #0a8a5f;
  --success-soft: #dff1e8;
  --border: rgba(13, 27, 46, 0.1);
  --border-2: rgba(13, 27, 46, 0.14);
  --border-strong: rgba(13, 27, 46, 0.22);
  --rule: rgba(13, 27, 46, 0.06);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 46, 0.08);
  --shadow-md: 0 6px 18px -6px rgba(13, 27, 46, 0.18), 0 1px 2px rgba(13, 27, 46, 0.08);
  --shadow-lg: 0 30px 60px -30px rgba(13, 27, 46, 0.32), 0 8px 22px -12px rgba(13, 27, 46, 0.18);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: Fraunces, Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand-soft);
  box-shadow: 0 0 0 2px var(--brand);
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 238, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-nav a,
.footer-links a,
.text-link {
  text-decoration: none;
}

.primary-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a:hover,
.text-link:hover,
.footer-links a:hover {
  color: var(--brand);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #ffffff;
  background: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--ink-2);
}

.btn-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border-2);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
}

.btn-large {
  min-height: 52px;
  padding-inline: 22px;
}

.header-cta {
  justify-self: end;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(40px, 5.8vw, 70px) 46px;
}

.hero-copy {
  min-width: 0;
}

.chip {
  width: fit-content;
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--ink-2);
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-top: 0;
  font-size: clamp(2.55rem, 5.1vw, 4.55rem);
  font-weight: 850;
}

h1 span {
  color: var(--brand);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 850;
}

h3 {
  font-size: 1.18rem;
  font-weight: 850;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  margin-top: 30px;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.trust-row li {
  position: relative;
  padding-left: 16px;
}

.trust-row li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--warm);
}

.hero-figure {
  margin: 0;
  min-width: 0;
}

.hero-art {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(13, 27, 46, 0.08);
  border-radius: var(--radius);
  background: #f1e6d8;
  box-shadow: var(--shadow-lg);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.legal-main {
  min-height: 56vh;
  padding-block: clamp(56px, 8vw, 92px);
}

.legal-shell {
  max-width: 820px;
}

.legal-card {
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.legal-card h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.legal-card h2 {
  margin-top: 40px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.18;
}

.legal-card h3 {
  margin-top: 30px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.legal-card p,
.legal-card li {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.02rem;
}

.legal-card p {
  margin: 22px 0 0;
}

.legal-card .legal-updated {
  width: fit-content;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.legal-card ul {
  max-width: 66ch;
  margin: 18px 0 0;
  padding-left: 1.25rem;
}

.legal-card li + li {
  margin-top: 10px;
}

.legal-card a {
  color: var(--brand);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.legal-card strong {
  color: var(--ink);
}

.legal-card code {
  border-radius: 6px;
  padding: 0.1em 0.35em;
  background: var(--surface-muted);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.legal-table-wrapper {
  width: 100%;
  margin-top: 20px;
  overflow-x: auto;
}

.legal-card table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-card th,
.legal-card td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  background: var(--surface-muted);
  color: var(--ink);
  font-weight: 850;
}

.legal-card td {
  color: var(--ink-2);
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-top: 0;
}

.section-heading .chip + h2 {
  margin-top: 14px;
}

.section-heading p:not(.chip) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.product-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.product-copy p,
.schedule-sample p,
.about-copy p,
.methodology-grid p,
.benefit-list p,
.trust-card p,
.quiet-note {
  color: var(--muted);
}

.product-copy p {
  max-width: 64ch;
  margin: 0;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.capability-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-weight: 700;
}

.capability-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
}

.schedule-sample {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.schedule-sample {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.sample-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--rule);
}

.sample-grid span,
.sample-grid i {
  min-height: 38px;
  display: flex;
  align-items: center;
  background: var(--surface);
}

.sample-grid span {
  padding: 8px;
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.sample-grid span:nth-child(-n + 4) {
  color: var(--muted);
  background: #f3f6ff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.sample-grid i {
  position: relative;
}

.sample-grid i::before {
  content: "";
  display: block;
  width: 68%;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.18), rgba(194, 104, 63, 0.16));
}

.schedule-sample p {
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.quiet-note {
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.trust-icon::before,
.trust-icon::after {
  content: "";
  display: block;
  border-radius: 999px;
  background: var(--brand);
}

.trust-icon::before {
  width: 13px;
  height: 13px;
}

.trust-icon::after {
  width: 7px;
  height: 7px;
  margin-left: -3px;
  background: var(--warm);
}

.trust-card h3 {
  margin-bottom: 10px;
}

.trust-card p {
  margin: 0;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.benefit-list article {
  min-width: 0;
  padding: 26px;
  background: var(--surface);
}

.benefit-list span {
  display: block;
  margin-bottom: 18px;
  color: var(--warm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 850;
}

.benefit-list h3 {
  margin-bottom: 12px;
}

.benefit-list p {
  margin: 0;
}

.methodology-section {
  background:
    linear-gradient(90deg, rgba(13, 27, 46, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 27, 46, 0.04) 1px, transparent 1px),
    var(--surface);
  background-size: 44px 44px;
  border-block: 1px solid var(--border);
}

.methodology-grid {
  max-width: 880px;
}

.methodology-grid h2 {
  margin-top: 14px;
}

.methodology-grid h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
}

.methodology-grid p:not(.chip) {
  max-width: 66ch;
  margin: 18px 0 0;
  font-size: 1rem;
}

.about-section {
  max-width: 920px;
}

.about-copy h2 {
  margin-top: 14px;
}

.about-copy p:not(.chip) {
  max-width: 66ch;
  margin: 18px 0 0;
}

.about-copy .btn {
  margin-top: 28px;
}

.cookie-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: min(420px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
}

.cookie-notice p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.cookie-notice a {
  color: var(--brand);
  font-weight: 800;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
  padding-block: 30px 38px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.footer-brand p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-brand p:first-child {
  color: var(--ink);
  font-weight: 800;
}

.footer-brand p + p {
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 2px 10px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 750;
}

.footer-links span {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .product-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .hero-figure {
    max-width: 720px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    padding-inline: 18px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 0 12px;
    padding-block: 10px 8px;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    padding-top: 4px;
  }

  .primary-nav a {
    flex: 0 0 auto;
    padding-inline: 9px;
    font-size: 0.9rem;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    padding-block: 34px 42px;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .text-link {
    width: fit-content;
  }

  .trust-grid,
  .benefit-list,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .benefit-list {
    gap: 1px;
  }

  .product-card,
  .benefit-list article {
    padding: 22px;
  }

  .sample-head {
    flex-direction: column;
    gap: 4px;
  }

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

  .sample-grid span:nth-child(-n + 4) {
    display: none;
  }

  .cookie-notice {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .cookie-notice .btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand span {
    font-size: 1rem;
  }

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

  .section {
    padding-block: 56px;
  }

  .footer-brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

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

  .footer-links a {
    min-height: 46px;
  }
}
