/* ═══════════════════════════════════════════════════════════════
   FotoSvečias – shared design system
   Cream · warm white · champagne · soft gold · dark brown · rose gold
   Signature: printed-invitation "paper" with a hairline double gold frame
   ═══════════════════════════════════════════════════════════════ */
/* Self-hosted fonts (OFL) – all cover Lithuanian letters */
@font-face { font-family: 'Gloock'; src: url('/static/fonts/Gloock-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Big Shoulders'; src: url('/static/fonts/BigShoulders-Bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('/static/fonts/InstrumentSerif-Italic.woff') format('woff'); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/InstrumentSans-Regular.woff') format('woff'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/InstrumentSans-Bold.woff') format('woff'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/static/fonts/InstrumentSans-Italic.woff') format('woff'); font-style: italic; font-display: swap; }

:root {
  /* Brand palette – the only colours used on the site:
     #591e23 burgundy · #f2ede9 cream · #261714 espresso · #d9b2a9 blush · #bf7b75 rose */
  --burgundy: #591e23;
  --cream: #f2ede9;
  --ink: #261714;
  --blush: #d9b2a9;
  --rose: #bf7b75;

  /* Semantic aliases (tints are mixes of the brand colours only) */
  --warm-white: #f2ede9;
  --champagne: #ecded9;          /* cream 75% + blush 25% */
  --gold: #bf7b75;               /* accent */
  --gold-dark: #591e23;          /* accent text */
  --brown: #261714;
  --brown-mid: #4f423f;          /* ink 80% + cream 20% */
  --brown-soft: #786d69;
  --espresso: #591e23;           /* dark sections */
  --espresso-2: #511d21;
  --rose-light: #d9b2a9;
  --muted: #786d69;              /* ink 62% + cream 38% – AA on cream */
  --border: rgba(38, 23, 20, .12);
  --border-dark: rgba(38, 23, 20, .22);
  --error: #591e23;
  --error-bg: #ecded9;
  --success: #261714;
  --success-bg: #e6d0c9;

  --font-serif: 'Gloock', Georgia, 'Times New Roman', serif;
  --font-accent: 'Instrument Serif', Georgia, serif;
  --font-condensed: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(38, 23, 20, .06);
  --shadow-md: 0 6px 18px rgba(38, 23, 20, .08);
  --shadow-lg: 0 16px 40px rgba(38, 23, 20, .12);
  --shadow-xl: 0 28px 70px rgba(38, 23, 20, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t: 220ms;
  --max: 1600px;
  --gutter: clamp(20px, 4.2vw, 80px);
  --nav-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--brown); background: var(--cream); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; }
body { font-synthesis-weight: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(199, 163, 154, .3); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }
.lead { font-size: 18px; color: var(--brown-mid); line-height: 1.7; }
.muted { color: var(--muted); }
.italic { font-family: var(--font-accent); font-style: italic; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 24px; height: 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border: 1.5px solid transparent; border-radius: var(--r-full); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; background: none; transition: transform var(--t) var(--ease), background var(--t), border-color var(--t), color var(--t), box-shadow var(--t); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--burgundy); color: var(--cream); }
.btn-primary:hover { background: var(--ink); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--brown); }
.btn-gold:hover { background: #d9b2a9; box-shadow: 0 6px 22px rgba(199, 163, 154, .4); }
.btn-outline { border-color: var(--border-dark); color: var(--brown); }
.btn-outline:hover { border-color: var(--gold); background: rgba(199, 163, 154, .08); }
.btn-ghost { color: var(--brown-mid); }
.btn-ghost:hover { background: var(--champagne); color: var(--brown); }
.btn-danger { background: var(--error-bg); color: var(--error); border-color: #e3cac3; }
.btn-danger:hover { background: var(--error); color: #f2ede9; border-color: var(--error); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn .spinner { width: 16px; height: 16px; }

/* Forms */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.label { font-size: 13px; font-weight: 500; color: var(--brown-mid); }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 16px; background: var(--warm-white); border: 1.5px solid var(--border-dark); border-radius: var(--r-md); font-size: 15px; transition: border-color var(--t), box-shadow var(--t); outline: none; }
.textarea { height: auto; min-height: 132px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.select { appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2391746d' d='M6 8 0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(199, 163, 154, .18); }
.input::placeholder, .textarea::placeholder { color: #aba29e; }
.hint { font-size: 12px; color: var(--muted); }
.form-message { padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; }
.form-message.error { background: var(--error-bg); color: var(--error); }
.form-message.success { background: var(--success-bg); color: var(--success); }
.input-group { position: relative; }
.input-group .input { padding-right: 52px; }
.input-group-btn { position: absolute; right: 6px; top: 6px; height: 36px; width: 38px; display: grid; place-items: center; background: none; border: none; border-radius: 8px; color: var(--muted); }
.input-group-btn:hover { background: var(--champagne); color: var(--brown); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--brown-mid); cursor: pointer; line-height: 1.5; }
.check input { appearance: none; width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; border: 1.5px solid var(--border-dark); border-radius: 6px; background: var(--warm-white); display: grid; place-content: center; transition: background var(--t), border-color var(--t); cursor: pointer; }
.check input::after { content: ''; width: 10px; height: 6px; border-left: 2px solid #f2ede9; border-bottom: 2px solid #f2ede9; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 120ms var(--ease); }
.check input:checked { background: var(--brown); border-color: var(--brown); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; padding: 16px 0; border-bottom: 1px solid var(--border); }
.switch:last-child { border-bottom: none; }
.switch-text strong { display: block; font-size: 14px; font-weight: 500; }
.switch-text span { font-size: 13px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 48px; height: 28px; flex-shrink: 0; background: var(--border-dark); border-radius: var(--r-full); transition: background var(--t); }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #f2ede9; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease); }
.switch input:checked + .switch-track { background: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Surfaces */
.card { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 24px; }
.card-hover { transition: transform var(--t) var(--ease), box-shadow var(--t), border-color var(--t); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-dark); }
.paper { position: relative; background: var(--warm-white); border-radius: var(--r-lg); border: 1px solid var(--gold); box-shadow: var(--shadow-md); }
.paper::before { content: ''; position: absolute; inset: 6px; border: 1px solid rgba(199, 163, 154, .5); border-radius: calc(var(--r-lg) - 6px); pointer-events: none; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-gold { background: rgba(199, 163, 154, .18); color: var(--gold-dark); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-red { background: var(--error-bg); color: var(--error); }
.badge-muted { background: #f1eae6; color: var(--muted); }
.badge-rose { background: var(--rose-light); color: #895853; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px 24px; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-family: var(--font-serif); font-size: 44px; font-weight: 400; line-height: 1.05; margin-top: 8px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.progress { height: 6px; background: #eee4df; border-radius: var(--r-full); overflow: hidden; }
.progress > span { display: block; height: 100%; width: var(--p, 0%); background: var(--gold); border-radius: inherit; transition: width .6s var(--ease); }
.progress.warn > span { background: var(--rose); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-md); font-size: 14px; background: var(--champagne); color: var(--brown-mid); }
.alert.success { background: var(--success-bg); color: var(--success); }
.alert.error { background: var(--error-bg); color: var(--error); }

.divider { height: 1px; background: var(--border); border: 0; margin: 28px 0; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(47, 31, 27, .15); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: #eee4df; border-radius: var(--r-md); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.empty { text-align: center; padding: 72px 24px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--gold); }
.empty h3 { font-size: 26px; color: var(--brown); margin-bottom: 8px; }
.empty p { max-width: 380px; margin: 0 auto 24px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 14px 18px; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--t), border-color var(--t); }
.tab:hover { color: var(--brown); }
.tab[aria-selected="true"] { color: var(--brown); border-bottom-color: var(--gold); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 16px; border: 1.5px solid var(--border-dark); background: transparent; border-radius: var(--r-full); font-size: 13px; font-weight: 500; color: var(--brown-mid); transition: background var(--t), border-color var(--t), color var(--t); }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--warm-white); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f2ede9; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* Public nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t), transform .45s var(--ease); view-transition-name: site-nav; }
.nav.nav-hidden { transform: translateY(-100%); }
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 58px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-link { position: relative; padding: 6px 0; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brown-mid); transition: color var(--t); }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--burgundy); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--burgundy); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; width: 44px; height: 44px; place-items: center; background: none; border: none; color: var(--burgundy); }
.nav-drawer { position: fixed; inset: var(--nav-h) 0 auto; z-index: 99; background: var(--cream); border-bottom: 1px solid var(--border); padding: 8px 24px 24px; display: grid; gap: 0; box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.nav-drawer.open { transform: none; opacity: 1; pointer-events: auto; }
.nav-drawer a:not(.btn) { padding: 14px 4px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.nav-drawer .btn { margin-top: 16px; }
.page-top { padding-top: var(--nav-h); }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 90; background: var(--cream); view-transition-name: app-bar; border-bottom: 1px solid var(--border); }
.appbar-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 32px; }
.appbar-links { display: flex; gap: 4px; flex: 1; }
.appbar-link { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--brown-mid); transition: background var(--t), border-color var(--t), color var(--t); }
.appbar-link:hover, .appbar-link.active { background: var(--champagne); color: var(--brown); }
.appbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--champagne); color: var(--gold-dark); display: grid; place-items: center; font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.app-main { max-width: var(--max); margin: 0 auto; padding: 44px 32px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.page-head h1 { font-size: 44px; }
.page-head p { color: var(--muted); margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.back-link:hover { color: var(--brown); }

/* Footer */
.footer { background: var(--burgundy); color: var(--blush); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer .logo img { height: 92px; }
.footer p { font-size: 14px; margin-top: 16px; max-width: 280px; color: var(--blush); }
.footer h4 { display: flex; align-items: center; gap: 12px; font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); margin-bottom: 16px; }
.footer h4::after { content: ''; flex: 1; height: 1px; background: rgba(242, 237, 233, .25); }
.footer li + li { margin-top: 9px; }
.footer a { font-size: 14px; color: var(--blush); transition: color var(--t); }
.footer a:hover { color: var(--cream); }
.footer-mail { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--cream) !important; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(242, 237, 233, .2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; letter-spacing: .06em; color: var(--blush); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(47, 31, 27, .5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity var(--t); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--warm-white); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: 36px; transform: translateY(14px) scale(.98); transition: transform var(--t) var(--ease); }
.modal.wide { max-width: 640px; }
.modal-overlay.open .modal { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-head h2 { font-size: 30px; }
.modal-close { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: none; border-radius: 10px; color: var(--muted); }
.modal-close:hover { background: var(--champagne); color: var(--brown); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }

/* Toasts, cookie */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 9999; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 360px; padding: 14px 18px; background: var(--brown); color: var(--warm-white); border-radius: var(--r-md); box-shadow: var(--shadow-xl); font-size: 14px; pointer-events: auto; animation: toast-in .3s var(--ease); }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 400; max-width: 400px; padding: 22px 24px; background: var(--warm-white); border: 1px solid var(--border-dark); border-radius: var(--r-lg); box-shadow: var(--shadow-xl); animation: toast-in .4s var(--ease); }
.cookie p { font-size: 13px; color: var(--brown-mid); line-height: 1.6; margin-bottom: 14px; }
.cookie a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }

