/* Custeva website. Brand tokens mirror the app (lib/app/theme): blue #5386e4,
   ink #343348, canvas #f1f1f7. Loaded after Ignite's core CSS, so it wins. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --blue: #5386e4;
  --blue-strong: #2f63c4;      /* text links and buttons: 5.4:1 on white */
  --blue-soft: #e4ecfb;
  --ink: #343348;
  --muted: #5f5e70;            /* 6.0:1 on canvas */
  --canvas: #f1f1f7;
  --surface: #ffffff;
  --line: #e3e3ec;
  --green: #2f8a4c;
  --amber: #b7791f;
  --shadow: 0 1px 2px rgb(52 51 72 / 6%), 0 8px 24px rgb(52 51 72 / 6%);
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --font: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #7aa3f0;
    --blue-strong: #9dbcf6;
    --blue-soft: #232c40;
    --ink: #ececf3;
    --muted: #a9a8b8;
    --canvas: #17171c;
    --surface: #222229;
    --line: #34343e;
    --green: #6cc58a;
    --amber: #e3b35c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); font-family: var(--font); line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: inherit; }
a { color: var(--blue-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.icon { width: 24px; height: 24px; flex: none; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ig-main-content { display: contents; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* Buttons and badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  background: var(--blue-strong); color: #fff; font-weight: 700; text-decoration: none;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--ink); color: var(--canvas); }
@media (prefers-color-scheme: dark) { .btn { color: #10131a; } .btn:hover { background: #fff; color: #10131a; } }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.badges .store-badge { min-width: 200px; }
@media (max-width: 520px) { .badges { flex-direction: column; align-items: stretch; } .badges-center { align-items: center; } .badges .store-badge { min-width: min(260px, 100%); } }
.badges-center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px;
  border-radius: 14px; background: #111114; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.2rem; line-height: 1.1; transition: transform .15s ease, background-color .15s ease;
}
.store-badge:hover { color: #fff; background: #000; transform: translateY(-1px); }
.store-badge small { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.01em; opacity: 0.9; }
.store-badge .badge-logo { width: 26px; height: 26px; flex: none; }
@media (prefers-color-scheme: dark) { .store-badge { background: #fff; color: #111114; } .store-badge:hover { background: #e9e9f1; color: #111114; } }
.cta-note { color: var(--muted); font-size: 0.95rem; margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--blue-strong); }
.text-link .icon { width: 18px; height: 18px; transition: transform .15s ease; }
.text-link:hover .icon, .guide-card:hover .text-link .icon { transform: translateX(3px); }

/* Header */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--blue-soft); color: var(--ink); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
}

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-strong); font-weight: 700; font-size: 0.9rem; }
.lead { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 36em; }
.hero-shot { position: relative; display: flex; justify-content: center; }
.hero-shot::before { content: ""; position: absolute; inset: 8% 4% 0; border-radius: 40px; background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 70%); filter: blur(30px); }
.hero-shot img { position: relative; width: min(280px, 100%); border-radius: 28px; box-shadow: 0 30px 60px -20px rgb(52 51 72 / 35%); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot img { width: min(260px, 70%); }
}

.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; list-style: none; padding: 18px 0; margin-block: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.trust .icon { width: 20px; height: 20px; color: var(--green); }

/* Sections */
section { padding: clamp(56px, 7vw, 96px) 0; scroll-margin-top: 72px; }
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin-bottom: 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-strong); }
.label-heading { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--blue-strong); }

