/* ============================================================
   DigiLovie — base: tokens, reset, type, buttons, header, footer
   ============================================================ */

:root {
  --cream: #faf5ec;
  --cream-deep: #f2e9da;
  --paper: #fffdf8;
  --blush: #f3d9dc;
  --blush-soft: #fbedef;
  --blush-deep: #a04e5d;
  --lavender: #ded7f0;
  --lavender-soft: #f2eefb;
  --lavender-deep: #655887;
  --sage: #d3e0d2;
  --sage-soft: #eef4ea;
  --sage-deep: #4f6b57;
  --ink: #2d2a26;
  --ink-soft: #5e5850;
  --ink-faint: #6f675d;
  --line: rgba(45, 42, 38, 0.13);
  --line-soft: rgba(45, 42, 38, 0.07);
  --white: #fffdf8;
  --shadow-sm: 0 1px 2px rgba(45, 42, 38, 0.04), 0 6px 18px rgba(45, 42, 38, 0.05);
  --shadow-md: 0 2px 6px rgba(45, 42, 38, 0.04), 0 18px 44px rgba(45, 42, 38, 0.08);
  --shadow-lg: 0 4px 12px rgba(45, 42, 38, 0.05), 0 36px 90px rgba(45, 42, 38, 0.13);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 132px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
#main:focus { outline: none; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2.05rem, 4.1vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 1.7vw, 1.6rem); letter-spacing: -0.014em; line-height: 1.2; }
h4 { font-size: 1.08rem; letter-spacing: -0.008em; line-height: 1.3; }
strong { font-weight: 700; }
::selection { background: var(--lavender); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  padding: 12px 20px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-pill); font-weight: 700; font-size: 0.9rem;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1360px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(52px, 7vw, 88px); }
.section--flush-top { padding-top: 0; }
.bg-paper { background: var(--paper); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-sage-soft { background: var(--sage-soft); }
.bg-lavender-soft { background: var(--lavender-soft); }
.bg-blush-soft { background: var(--blush-soft); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--rose { color: var(--blush-deep); }
.eyebrow--sage { color: var(--sage-deep); }
.eyebrow--lavender { color: var(--lavender-deep); }
.eyebrow--light { color: rgba(255, 253, 248, 0.72); }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.24rem); line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; line-height: 1.6; color: var(--ink-faint); }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.text-rose { color: var(--blush-deep); }
.text-sage { color: var(--sage-deep); }
.text-lavender { color: var(--lavender-deep); }
.balance { text-wrap: balance; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head__copy { max-width: 680px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { max-width: 54ch; margin-bottom: 0; }
.section-head--center { display: block; text-align: center; max-width: 760px; margin-inline: auto; }
.section-head--center p { margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-border); border-radius: var(--radius-pill);
  font-size: 0.92rem; font-weight: 750; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; text-align: center;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45, 42, 38, 0.14); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 17px; height: 17px; flex: none; transition: transform 0.22s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--rose, .btn--primary { --btn-bg: var(--blush-deep); --btn-fg: #fffaf8; --btn-border: var(--blush-deep); }
.btn--rose:hover, .btn--primary:hover { background: #964553; border-color: #964553; }
.btn--sage { --btn-bg: var(--sage-deep); --btn-fg: var(--paper); --btn-border: var(--sage-deep); }
.btn--sage:hover { background: #405846; border-color: #405846; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: rgba(45, 42, 38, 0.28); }
.btn--ghost:hover { --btn-bg: var(--paper); border-color: var(--ink); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-border: var(--paper); }
.btn--light:hover { --btn-bg: var(--blush); border-color: var(--blush); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-border: rgba(255, 253, 248, 0.36); }
.btn--outline-light:hover { --btn-bg: rgba(255, 253, 248, 0.1); border-color: rgba(255, 253, 248, 0.7); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 0.84rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 0.98rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.78; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 800; text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: 11px; }
.link-arrow .icon { width: 15px; height: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row--center { justify-content: center; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(45, 42, 38, 0.3); }
.text-link:hover { text-decoration-color: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--paper); border: 1px solid var(--line);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.chip--blush { background: var(--blush-soft); border-color: rgba(169, 85, 100, 0.2); color: var(--blush-deep); }
.chip--sage { background: var(--sage-soft); border-color: rgba(79, 107, 87, 0.2); color: var(--sage-deep); }
.chip--lavender { background: var(--lavender-soft); border-color: rgba(101, 88, 135, 0.2); color: var(--lavender-deep); }
.chip--dark { background: rgba(255, 253, 248, 0.12); border-color: rgba(255, 253, 248, 0.22); color: var(--paper); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.demo-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: var(--blush); color: #7d3945;
  font-size: 0.7rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase;
}
.demo-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #a95564; box-shadow: 0 0 0 4px rgba(169, 85, 100, 0.14);
}

.icon {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.icon-tile {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 15px; background: var(--paper); border: 1px solid var(--line); color: var(--ink);
}
.icon-tile--blush { background: var(--blush-soft); color: var(--blush-deep); border-color: rgba(169, 85, 100, 0.14); }
.icon-tile--sage { background: var(--sage-soft); color: var(--sage-deep); border-color: rgba(79, 107, 87, 0.14); }
.icon-tile--lavender { background: var(--lavender-soft); color: var(--lavender-deep); border-color: rgba(101, 88, 135, 0.14); }

.announce { background: var(--ink); color: rgba(255, 253, 248, 0.9); font-size: 0.76rem; font-weight: 650; letter-spacing: 0.015em; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding-block: 7px; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: var(--paper); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(255, 253, 248, 0.35); }
.announce a:hover { border-color: var(--paper); }
.announce .icon { width: 13px; height: 13px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 236, 0.88);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 8px 30px rgba(45, 42, 38, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__word { font-family: var(--font-display); font-size: 1.42rem; font-weight: 560; letter-spacing: -0.035em; line-height: 1; }
.brand__word em { font-style: normal; color: var(--blush-deep); }
.brand__tag { display: block; font-family: var(--font-body); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.nav-menu { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(2px, 1.2vw, 12px); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 12px; border: 0; background: none; color: var(--ink-soft);
  font-size: 0.88rem; font-weight: 650; text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav-drop-toggle { cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(255, 253, 248, 0.72); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--blush-deep); }
.nav-link.is-current { color: var(--ink); }
.nav-link .icon { width: 13px; height: 13px; transition: transform 0.2s var(--ease); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-actions .btn { min-height: 44px; padding: 11px 20px; font-size: 0.85rem; }
.nav-demo { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; font-size: 0.85rem; font-weight: 750; text-decoration: none; color: var(--ink); border-radius: var(--radius-pill); }
.nav-demo:hover { background: var(--paper); }
.nav-demo .icon { width: 14px; height: 14px; }
.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, 8px); width: 320px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s; z-index: 20;
}
.dropdown.is-open, .nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown__link { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 14px; text-decoration: none; transition: background 0.2s var(--ease); }
.dropdown__link:hover { background: var(--cream); }
.dropdown__link .icon-tile { width: 38px; height: 38px; border-radius: 12px; }
.dropdown__link .icon-tile .icon { width: 18px; height: 18px; }
.dropdown__title { display: block; font-size: 0.88rem; font-weight: 800; line-height: 1.35; }
.dropdown__desc { display: block; font-size: 0.76rem; color: var(--ink-faint); line-height: 1.45; margin-top: 2px; }
.dropdown__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 12px; border-top: 1px solid var(--line-soft); font-size: 0.78rem; color: var(--ink-soft); }
.dropdown__foot a { font-weight: 800; color: var(--blush-deep); text-decoration: none; }
.dropdown__foot a:hover { text-decoration: underline; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; place-items: center; color: var(--ink); }
.nav-toggle .icon { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-footer { background: #26241f; color: rgba(255, 253, 248, 0.72); padding-top: clamp(56px, 7vw, 86px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr); gap: clamp(36px, 6vw, 80px); padding-bottom: clamp(44px, 6vw, 68px); }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand__word em { color: var(--blush); }
.footer-brand .brand__tag { color: rgba(255, 253, 248, 0.55); }
.footer-brand p { max-width: 36ch; margin-top: 20px; font-size: 0.86rem; line-height: 1.65; color: rgba(255, 253, 248, 0.55); }
.footer-brand .btn-row { margin-top: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-col h3 { font-family: var(--font-body); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 253, 248, 0.55); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: rgba(255, 253, 248, 0.78); text-decoration: none; font-size: 0.85rem; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; }
.footer-col .external { display: inline-flex; align-items: center; gap: 5px; }
.footer-col .external .icon { width: 12px; height: 12px; opacity: 0.65; }
.footer-note {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 26px;
  padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 253, 248, 0.055); border: 1px solid rgba(255, 253, 248, 0.1);
  font-size: 0.75rem; line-height: 1.55; color: rgba(255, 253, 248, 0.55);
}
.footer-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--sage); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px 26px; border-top: 1px solid rgba(255, 253, 248, 0.1);
  font-size: 0.75rem; color: rgba(255, 253, 248, 0.55);
}
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { color: rgba(255, 253, 248, 0.6); text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
.footer-made { display: inline-flex; align-items: center; gap: 6px; }
.footer-made .icon { width: 13px; height: 13px; color: var(--blush); }