.js .reveal { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .55s var(--ease-out), transform .65s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Bar chart */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 8px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.bar { width: 100%; max-width: 22px; height: var(--h, 2%); background: var(--gold); border-radius: 4px 4px 2px 2px; transition: height .6s var(--ease), background var(--t); }
.bar-col:hover .bar { background: var(--gold-dark); }
.bar-label { font-size: 10px; color: var(--muted); height: 12px; white-space: nowrap; }

/* Auth shell shared by login / register / forgot / reset */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; background: var(--brown); color: #e8d5cf; overflow: hidden; }
.auth-aside .logo { color: var(--warm-white); }
.auth-aside::after { content: ''; position: absolute; inset: 28px; border: 1px solid rgba(199, 163, 154, .35); border-radius: var(--r-xl); pointer-events: none; }
.auth-quote { position: relative; z-index: 1; max-width: 420px; }
.auth-quote h2 { font-size: 48px; color: var(--warm-white); line-height: 1.08; }
.auth-quote h2 em { color: var(--gold); }
.auth-quote p { margin-top: 18px; color: #c7a39a; }
.auth-foot { position: relative; z-index: 1; font-size: 12px; color: #a3847c; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--warm-white); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 42px; margin-bottom: 8px; }
.auth-card > p.muted { margin-bottom: 32px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-links a, .auth-alt a { color: var(--gold-dark); font-weight: 500; }
.auth-alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; font-size: 14px; color: var(--muted); }
.auth-mobile-logo { display: none; margin-bottom: 32px; }
@media (max-width: 880px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: inline-block; }
  .auth-main { align-items: flex-start; padding-top: 48px; }
}

@media (max-width: 960px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --nav-h: 80px; }
  .footer .footer-claim { font-size: 38px; }
  .appbar-inner { padding: 0 20px; }
  .app-main { padding: 28px 20px 72px; }
  .section { padding: 72px 0; }
  .field-row { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 34px; }
  .modal { padding: 26px; border-radius: var(--r-lg); }
  .appbar-inner { gap: 12px; }
  .appbar-user .who { display: none; }
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-pad { padding: 22px; }
  .card-head { padding: 18px 22px; }
  .stat-value { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Legal documents (privacy / terms / cookies) */
.legal-hero { padding: calc(var(--nav-h) + 72px) 0 48px; background: var(--warm-white); border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: 56px; margin: 14px 0 10px; }
.legal-hero p { color: var(--muted); }
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 56px var(--gutter) 96px; max-width: 1240px; margin: 0 auto; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 2px; font-size: 13px; }
.legal-toc a { padding: 7px 12px; border-radius: 8px; color: var(--muted); border-left: 2px solid transparent; }
.legal-toc a:hover { color: var(--brown); background: var(--champagne); }
.legal { max-width: 720px; }
.legal h2 { font-size: 30px; margin: 48px 0 14px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 21px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--brown-mid); font-size: 15px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.legal-company { padding: 20px 24px; margin-top: 16px; }
.legal-company p { margin: 0; }
@media (max-width: 880px) { .legal-wrap { grid-template-columns: 1fr; gap: 24px; padding: 40px 20px 80px; } .legal-toc { position: static; display: none; } .legal-hero h1 { font-size: 40px; } }

/* Error pages */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(800px 500px at 50% 0%, var(--champagne), var(--cream) 70%); }
.error-card { max-width: 520px; padding: 56px 40px; text-align: center; }
.error-code { font-family: var(--font-serif); font-style: italic; font-size: 120px; line-height: 1; color: var(--gold); }
.error-card h1 { font-size: 38px; margin: 12px 0 12px; }
.error-card .row { justify-content: center; margin-top: 32px; }

/* ═══ Marketing components (public pages) – editorial, dense ═══ */
.display { font-family: var(--font-serif); font-size: clamp(44px, 6vw, 84px); line-height: 1; text-transform: uppercase; }
.display em, .h1 em, .h2 em, .h3 em { font-family: var(--font-accent); font-style: italic; text-transform: none; color: var(--rose); letter-spacing: 0; }
.h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; }
.h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.06; }
.h3 { font-size: 26px; line-height: 1.15; }
.mega { font-family: var(--font-condensed); font-weight: 700; text-transform: uppercase; line-height: .82; letter-spacing: -.01em; color: var(--burgundy); }
.script { font-family: var(--font-accent); font-style: italic; color: var(--rose); }
.sub { font-size: 16.5px; line-height: 1.65; color: var(--brown-mid); max-width: 560px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 14px; }
.kicker::before { content: '✦'; font-size: 12px; color: var(--rose); letter-spacing: 0; }
.rule-label { display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); margin-bottom: 28px; }
.rule-label::before, .rule-label::after { content: ''; flex: 1; height: 1px; background: var(--border-dark); }
.rule-label span::before, .rule-label span::after { content: '✦'; color: var(--rose); margin: 0 12px; letter-spacing: 0; }
.rule-label.left::before { display: none; }
.rule-label.left span::before { display: none; }
.sec { padding: 72px 0; }
.sec-tight { padding: 48px 0; }
.sec + .sec { border-top: 1px solid var(--border); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head .sub { margin-top: 10px; }
.sec-head.centered { flex-direction: column; align-items: center; text-align: center; }
.sec-head.centered .sub { margin-left: auto; margin-right: auto; }
.on-paper { background: var(--champagne); }
.on-dark { background: var(--burgundy); color: var(--blush); }
.on-dark .h2, .on-dark h3 { color: var(--cream); }
.on-dark .sub, .on-dark p { color: var(--blush); }
.on-dark .kicker { color: var(--cream); }
.on-dark .kicker::before { color: var(--blush); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-arrow .icon { transition: transform var(--t) var(--ease); }
.btn-arrow:hover .icon { transform: translateX(3px); }
.btn-light { background: var(--cream); color: var(--burgundy); }
.btn-light:hover { background: var(--blush); }
.btn-ghost-light { border-color: rgba(242, 237, 233, .4); color: var(--cream); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(242, 237, 233, .08); }
.btn-outline { border-color: var(--burgundy); color: var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: var(--cream); border-color: var(--burgundy); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--burgundy); }
.link-arrow .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background var(--t), color var(--t), transform var(--t) var(--ease); }
.link-arrow:hover .icon { background: var(--burgundy); color: var(--cream); transform: translateX(3px); }
.footnote { font-size: 12.5px; color: var(--muted); }
.icon-circle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rose); color: var(--cream); flex-shrink: 0; }
.icon-circle.soft { background: var(--champagne); color: var(--burgundy); border: 1px solid var(--border); }

