/* Aleylin launch theme. Brand: Soft Ivory, Deep Aubergine, Royal Purple (main action only),
   Lavender tint, Champagne Gold (logo and hairlines only, never text). */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --ivory: #FFF9F5;
  --aubergine: #26172E;
  --aubergine-soft: #4A3A52;
  --purple: #714997;
  --purple-dark: #5C3A7D;
  --lavender: #CBBBE9;
  --lavender-tint: #F3EEFA;
  --gold: #D1BDA1;
  --white: #FFFFFF;
  --line: #E8DFD6;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(38, 23, 46, .05);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gap: clamp(32px, 6vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ivory); color: var(--aubergine); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aubergine); text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--aubergine); }
:focus-visible { outline: 3px solid var(--aubergine); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1, .display { font-size: clamp(2.35rem, 5.4vw, 4rem); }
.display-sm { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3, .h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 10px 16px; z-index: 100; border-radius: 10px; }
.skip-link:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.shell, .container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.shell.narrow, .container.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.section { padding-block: var(--gap); }
.section-tight { padding-top: 8px; }
.section-tint, .section-ivory { background: var(--lavender-tint); }
.section-final { background: var(--white); border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--aubergine); margin-bottom: .75em; }
.lede { font-size: 1.15rem; color: var(--aubergine); }
.small, .microcopy { font-size: .92rem; color: var(--aubergine-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 245, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 12px; font-size: .85rem; font-weight: 700; border: 0; text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--aubergine); color: var(--ivory); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--aubergine); cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--aubergine); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* Buttons */
.btn, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center; line-height: 1.2; border: 1.5px solid var(--aubergine); color: var(--aubergine); background: transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover, .button:hover { background: var(--aubergine); color: var(--ivory); }
.btn-primary { background: var(--purple); border-color: var(--purple); color: var(--white); font-size: 1.05rem; padding-inline: 34px; }
.btn-primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--white); }
.btn-block { width: 100%; }
.button-ghost, .button-light { border-color: var(--lavender); color: inherit; }
.section-dark .button, .band-dark .button { border-color: var(--lavender); color: var(--ivory); }
.section-dark .button:hover, .band-dark .button:hover { background: var(--lavender); color: var(--aubergine); }
.text-link { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }
.text-link:hover { border-bottom-color: var(--aubergine); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The main action and its disclosure: Manrope, aubergine, legible, never collapsed */
.cta-block { margin-top: 24px; max-width: 560px; }
.center .cta-block { margin-inline: auto; }
.disclosure { font-family: var(--sans); color: var(--aubergine); font-size: 15px; line-height: 1.55; margin: 14px 0 0; }
.disclosure a { color: var(--aubergine); }
.free-line { font-size: 15px; margin-top: 10px; }

/* Hero */
.hero { padding-block: clamp(32px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.facts li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }
.hero-portrait { margin: 0; }
.hero-portrait .portrait { border-radius: 26px; background: var(--lavender-tint); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hero-portrait.lavender .portrait { background: var(--lavender); }
.name-line { font-size: .9rem; margin: 10px 0 0; color: var(--aubergine-soft); }

/* Cards and grids */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.card > :last-child { margin-bottom: 0; }
.card-grid, .grid-2, .partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.editorial-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: start; }
.section-heading { max-width: 760px; margin-bottom: 18px; }
.trust-list, .check-list { list-style: none; padding: 0; }
.trust-list li, .check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.trust-list li::before, .check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--lavender-tint); border: 1.5px solid var(--aubergine); }
.trust-list li::after, .check-list li::after { content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 5px; height: 9px; border: solid var(--aubergine); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.trust-list li { font-size: 1.12rem; }
.plain-list li { margin-bottom: 10px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 10px; }
.step-list { padding: 0; list-style: none; counter-reset: s; }
.step-list > li { counter-increment: s; position: relative; padding-left: 56px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.step-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.step-list h2 { font-size: 1.6rem; }
.step-number { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; }

/* Aubergine band (portal demo) and dark Learn sections */
.band-dark, .section-dark { background: var(--aubergine); color: var(--ivory); }
.band-dark h2, .band-dark h3, .section-dark h2, .section-dark h3 { color: var(--ivory); }
.band-dark .eyebrow, .section-dark .eyebrow { color: var(--lavender); }
.band-dark .lede, .section-dark .lede, .band-dark .small { color: var(--ivory); }
.band-dark a, .section-dark a { color: var(--ivory); }
.section-dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(203, 187, 233, .35); color: var(--ivory); box-shadow: none; }
.demo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 12px; }
.demo-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(203, 187, 233, .4); border-radius: 14px; padding: 16px; font-size: .95rem; }
.demo-card p { margin: 0 0 4px; }
.demo-label { font-weight: 700; color: var(--lavender); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.demo-wide { grid-column: 1 / -1; }
.draft-flag { display: inline-block; background: #FFF4D6; color: var(--aubergine); border: 1px dashed var(--aubergine); border-radius: 10px; padding: 6px 12px; font-size: .88rem; font-weight: 600; }
.draft-inline { background: #FFF4D6; border-radius: 6px; padding: 2px 6px; }

/* About Keyla card */
.keyla-card { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; background: var(--lavender-tint); border: 1px solid var(--lavender); border-radius: 26px; padding: clamp(22px, 4vw, 40px); }
.keyla-note { border-radius: 50%; width: 220px; height: 220px; object-fit: cover; background: var(--lavender); }

/* FAQ */
.faq details, .faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary, .faq-list summary { cursor: pointer; font-weight: 700; padding: 14px 32px 14px 0; position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; font-weight: 400; color: var(--aubergine); }
.faq details[open] summary::after, .faq-list details[open] summary::after { content: "–"; }
.faq-group { font-size: 1.6rem; margin-top: 34px; }
.notice, .notice-box { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 18px 20px; }

/* Bridge */
.state-question { border: 0; padding: 0; margin: 24px 0; }
.state-question legend { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin-bottom: 14px; }
.choice-row { display: flex; gap: 12px; }
.choice-row .btn { min-width: 120px; }
.choice-row .btn[aria-expanded="true"] { background: var(--aubergine); color: var(--ivory); }
.js .bridge-answer { display: none; }
.js .bridge-answer.is-open { display: block; }
.bridge-answer { margin-top: 18px; }

/* Free guide form */
.form-card label { display: block; font-weight: 700; margin: 14px 0 6px; }
.form-card input[type="text"], .form-card input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--aubergine-soft); border-radius: 12px; font: inherit; background: var(--white); color: var(--aubergine); }
.form-card .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .95rem; margin: 16px 0; }
.form-card .consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--purple); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin-top: 10px; font-weight: 600; }
.form-status.is-error { color: #8A1C1C; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--gold); padding-top: 48px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; }
.footer-title { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin: 0 0 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0 0 18px; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-brand img { width: 150px; margin-bottom: 12px; }
.footer-notices { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 22px 32px; font-size: .88rem; color: var(--aubergine-soft); }

@media (max-width: 960px) {
  .hero-grid, .editorial-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 460px; }
  .steps, .three-col { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 12px 16px 20px; gap: 14px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; width: 100%; }
  .site-nav ul a { display: block; padding: 10px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .demo-card { padding: 12px; font-size: .88rem; }
  .keyla-card { grid-template-columns: 1fr; text-align: left; }
  .keyla-note { width: 150px; height: 150px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .btn-primary { width: 100%; }
  .hero-portrait { max-width: 100%; }
  .hero-portrait .portrait { aspect-ratio: 1 / 1; max-height: 360px; object-position: 50% 12%; }
  .steps > li { padding: 18px; }
  .section { padding-block: 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* White note boxes inside dark Learn sections keep dark text. */
.section-dark .notice, .band-dark .notice, .section-dark .notice h3, .band-dark .notice h3, .section-dark .notice a, .band-dark .notice a { color: var(--aubergine); }
.section-dark .notice .button, .band-dark .notice .button { color: var(--aubergine); border-color: var(--aubergine); }
.section-dark .notice .button:hover, .band-dark .notice .button:hover { background: var(--aubergine); color: var(--ivory); }

/* Breathing room for notes under card rows. */
.two-col + .small, .card-grid + .small { margin-top: 16px; }