.steps { background: var(--surface); border-block: 1px solid var(--line); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 32px 0 0; counter-reset: step; }
.step-list p { color: var(--muted); margin: 0; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--blue-strong); color: #fff; font-weight: 800; }
@media (prefers-color-scheme: dark) { .step-num { color: #10131a; } }
@media (max-width: 760px) { .step-list { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: color-mix(in srgb, var(--blue-soft) 60%, var(--surface)); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 700; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.guide-card { display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.guide-card:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.guide-card p { color: var(--muted); flex: 1; }

/* Gallery */
.gallery { background: var(--surface); border-block: 1px solid var(--line); }
.shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px max(20px, (100% - var(--wrap)) / 2) 24px; scrollbar-width: thin; }
.shots figure { flex: 0 0 auto; width: min(260px, 70vw); margin: 0; scroll-snap-align: center; }
.shots img { width: 100%; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 12px; font-weight: 600; font-size: 0.95rem; text-align: center; color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.plan { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.plan-pro { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.plan h3 { margin-bottom: 4px; }
.price { font-size: 1.5rem; font-weight: 800; color: var(--blue-strong); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--green); }
.fine { color: var(--muted); font-size: 0.92rem; margin-top: 20px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* Privacy */
.privacy-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.privacy-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--green) 15%, var(--surface)); color: var(--green); margin-bottom: 16px; }
.disclaimer { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.disclaimer p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .privacy-inner { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; margin-bottom: 24px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; }
details[open] { padding-bottom: 6px; }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.4rem; font-weight: 500; color: var(--blue-strong); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

.final-cta { text-align: center; }
.final-cta img { border-radius: 18px; margin-bottom: 16px; }

/* Content pages */
.page-head { padding: clamp(40px, 6vw, 72px) 0 8px; }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: 0.92rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.article { padding-top: 16px; padding-bottom: 24px; }
.article h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.4em; }
.article li::marker { color: var(--blue); }
.article table { margin: 24px 0; font-size: 0.95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.article thead th:first-child { border-top-left-radius: var(--radius); }
@media (max-width: 640px) { .article table { display: block; overflow-x: auto; } }
.note { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--blue-soft); font-size: 0.95rem; }
.sources { font-size: 0.92rem; color: var(--muted); }

.page-foot { padding-bottom: 72px; }
.callout { display: flex; gap: 20px; align-items: flex-start; padding: 28px; margin: 40px 0; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--blue); }
.callout img { border-radius: 14px; flex: none; }
.callout h2 { font-size: 1.35rem; margin-top: 0; }
.callout p { color: var(--muted); }
.callout .badges { margin: 16px 0 0; }
@media (max-width: 600px) { .callout { flex-direction: column; } }
.related ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.related a { display: block; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.related a:hover { border-color: var(--blue); }
.related strong { display: block; }
.related span { color: var(--muted); font-size: 0.95rem; }
.related h2 { font-size: 1.25rem; }
.updated { color: var(--muted); font-size: 0.9rem; margin-top: 32px; }

/* Calculator */
.calc { display: grid; gap: 16px; padding: 28px; margin: 28px 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.calc label { display: grid; align-content: start; gap: 6px; font-weight: 700; font-size: 0.95rem; }
.calc .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.calc input, .calc select { height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--canvas); color: var(--ink); font: inherit; font-weight: 500; }
.calc input:focus-visible, .calc select:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.calc-result { display: grid; gap: 18px; padding: 28px; margin-bottom: 32px; border-radius: var(--radius); background: var(--blue-soft); }
.calc-result[hidden] { display: none; }
.result-headline { font-size: 1.3rem; font-weight: 800; margin: 0; }
.result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.result-stats div { padding: 16px; border-radius: var(--radius-sm); background: var(--surface); }
.result-stats dt { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.result-stats dd { margin: 4px 0 0; font-size: 1.1rem; font-weight: 800; }
.schedule { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.schedule li.past { opacity: 0.55; text-decoration: line-through; }
.schedule span:last-child { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-ghost { background: transparent; color: var(--blue-strong); border: 2px solid var(--blue-strong); cursor: pointer; font: inherit; font-weight: 700; }
.btn-ghost:hover { background: var(--blue-strong); color: #fff; }
.status-overdue { color: #c0392b; }
@media (prefers-color-scheme: dark) { .status-overdue { color: #ff8a7a; } }

/* Checklist */
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.checklist li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); margin: 0 !important; }
.checklist input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--blue-strong); }
.checklist .lead-time { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.checklist small { display: block; color: var(--muted); font-size: 0.9rem; }
.print-btn { margin: 8px 0 16px; }
@media (max-width: 600px) {
  .checklist li { grid-template-columns: auto 1fr; }
  .checklist .lead-time { grid-column: 2; white-space: normal; }
}

/* Footer */
.footer { padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--surface); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 22em; }
.footer-label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer li a { display: inline-block; padding: 6px 0; }
.footer a:not(.store-badge) { color: var(--ink); text-decoration: none; }
.footer a:not(.store-badge):hover, .footer a[aria-current] { color: var(--blue-strong); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-bottom p { margin: 0; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.langs a[aria-current] { font-weight: 700; color: var(--blue-strong); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { gap: 20px 16px; } .footer-grid > nav:first-of-type { grid-column: 1 / -1; } }

/* Print (the checklist page is meant to be printed) */
@media print {
  :root { --canvas: #fff; --surface: #fff; --ink: #000; --muted: #333; --line: #bbb; }
  .nav, .footer, .callout, .related, .print-btn, .skip, .breadcrumbs, .badges { display: none !important; }
  section, .page-head { padding: 0; }
  .checklist li { break-inside: avoid; border-color: #bbb; }
  a { color: inherit; text-decoration: none; }
}