/* Sub-page hero */
.page-hero { position: relative; padding: calc(var(--nav-h) + 36px) 0 44px; border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::after { content: attr(data-mega); position: absolute; right: -10px; bottom: -28px; font-family: var(--font-condensed); font-weight: 700; font-size: clamp(110px, 16vw, 230px); line-height: .8; text-transform: uppercase; color: var(--burgundy); opacity: .045; pointer-events: none; white-space: nowrap; }
.page-hero .h1 { max-width: 880px; margin: 14px 0 16px; text-transform: uppercase; }
.page-hero .sub { position: relative; z-index: 1; }
.page-hero .cta-row { margin-top: 26px; position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.crumbs a:hover { color: var(--burgundy); }
.crumbs span[aria-hidden] { color: var(--rose); }

/* Outlined cards (portfolio style) */
.feat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--cream); border: 1px solid var(--border-dark); transition: border-color var(--t), transform .35s var(--ease), box-shadow .35s var(--ease); }
.feat:hover { border-color: var(--burgundy); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat h3 { font-size: 22px; line-height: 1.15; text-transform: uppercase; color: var(--ink); }
.feat p { color: var(--brown-mid); font-size: 14px; }
.feat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--rose); color: var(--cream); margin-bottom: 6px; }
.feat-icon .icon { width: 21px; height: 21px; }
.feat-tag { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Work-style product cards */
.work { display: flex; flex-direction: column; border: 1px solid var(--border-dark); background: var(--cream); transition: border-color var(--t), transform .35s var(--ease), box-shadow .35s var(--ease); }
.work:hover { border-color: var(--burgundy); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work-visual { position: relative; aspect-ratio: 16 / 10; margin: 10px 10px 0; overflow: hidden; background: var(--blush); }
.work-body { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: end; padding: 16px 18px 18px; }
.work-tag { grid-column: 1 / -1; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); }
.work-body h3 { font-size: 24px; text-transform: uppercase; }
.work-body p { font-size: 13.5px; color: var(--brown-mid); }
.work-go { grid-row: 2 / 4; grid-column: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--burgundy); color: var(--burgundy); transition: background var(--t), color var(--t); }
.work:hover .work-go { background: var(--burgundy); color: var(--cream); }

/* Process list (numbers = real sequence) */
.process { display: grid; gap: 18px; counter-reset: pr; }
.process li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; }
.process h3 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-top: 4px; }
.process p { font-size: 14px; color: var(--brown-mid); margin-top: 2px; }
.process .icon-circle { font-family: var(--font-serif); font-size: 18px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; }
.duo > * { padding: 0 44px; }
.duo > *:first-child { padding-left: 0; border-right: 1px solid var(--border-dark); }
.duo > *:last-child { padding-right: 0; }
.services { display: grid; grid-template-columns: 1fr 1fr; }
.services li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.services li:nth-child(odd) { padding-right: 18px; }
.services li:nth-child(even) { padding-left: 18px; }
.services h3 { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.services p { font-size: 13px; color: var(--brown-mid); margin-top: 2px; }

/* Steps (sub-pages) */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step3 { position: relative; padding: 26px 24px; border: 1px solid var(--border-dark); background: var(--cream); }
.step3-n { font-family: var(--font-condensed); font-weight: 700; font-size: 64px; line-height: .8; color: var(--rose); }
.step3 h3 { font-size: 22px; text-transform: uppercase; margin: 16px 0 6px; }
.step3 p { color: var(--brown-mid); font-size: 14px; }
.on-dark .step3 { background: transparent; border-color: rgba(242, 237, 233, .25); }
.on-dark .step3 p { color: var(--blush); }
.on-dark .step3-n { color: var(--blush); }

/* Plans */
.plans4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; background: var(--cream); border: 1px solid var(--border-dark); transition: border-color var(--t), transform .35s var(--ease), box-shadow .35s var(--ease); }
.plan-card:hover { border-color: var(--burgundy); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.plan-card.featured { background: var(--burgundy); border-color: var(--burgundy); color: var(--blush); box-shadow: var(--shadow-lg); }
.plan-card.featured h3, .plan-card.featured .plan-amount { color: var(--cream); }
.plan-card.featured .plan-for, .plan-card.featured li, .plan-card.featured .plan-once { color: var(--blush); }
.plan-flag { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: var(--r-full); background: var(--blush); color: var(--burgundy); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.plan-card h3 { font-size: 28px; text-transform: uppercase; }
.plan-for { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-top: 4px; }
.plan-amount { font-family: var(--font-condensed); font-weight: 700; font-size: 72px; line-height: .9; margin: 20px 0 2px; color: var(--burgundy); }
.plan-amount small { font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.plan-once { font-size: 12px; color: var(--muted); margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.plan-card.featured .plan-once { border-color: rgba(242, 237, 233, .2); }
.plan-card ul { display: grid; gap: 9px; margin-bottom: 22px; flex: 1; font-size: 13.5px; color: var(--brown-mid); }
.plan-card li { display: flex; gap: 9px; align-items: flex-start; }
.plan-card li .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--rose); }
.plan-card.featured li .icon { color: var(--blush); }
.plan-card.featured .btn-primary { background: var(--cream); color: var(--burgundy); }
.plan-card.featured .btn-primary:hover { background: var(--blush); }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--cream); border: 1px solid var(--border-dark); }
.compare th, .compare td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--brown-mid); }
.compare thead th { font-family: var(--font-serif); font-size: 20px; font-weight: 400; text-transform: uppercase; color: var(--burgundy); background: var(--champagne); }
.compare tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--rose); font-weight: 700; }
.compare .no { color: var(--border-dark); }
.compare .hl { background: rgba(217, 178, 169, .18); }

/* FAQ */
.faq { border-top: 1px solid var(--border-dark); }
.faq details { border-bottom: 1px solid var(--border-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 0; font-family: var(--font-serif); font-size: 19px; line-height: 1.25; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--burgundy); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23591e23' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat; transition: transform var(--t) var(--ease), background-color var(--t); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blush); }
.faq summary:hover { color: var(--burgundy); }
.faq .faq-a { padding: 0 50px 18px 0; color: var(--brown-mid); font-size: 14.5px; line-height: 1.7; }
.faq .faq-a a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 3px; }
.faq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }

/* Final CTA band (burgundy, like portfolio footer) */
.cta-band { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: center; padding: 44px 48px; background: var(--burgundy); color: var(--blush); }
.cta-band .script { display: block; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.05; color: var(--cream); }
.cta-band .cta-caps { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blush); }
.cta-band p { color: var(--blush); font-size: 15px; }
.cta-band .cta-row { margin-top: 18px; }
.cta-qr { display: flex; align-items: center; gap: 14px; }
.cta-qr .qr-box { width: 92px; height: 92px; padding: 6px; background: var(--cream); display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); }
.cta-qr .qr-box i { background: var(--burgundy); }
.cta-qr .qr-box i.off { background: transparent; }
.cta-qr span { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); max-width: 120px; line-height: 1.6; }

/* Faux photographs – palette tones only */
.photo { position: relative; overflow: hidden; background: var(--ph, linear-gradient(160deg, #d9b2a9, #bf7b75)); }
.photo::before { content: none; }
.photo::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: -32%; height: 70%; border-radius: 50%; background: var(--fg, rgba(89, 30, 35, .55)); }
.ph-1 { --ph: linear-gradient(160deg, #e6d0c9, #bf7b75); --fg: rgba(89, 30, 35, .55); }
.ph-2 { --ph: linear-gradient(160deg, #ecded9, #c7a39a); --sx: 12%; --sy: 10%; --fg: rgba(38, 23, 20, .5); }
.ph-3 { --ph: linear-gradient(160deg, #f2ede9, #d9b2a9); --sx: 40%; --fg: rgba(191, 123, 117, .6); }
.ph-4 { --ph: linear-gradient(160deg, #c7a39a, #591e23); --sx: 60%; --sy: 30%; --fg: rgba(38, 23, 20, .6); }
.ph-5 { --ph: linear-gradient(160deg, #e6d0c9, #c68982); --sx: 20%; --sy: 24%; --fg: rgba(89, 30, 35, .45); }
.ph-6 { --ph: linear-gradient(160deg, #d9b2a9, #895853); --sx: 66%; --sy: 6%; --fg: rgba(38, 23, 20, .5); }

/* Marquee band */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); }
.marquee-item::after { content: '✦'; color: var(--blush); letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Forms on public pages */
.form-card { padding: 34px 32px; background: var(--cream); border: 1px solid var(--border-dark); }
.form-card h2 { font-size: 30px; text-transform: uppercase; margin-bottom: 6px; }
.done-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rose); color: var(--cream); }

.principle-list { display: grid; border-top: 1px solid var(--border-dark); }
.principle-list li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border-dark); }
.principle-list strong { font-family: var(--font-serif); font-size: 19px; font-weight: 400; text-transform: uppercase; line-height: 1.25; }
.principle-list span { color: var(--brown-mid); font-size: 14.5px; }
.principle-list.dark, .principle-list.dark li { border-color: rgba(242, 237, 233, .22); }
.principle-list.dark strong { color: var(--cream); }
.principle-list.dark span { color: var(--blush); }

@media (max-width: 1080px) {
  .plans4, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr 1fr; }
  .cta-band .cta-qr { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid-3, .steps3, .grid-2, .duo, .faq-cols { grid-template-columns: 1fr; }
  .duo > * { padding: 0; border: 0 !important; }
  .duo > * + * { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-dark) !important; }
  .sec { padding: 56px 0; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 26px; gap: 24px; }
}
@media (max-width: 600px) {
  .plans4, .grid-4, .services { grid-template-columns: 1fr; }
  .services li:nth-child(odd), .services li:nth-child(even) { padding-left: 0; padding-right: 0; }
  .faq .faq-a { padding-right: 0; }
  .compare { font-size: 12.5px; }
  .compare th, .compare td { padding: 10px 8px; }
  .form-card { padding: 26px 20px; }
  .principle-list li { grid-template-columns: 1fr; gap: 4px; }
  .logo img { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.appbar .logo img { height: 46px; }
.auth-aside { background: var(--burgundy) !important; }
.auth-aside .logo img { height: 92px; }
.error-card .logo img { height: 72px; margin: 0 auto; }
.error-card .logo { justify-content: center; }

/* Smooth page-to-page transitions (View Transitions API – Chrome/Edge/Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* Compositor-friendly continuous animations */
.marquee-track, .stamp { will-change: transform; }

/* ═══ Preloader (only appears on slow connections) ═══ */
.preloader { position: fixed; inset: 0; z-index: 1000; display: none; place-items: center; background: var(--cream); }
.js .preloader { display: grid; opacity: 0; animation: pl-show .3s ease .35s forwards; }
.is-loaded .preloader { animation: pl-hide .45s var(--ease-out) forwards; pointer-events: none; }
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader img { width: 96px; height: auto; animation: pl-breathe 1.6s ease-in-out infinite; }
.preloader-bar { position: relative; width: 140px; height: 2px; overflow: hidden; background: rgba(89, 30, 35, .15); border-radius: 2px; }
.preloader-bar::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--burgundy); border-radius: 2px; animation: pl-bar 1.1s cubic-bezier(.65, 0, .35, 1) infinite; }
.preloader-text { font-size: 11px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--rose); }
@keyframes pl-show { to { opacity: 1; } }
@keyframes pl-hide { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes pl-breathe { 50% { transform: scale(.96); opacity: .75; } }
@keyframes pl-bar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
/* Fast load: finished before the 350 ms delay → it never shows */
.is-fast .preloader { display: none !important; }
/* Hold entrance animations until the page is ready */
.js:not(.is-loaded) .hero-mega span, .js:not(.is-loaded) .arch, .js:not(.is-loaded) .phone, .js:not(.is-loaded) .ps-grid .photo, .js:not(.is-loaded) .chip { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .preloader img, .preloader-bar::after { animation: none; } }

/* ── Language menu (rendered by FS.langSwitch) ───────────────────────────── */
.lang { position: relative; flex: none; font-family: var(--font-sans); }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px 0 12px; border: 1px solid var(--border-dark); border-radius: var(--r-full); background: transparent; color: var(--ink); font: 700 12px/1 var(--font-sans); letter-spacing: .08em; cursor: pointer; transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.lang-btn:hover, .lang.open .lang-btn { background: var(--champagne); border-color: var(--burgundy); }
.lang-btn .icon { width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.lang.open .lang-btn .icon { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 176px; margin: 0; padding: 6px; list-style: none; background: var(--cream); border: 1px solid var(--border-dark); border-radius: var(--r-md); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t); }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: 14px; text-decoration: none; }
.lang-menu a b { width: 22px; font-size: 11px; letter-spacing: .08em; color: var(--rose); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--champagne); }
.lang-menu a[aria-current] { background: var(--burgundy); color: var(--cream); }
.lang-menu a[aria-current] b { color: var(--blush); }
.lang-auth { position: absolute; top: 20px; right: 24px; }
.auth-main { position: relative; }
.lang-card { position: absolute; top: 14px; right: 14px; }
.lang-card .lang-btn { height: 32px; }
.lang-card .lang-menu { text-align: left; }
.welcome-card { position: relative; }
.appbar-user [data-lang-switch] { display: contents; }
@media (prefers-reduced-motion: reduce) { .lang-menu, .lang-btn .icon { transition: none; } }
.lang-nav .lang-menu { right: auto; left: 0; }
@media (max-width: 520px) {
  .nav-actions .btn-primary { display: none; } /* the hero repeats this call to action; keeps room for logo + language */
}

/* ── Auth pages (login, register, forgot, reset) – photo wall + floating card ── */
.auth-shell { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.auth-aside { justify-content: space-between; gap: 32px; padding: 40px clamp(32px, 4vw, 64px); background: var(--burgundy) !important; color: var(--blush); isolation: isolate; }
.auth-aside::after { content: none; }
.auth-aside::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--burgundy) 18%, rgba(89, 30, 35, .82) 42%, rgba(89, 30, 35, .05) 78%),
              linear-gradient(0deg, var(--burgundy) 12%, rgba(89, 30, 35, .0) 55%),
              linear-gradient(180deg, rgba(89, 30, 35, .7) 0%, rgba(89, 30, 35, 0) 22%); }
.auth-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-aside .logo img { height: 76px; width: auto; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(242, 237, 233, .28); border-radius: var(--r-full); color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background var(--t) var(--ease), border-color var(--t) var(--ease); }
.auth-back .icon { width: 16px; height: 16px; }
.auth-back:hover { background: rgba(242, 237, 233, .1); border-color: var(--blush); }

.auth-wall { position: absolute; z-index: 0; top: -14%; bottom: -14%; left: 38%; right: -10%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transform: rotate(-9deg); }
.wall-col { overflow: hidden; }
.wall-track { display: flex; flex-direction: column; animation: wall-up 46s linear infinite; will-change: transform; }
.wall-col:nth-child(2) .wall-track { animation-duration: 58s; animation-direction: reverse; }
.wall-col:nth-child(3) .wall-track { animation-duration: 40s; }
.wall-track .photo { flex: none; aspect-ratio: 3 / 4; margin-bottom: 16px; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(38, 23, 20, .6); }
.wall-track .photo:nth-child(3n + 2) { aspect-ratio: 4 / 5; }
.wall-track .photo:nth-child(4n + 1) { aspect-ratio: 2 / 3; }
@keyframes wall-up { to { transform: translateY(-50%); } }

.wall-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: var(--r-full); background: var(--cream); color: var(--brown-mid); font-size: 13px; white-space: nowrap; box-shadow: 0 20px 44px -16px rgba(38, 23, 20, .55); animation: chip-float 6s var(--ease) infinite alternate, chip-in .8s .5s var(--ease) both; }
.wall-chip b { color: var(--ink); }
.wall-chip-a { top: 30%; left: 44%; }
.wall-chip-b { top: 55%; right: 9%; padding-left: 16px; font-weight: 600; color: var(--burgundy); animation-delay: -3s, .9s; }
.wall-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: var(--cream); font-size: 12px; font-weight: 700; }
.wall-live { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 4px rgba(191, 123, 117, .25); }
@keyframes chip-float { to { transform: translateY(-10px); } }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px); } }

.auth-stamp { position: absolute; z-index: 3; top: 15%; right: 7%; width: 128px; height: 128px; animation: spin-slow 30s linear infinite; }
.auth-stamp .as-bg { fill: var(--cream); }
.auth-stamp .as-text { fill: var(--burgundy); font-family: var(--font-sans); font-size: 11.5px; font-weight: 700; letter-spacing: 2px; }
.auth-stamp .as-star { fill: var(--rose); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.auth-quote { z-index: 3; max-width: 470px; }
.auth-quote h2 { font-size: clamp(40px, 3.7vw, 62px); line-height: 1.02; color: var(--cream); }
.auth-quote h2 em { font-family: var(--font-accent); font-style: italic; color: var(--blush); }
.auth-quote p { margin-top: 16px; max-width: 400px; color: var(--blush); font-size: 15.5px; line-height: 1.6; }
.auth-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.auth-points li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(217, 178, 169, .4); border-radius: var(--r-full); color: var(--cream); font-size: 12.5px; }
.auth-points li::before { content: '✦'; color: var(--rose); font-size: 10px; }
.auth-foot { z-index: 3; color: rgba(217, 178, 169, .75); }
.auth-foot a { color: inherit; }

.auth-main { padding: 72px 40px 48px; background: radial-gradient(55% 45% at 100% 0%, rgba(217, 178, 169, .45), rgba(217, 178, 169, 0) 70%), radial-gradient(40% 35% at 0% 100%, rgba(191, 123, 117, .16), rgba(191, 123, 117, 0) 70%), var(--cream); }
.auth-card { position: relative; max-width: 460px; padding: 44px 44px 32px; border: 1px solid var(--border); border-radius: 30px; background: var(--cream); box-shadow: 0 40px 90px -40px rgba(38, 23, 20, .35), 0 2px 0 rgba(242, 237, 233, 1) inset; animation: card-in .7s var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.auth-kicker { margin-bottom: 14px; color: var(--rose); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.auth-card h1 { font-size: clamp(36px, 3vw, 48px); line-height: 1.04; }
.auth-card > p.muted { margin-bottom: 28px; }
.auth-card .input { height: 54px; padding-left: 18px; border-radius: 16px; border-color: var(--border-dark); background: var(--cream); font-size: 15px; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.auth-card .input:hover { border-color: var(--rose); }
.auth-card .input:focus { border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(191, 123, 117, .22); outline: none; }
.auth-card .input:-webkit-autofill, .auth-card .input:-webkit-autofill:hover, .auth-card .input:-webkit-autofill:focus { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px var(--champagne) inset; caret-color: var(--ink); }
.auth-card .btn-lg { height: 56px; border-radius: var(--r-full); }
.auth-card .btn-primary { box-shadow: 0 16px 30px -14px rgba(89, 30, 35, .7); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) var(--ease); }
.auth-card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 34px -14px rgba(89, 30, 35, .8); }
.auth-alt { margin-top: 24px; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.auth-secure .icon { width: 14px; height: 14px; color: var(--rose); }

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: flex; min-height: 250px; padding: 22px 22px 64px; }
  .auth-aside .logo img { height: 58px; }
  .auth-back, .auth-quote, .auth-foot, .wall-chip-b { display: none; }
  .auth-wall { left: 30%; }
  .auth-aside::before { background: linear-gradient(90deg, var(--burgundy) 20%, rgba(89, 30, 35, .2) 70%), linear-gradient(0deg, var(--burgundy) 0%, rgba(89, 30, 35, 0) 45%); }
  .wall-chip-a { top: auto; bottom: 78px; left: 22px; }
  .auth-stamp { top: auto; bottom: 82px; right: 18px; width: 92px; height: 92px; }
  .auth-main { margin-top: -44px; padding: 0 16px 40px; background: transparent; position: relative; z-index: 4; }
  .auth-card { padding: 32px 24px 24px; border-radius: 26px; }
  .auth-mobile-logo { display: none !important; }
  .lang-auth { position: fixed; top: 22px; right: 16px; z-index: 50; }
  .lang-auth .lang-btn { background: var(--cream); border-color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .wall-track, .wall-chip, .auth-stamp, .auth-card { animation: none; } }
@media (min-width: 961px) and (max-width: 1280px) { .wall-chip-b { display: none; } .wall-chip-a { top: 33%; left: 30%; } }

/* Readability: small text in rose (#BF7B75) on cream is ~2.8:1 – small labels use burgundy (~10:1); rose stays for icons, stars and large type */
.feat-tag, .work-tag, .plan-for, .preloader-text, .auth-kicker, .lang-menu a b { color: var(--burgundy); }
.on-dark .feat-tag, .on-dark .work-tag { color: var(--blush); }

/* ── Auth pages v2: contained block between the site header and footer ── */
.auth-page .auth-section { padding: calc(var(--nav-h) + 28px) 0 clamp(56px, 7vw, 96px); background: radial-gradient(50% 60% at 100% 0%, rgba(217, 178, 169, .4), rgba(217, 178, 169, 0) 70%), radial-gradient(40% 50% at 0% 100%, rgba(191, 123, 117, .14), rgba(191, 123, 117, 0) 70%), var(--cream); }
.auth-page .auth-shell { min-height: 0; max-width: 1120px; margin: 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 32px; overflow: hidden; background: var(--cream); box-shadow: 0 50px 110px -50px rgba(38, 23, 20, .45); animation: card-in .7s var(--ease-out) both; }
.auth-page .auth-aside { min-height: 640px; padding: 36px 40px; border-radius: 0; }
.auth-page .auth-aside .logo img { height: 64px; }
.auth-page .auth-quote { max-width: 400px; }
.auth-page .auth-quote h2 { font-size: clamp(34px, 3vw, 46px); }
.auth-page .auth-quote p { font-size: 15px; }
.auth-page .auth-wall { left: 32%; }
.auth-page .wall-chip-a { top: 26%; left: 30%; }
.auth-page .wall-chip-b { top: 50%; right: 7%; }
.auth-page .auth-stamp { top: 9%; right: 7%; width: 112px; height: 112px; }
.auth-page .auth-main { display: flex; align-items: center; justify-content: center; margin: 0; padding: 48px clamp(28px, 4vw, 64px); background: radial-gradient(70% 50% at 100% 0%, rgba(217, 178, 169, .28), rgba(217, 178, 169, 0) 70%), var(--cream); }
.auth-page .auth-card { max-width: 400px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none; }
.auth-page .footer { margin-top: 0; }
@media (min-width: 961px) and (max-width: 1180px) { .auth-page .wall-chip-b { display: none; } }
@media (max-width: 960px) {
  .auth-page .auth-section { padding: calc(var(--nav-h) + 8px) 0 48px; }
  .auth-page .auth-shell { grid-template-columns: 1fr; border-radius: 26px; }
  .auth-page .auth-aside { display: flex; min-height: 190px; padding: 22px; }
  .auth-page .auth-aside .logo { display: none; }
  .auth-page .auth-quote, .auth-page .wall-chip-b { display: none; }
  .auth-page .wall-chip-a { top: auto; bottom: 22px; left: 22px; }
  .auth-page .auth-stamp { top: auto; bottom: 18px; right: 18px; width: 88px; height: 88px; }
  .auth-page .auth-aside::before { background: linear-gradient(90deg, var(--burgundy) 10%, rgba(89, 30, 35, .25) 70%); }
  .auth-page .auth-main { padding: 32px 22px 28px; }
  .auth-page .auth-card { max-width: none; }
}
.plan-desc { margin-top: 8px; min-height: 3.2em; font-size: 13.5px; line-height: 1.5; color: var(--brown-mid); }
.plan-card.featured .plan-desc { color: var(--blush); }

/* ══ Depth system: rounded corners + soft layered shadows on every card-like surface ══════════════
   Light comes from above: a lighter top edge (cream→champagne), a tight contact shadow and a wide,
   very soft ambient one. Hover lifts the card a few pixels. Only palette colours are used. */
:root {
  --r-card: 20px;
  --elev-1: 0 1px 1px rgba(38, 23, 20, .04), 0 2px 6px -2px rgba(38, 23, 20, .06), 0 14px 32px -18px rgba(38, 23, 20, .22);
  --elev-2: 0 1px 1px rgba(38, 23, 20, .04), 0 6px 14px -6px rgba(38, 23, 20, .10), 0 30px 60px -28px rgba(38, 23, 20, .34);
  --elev-burgundy: 0 2px 4px rgba(89, 30, 35, .18), 0 18px 40px -16px rgba(89, 30, 35, .55);
  --surface: linear-gradient(180deg, var(--cream) 0%, var(--cream) 55%, var(--champagne) 100%);
}
.card, .feat, .work, .step3, .plan-card, .form-card, .stat, .segment {
  border-radius: var(--r-card);
  border-color: rgba(38, 23, 20, .09);
  background: var(--surface);
  box-shadow: var(--elev-1);
}
.feat, .work, .step3, .plan-card, .card-hover {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color var(--t) var(--ease);
}
.feat:hover, .work:hover, .step3:hover, .plan-card:hover, .card-hover:hover { transform: translateY(-4px); box-shadow: var(--elev-2); border-color: rgba(38, 23, 20, .14); }
.work { overflow: hidden; }
.work-visual { border-radius: 14px; }
.plan-card { padding: 30px 26px 26px; }
.plan-card.featured { background: linear-gradient(180deg, #6a272d 0%, var(--burgundy) 45%, #4c1a1e 100%); box-shadow: var(--elev-burgundy); }
.plan-card.featured:hover { box-shadow: 0 2px 4px rgba(89, 30, 35, .2), 0 34px 60px -22px rgba(89, 30, 35, .65); }
.plan-flag { box-shadow: 0 6px 14px -6px rgba(38, 23, 20, .35); }
.feat-icon, .icon-circle { box-shadow: 0 8px 16px -8px rgba(89, 30, 35, .55); }

/* tables: rounded, clipped, floating */
.table-wrap { border-radius: var(--r-card); box-shadow: var(--elev-1); border: 1px solid rgba(38, 23, 20, .09); background: var(--cream); }
.table-wrap > table, .compare { border: 0; border-radius: 0; }
.card .table-wrap { box-shadow: none; border: 0; border-radius: 0; }
.compare thead th { background: var(--champagne); }
.compare thead th:first-child { border-top-left-radius: var(--r-card); }
.compare thead th:last-child { border-top-right-radius: var(--r-card); }
.compare th.hl, .compare td.hl { background: rgba(217, 178, 169, .22); }

/* bands, forms and inputs */
.cta-band { border-radius: 28px; box-shadow: var(--elev-burgundy); background: linear-gradient(135deg, #6a272d 0%, var(--burgundy) 55%, #4c1a1e 100%); }
.input, .select, .textarea { border-radius: 12px; box-shadow: 0 1px 2px rgba(38, 23, 20, .05) inset; }
.btn { will-change: transform; }
.btn-primary { box-shadow: 0 1px 0 rgba(242, 237, 233, .18) inset, 0 10px 22px -12px rgba(89, 30, 35, .75); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(242, 237, 233, .18) inset, 0 16px 28px -12px rgba(89, 30, 35, .8); }
.btn-outline { background: var(--cream); box-shadow: 0 6px 16px -12px rgba(38, 23, 20, .35); }
.btn-outline:hover { transform: translateY(-1px); }
.faq details { transition: background var(--t) var(--ease); border-radius: 0; }
.alert { border-radius: 14px; }
.modal-box, .modal .card, .dropdown, .toast { border-radius: 18px; box-shadow: var(--elev-2); }
@media (prefers-reduced-motion: reduce) { .feat:hover, .work:hover, .step3:hover, .plan-card:hover, .card-hover:hover, .btn:hover { transform: none; } }

/* ── Newsletter invitation (FS.newsletterInvite) ── */
.nl-pop { position: fixed; right: 24px; bottom: 24px; z-index: 400; width: min(420px, calc(100vw - 32px)); padding: 30px 28px 24px; border: 1px solid rgba(38, 23, 20, .1); border-radius: 26px; background: var(--surface); box-shadow: 0 2px 6px rgba(38, 23, 20, .08), 0 40px 80px -30px rgba(38, 23, 20, .5); opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.nl-pop.in { opacity: 1; transform: none; }
.nl-pop { overflow: hidden; }
.nl-pop::before { content: none; }
.nl-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.nl-close:hover { background: var(--champagne); color: var(--ink); }
.nl-badge { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; background: var(--burgundy); color: var(--blush); font-size: 18px; box-shadow: var(--elev-burgundy); }
.nl-kicker { color: var(--burgundy); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.nl-title { margin: 6px 0 8px; font-family: var(--font-serif); font-size: 26px; font-weight: 400; line-height: 1.1; color: var(--ink); }
.nl-text { color: var(--brown-mid); font-size: 14px; line-height: 1.55; }
.nl-form { display: grid; gap: 12px; margin-top: 18px; }
.nl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.nl-row .input { height: 48px; }
.nl-row .btn { height: 48px; }
.nl-consent { font-size: 12.5px; }
.nl-msg { padding: 10px 12px; border-radius: 12px; background: var(--champagne); color: var(--burgundy); font-size: 13.5px; }
.nl-msg.ok { background: var(--burgundy); color: var(--cream); }
@media (max-width: 560px) {
  .nl-pop { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 26px 20px 20px; }
  .nl-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .nl-pop { transition: none; } }

/* ── Newsletter sign-up in the footer (all public pages) ── */
.footer-nl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 52px; padding: 34px 38px; border: 1px solid rgba(242, 237, 233, .16); border-radius: var(--r-card, 24px); background: linear-gradient(135deg, rgba(242, 237, 233, .09), rgba(242, 237, 233, .03)); box-shadow: inset 0 1px 0 rgba(242, 237, 233, .12), 0 30px 60px -36px rgba(0, 0, 0, .55); scroll-margin-top: 110px; }
.footer .footer-nl-kicker { margin: 0; color: var(--blush); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; max-width: none; }
.footer-nl-title { margin: 8px 0 10px; font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.12; color: var(--cream); }
.footer .footer-nl-text { margin: 0; max-width: 440px; color: var(--blush); font-size: 14.5px; line-height: 1.55; }
.footer-nl-form { display: grid; gap: 12px; }
.footer-nl-form .input { background: var(--cream); border-color: transparent; color: var(--ink); }
.footer-nl-form .input:focus { outline: 2px solid var(--blush); outline-offset: 2px; }
.footer-nl-form .check { color: var(--blush); }
.footer-nl-form .check input { border-color: rgba(242, 237, 233, .55); background: transparent; }
.footer-nl-form .check input:checked { background: var(--cream); border-color: var(--cream); }
.footer-nl-form .check input:checked::after { border-color: var(--burgundy); }
.footer .footer-nl-form .check a { font-size: inherit; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.footer-nl-form .nl-msg { margin: 0; max-width: none; background: rgba(242, 237, 233, .12); color: var(--cream); font-size: 13.5px; }
.footer-nl-form .nl-msg.ok { background: var(--cream); color: var(--burgundy); }
@media (max-width: 900px) { .footer-nl { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; } }
@media (max-width: 560px) { .footer-nl-form .nl-row { grid-template-columns: 1fr; } }

/* Cookie consent (shown only when Google Analytics is configured) */
.cookie-consent { max-width: 440px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-actions .btn { width: 100%; justify-content: center; }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
