/* Generated by scripts/fetch_fonts.py. SIL Open Font License fonts. */
/* arabic */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-arabic-700.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-latin-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-italic-500-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-500-700.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/dm-sans-latin-400-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-500.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* arabic */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-600.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-600.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Momenti brand tokens: the CSS block of the Official Brand Guidelines, Version 1.0
   (November 2026; docs/brand.md). The one place the palette and the two English
   typefaces are written down. build.sh puts this at the head of the site, app and
   invitation stylesheets; everything Momenti owns reads these. */
:root {
  --momenti-ivory: #F8F1E8;      /* backgrounds */
  --momenti-cherry: #5A1A2C;     /* primary, buttons */
  --momenti-champagne: #D9BCA4;  /* premium accents */
  --momenti-blush: #E8B7B7;      /* soft accents */
  --momenti-espresso: #302827;   /* text */
  --momenti-font-display: "Cormorant Garamond", serif;
  --momenti-font-body: "DM Sans", sans-serif;
}
/* Placeholder motifs. Every colour is a class mapped to a token, so the inline
   SVGs follow the palette. Uploaded images replace the whole <svg>. */
.art { position: relative; pointer-events: none; }
.art > svg, .art > img { width: 100%; height: 100%; }
.art > img { object-fit: cover; }
/* A drawing served as an image keeps its own preserveAspectRatio, exactly as inline. */
.art > img.art__img { object-fit: fill; }
/* lines */
.art .s  { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.art .s2 { fill: none; stroke: var(--art-line); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.art .s3 { fill: none; stroke: var(--accent); stroke-width: .7; stroke-linecap: round; opacity: .55; }
/* flat fills */
.art .f  { fill: var(--accent); }
.art .f2 { fill: var(--art-line); }
.art .i  { fill: var(--art-white); }
.art .d  { fill: var(--art-petal-2); }
.art .d2 { fill: var(--art-petal); }
.art .k  { fill: var(--art-paper); }
.art .g1 { fill: var(--art-leaf-dk); }
.art .g2 { fill: var(--art-leaf); }
.art .g3 { fill: var(--art-leaf-lt); }
.art .b  { fill: var(--art-petal); }
.art .w  { fill: var(--art-deep); }
/* florals: fill plus a gold hairline, which is what makes them read as foil print */
.art .pb { fill: var(--art-petal); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .pr { fill: var(--art-bloom); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .pr2 { fill: var(--art-bloom-2); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .pl { fill: var(--art-leaf-lt); stroke: var(--art-leaf-dk); stroke-width: .4; stroke-linejoin: round; }
.art .pl2 { fill: var(--art-leaf); stroke: var(--art-leaf-dk2); stroke-width: .4; stroke-linejoin: round; }
.art .pw { fill: var(--art-white); stroke: var(--art-line-lo); stroke-width: .4; stroke-linejoin: round; }
.art .halo { fill: var(--art-bloom); opacity: .1; }
.art .dots { stroke-dasharray: 1 7; opacity: .8; }
.art .flame { transform-box: fill-box; transform-origin: 50% 100%; }
.art .st-hi   { stop-color: var(--art-white); }
.art .st-mid  { stop-color: var(--art-paper); }
.art .st-lo   { stop-color: var(--art-paper-2); }
.art .st-glow { stop-color: var(--art-bloom); stop-opacity: .14; }
.art .st-none { stop-color: var(--art-bloom); stop-opacity: 0; }
.art .st-light  { stop-color: var(--art-line-hi); stop-opacity: .85; }
.art .st-light0 { stop-color: var(--art-line-hi); stop-opacity: 0; }

/* ?slots=1 outlines every placeholder and names its role, for briefing artists. */
.show-slots .art--ph { outline: 1px dashed var(--line); outline-offset: -1px; }
.show-slots .art--ph::after {
  content: attr(data-role); position: absolute; inset-block-start: 4px; inset-inline-start: 4px;
  padding: 2px 6px; border-radius: 4px; background: var(--bg); color: var(--accent);
  font: 500 10px/1.2 var(--font-label); letter-spacing: .05em;
}
/* Momenti's own interface: marketing site, sign-in, dashboard shell.
   Tokens first; every component below reads only tokens. One accent (cherry
   berry), one radius system (pills for actions, 16px for surfaces, 10px for
   fields), light only: the brand has no dark mode. */
:root {
  color-scheme: light;
  /* Every colour is a brand token (design/brand.css), white, or a mix of them. */
  --paper: var(--momenti-ivory);
  --paper-2: color-mix(in srgb, var(--momenti-champagne) 22%, var(--momenti-ivory));
  --card: color-mix(in srgb, var(--momenti-ivory) 45%, #fff);
  --ink: var(--momenti-espresso);
  --ink-2: color-mix(in srgb, var(--momenti-espresso) 86%, var(--momenti-ivory));
  --muted: color-mix(in srgb, var(--momenti-espresso) 72%, var(--momenti-ivory));   /* 5.5:1 on ivory */
  --line: color-mix(in srgb, var(--momenti-espresso) 12%, transparent);
  --line-2: color-mix(in srgb, var(--momenti-espresso) 22%, transparent);
  --accent: var(--momenti-cherry);          /* logo, buttons, key details */
  --accent-soft: color-mix(in srgb, var(--momenti-blush) 46%, #fff);
  --accent-ink: var(--momenti-ivory);
  --champagne: var(--momenti-champagne);    /* surfaces and ornament, never text on ivory */
  --blush: var(--momenti-blush);
  /* Status colours, which the guidelines do not cover: success and error only. */
  --ok: #2f6b4f;
  --danger: #a8333f;
  --shadow: 0 1px 2px rgb(48 40 39 / .05), 0 24px 60px -24px rgb(48 40 39 / .22);
  --shadow-lg: 0 40px 100px -30px rgb(48 40 39 / .35);
  --r-surface: 16px;
  --r-field: 10px;
  --wrap: 75rem;              /* rem, so the page grows with the root size on very wide screens */
  --f-display: var(--momenti-font-display);
  --f-body: var(--momenti-font-body);
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.5rem, 1.3rem + .8vw, 1.85rem);   /* Cormorant's x-height is small: one notch up */
  --step-3: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
  --step-4: clamp(3rem, 2rem + 4vw, 5.2rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* Computers get a slightly zoomed-out interface (owner, 2026-11-17): 90 % of the earlier
   sizes. Phones keep 16 px, the size iOS needs in a field to not zoom in on focus. On very
   wide screens the whole interface still grows with the viewport instead of sitting as a
   strip: 14.4 px up to 1600 px wide, about 18 px at 2560, 19.8 px at most. Sizes in this
   file and app.css are rem, so everything follows. */
@media (min-width: 1024px) { html { font-size: 90%; } }
@media (min-width: 1600px) { html { font-size: clamp(90%, .405vw + 7.92px, 123.75%); } }
:root[lang="ar"] {
  --f-display: "Amiri", "IBM Plex Sans Arabic", serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* --- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Lining figures everywhere: the display face's default ones are old-style, so "10" read as "IO".
   On every element and !important because each `font:` shorthand resets the property. */
*, ::before, ::after { font-variant-numeric: lining-nums !important; }
body {
  margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 600; line-height: 1.02; letter-spacing: 0; text-wrap: balance; }
:root[lang="ar"] :is(h1, h2, h3) { line-height: 1.45; font-weight: 700; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 999px; }
.skip:focus { inset-inline-start: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 48.75rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.kicker { display: inline-flex; align-items: center; gap: .45rem; font: 500 .8rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
:root[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; white-space: nowrap;
  min-height: 46px; padding: .7rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: 500 .95rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico--go { transform: translateX(3px); }
[dir="rtl"] .ico--go { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .ico--go { transform: scaleX(-1) translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--card); box-shadow: none; border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { box-shadow: var(--shadow); }
.btn--sm { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }
.btn--lg { min-height: 54px; padding: .85rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--danger); color: #fff; }

/* --- brand --------------------------------------------------------------- */
/* The wordmark is a drawing (templates/site/_brand.html): Cormorant Garamond
   outlines with the sparkle on the i, so Arabic pages need no Latin display font
   for it. --spark reaches into the <use> copy; currentColor is the word. */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--accent); --spark: var(--champagne); }
.brand__word { height: 26px; width: auto; }
.brand--sm .brand__word { height: 21px; }
.brand__mark { width: 30px; height: 30px; }
.stamp { width: 128px; height: 128px; --spark: var(--champagne); flex: none; }
.stamp text { font: 500 9.6px var(--f-body); letter-spacing: .16em; fill: currentColor; }
.stamp--sm { width: 96px; height: 96px; }
@media (prefers-reduced-motion: no-preference) {
  .stamp__ring { animation: spin 48s linear infinite; transform-origin: 50% 50%; }
}
@keyframes spin { to { rotate: 1turn; } }

/* --- top bar --------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 2rem; height: 68px; }
.topnav { display: flex; gap: .3rem; font-size: .93rem; }
.topnav a { text-decoration: none; color: var(--ink-2); padding: .45rem .8rem; border-radius: 999px; transition: background-color .25s, color .25s; }
.topnav a:hover, .topnav a.is-active { color: var(--ink); background: var(--paper-2); }
.topbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: .6rem; }
.topbar__link { font-size: .93rem; text-decoration: none; padding: .45rem .7rem; color: var(--ink-2); }
.topbar__link:hover { color: var(--ink); }
.langsw {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .7rem;
  border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; font: 600 .85rem/1 var(--f-body); color: var(--ink);
}
.langsw:hover { border-color: var(--ink); }
/* One Arabic glyph on English pages: the system font, so no Arabic webfont is fetched for it. */
.langsw[lang="ar"] { font-family: system-ui, sans-serif; font-size: .95rem; }
.langsw { gap: .35rem; }
.langsw .ico { font-size: 1.05rem; color: var(--ink-2); }
/* A menu in the header: Occasions on a wide screen, everything on a narrow one. */
.navdrop { position: relative; }
.navdrop > summary { display: inline-flex; align-items: center; gap: .3rem; padding: .45rem .8rem; border-radius: 999px; list-style: none; cursor: pointer; color: var(--ink-2); transition: background-color .25s, color .25s; }
.navdrop > summary::-webkit-details-marker, .navm > summary::-webkit-details-marker { display: none; }
.navdrop > summary .ico { font-size: .8rem; transition: rotate .25s var(--ease); }
.navdrop[open] > summary .ico { rotate: 180deg; }
.navdrop > summary:hover, .navdrop[open] > summary { color: var(--ink); background: var(--paper-2); }
.navdrop__menu, .navm__menu {
  position: absolute; z-index: 30; top: calc(100% + .6rem); inset-inline-start: 0; min-width: 15rem; padding: .4rem; display: grid; gap: .1rem;
  background: var(--card); border-radius: 14px; box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--ink) 60%, transparent), inset 0 0 0 1px var(--line);
}
.topnav .navdrop__menu a, .navm__menu a:not(.btn) { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.topnav .navdrop__menu a:hover, .navm__menu a:not(.btn):hover { background: var(--paper-2); }
.navdrop__menu .ico, .navm__menu .ico { color: var(--accent); font-size: 1.2rem; }
.navm { display: none; position: relative; }
.navm > summary { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; list-style: none; cursor: pointer; font-size: 1.35rem; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.navm[open] > summary { background: var(--ink); color: var(--paper); box-shadow: none; }
.navm__menu { position: fixed; inset-inline: .75rem; top: 4.6rem; max-height: calc(100dvh - 5.6rem); overflow-y: auto; padding: .6rem; }
.navm__occ { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem; padding: .2rem 0 .4rem; margin-bottom: .3rem; border-bottom: 1px solid var(--line); }
.navm__occ a { font-size: .88rem !important; }
.navm__menu .btn { margin-top: .5rem; }
@media (max-width: 900px) {
  .topnav, .topbar__link, .topbar__cta { display: none; }
  .navm { display: block; }
  .topbar__in { gap: .75rem; }
  .topbar__end { gap: .45rem; }
}
@media (max-width: 380px) { .langsw span { display: none; } .langsw { padding: 0; } }

.flashes { padding-top: 1rem; }
.flash { padding: .85rem 1.1rem; border-radius: var(--r-field); background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }

/* --- hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5.5rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--champagne) 55%, transparent), transparent);
}
[dir="rtl"] .hero::before { inset: -20% auto auto -10%; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; min-height: min(78dvh, 760px); }
.hero__text { display: grid; gap: 1.6rem; justify-items: start; }
.occrow { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; width: 100%; margin-top: .4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.occrow a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 0; font-size: .9rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .25s; }
.occrow a:hover { color: var(--accent); }
.occrow .ico { width: 22px; height: 22px; color: var(--accent); }
.hero h1 { max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.fan { position: absolute; inset: 0; margin: auto; width: 210px; height: 373px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg, var(--paper-2)); }
.fan > :is(svg, img) { width: 100%; height: 100%; object-fit: cover; }
.fan--l { translate: -74% 4%; rotate: -9deg; }
.fan--r { translate: 74% 8%; rotate: 8deg; }
@media (prefers-reduced-motion: no-preference) {
  .fan--l { animation: float 9s ease-in-out infinite; }
  .fan--r { animation: float 11s ease-in-out -3s infinite; }
}
@keyframes float { 50% { transform: translateY(-12px); } }

.phone {
  position: relative; z-index: 2; width: min(100%, 282px); aspect-ratio: 9 / 19.2; border-radius: 46px; padding: 10px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--momenti-espresso) 87%, #fff), color-mix(in srgb, var(--momenti-espresso) 60%, #000) 60%); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgb(255 255 255 / .08);
}
.phone::before { content: ""; position: absolute; top: 21px; left: 50%; translate: -50% 0; width: 84px; height: 23px; border-radius: 999px; background: color-mix(in srgb, var(--momenti-espresso) 12%, #000); z-index: 3; }
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg, var(--paper-2)); isolation: isolate; }
/* The demo lays out at a real phone's width (390px, as site.js assumes) and is
   scaled down to the screen, so it looks like the page a guest sees instead of
   a 262px-wide one. --s is screen width / 390; the default fits the 282px phone. */
.phone__screen iframe {
  position: absolute; top: 0; left: 0; width: 390px; height: calc(100% / var(--s, .6718)); border: 0;
  transform: scale(var(--s, .6718)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
}
.phone__screen iframe.is-ready { opacity: 1; }
.phone__poster { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg, var(--paper-2)); }
.phone__poster > :is(svg, img) { width: 100%; height: 100%; }
.phone__link { position: absolute; inset: 0; z-index: 4; border-radius: 48px; }
.phone__caption {
  position: absolute; z-index: 5; inset-block-end: -3.4rem; inset-inline: 0; display: flex; justify-content: center;
}
.phone__caption a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .88rem; font-weight: 600; white-space: nowrap;
}
.phone__caption .ico { color: var(--accent); }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; }
  .hero__stage { min-height: 560px; margin-top: 1rem; }
  .fan { width: 150px; height: 267px; }
  .fan--l { translate: -70% 4%; }
  .fan--r { translate: 70% 8%; }
}

/* --- bands ------------------------------------------------------------------ */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--first { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.band--tint { background: color-mix(in srgb, var(--blush) 38%, var(--paper)); }
.band__head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 760px; }
.band__head .lead { max-width: 58ch; }

/* --- gallery ------------------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { padding: .5rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.tgrid__empty { grid-column: 1 / -1; padding: 2rem 0; }
.tcard { position: relative; display: grid; gap: 1rem; }
/* .tcard__art also carries .art (for the miniature's colours), and art.css turns
   off the pointer on .art: give it back, or the card cannot be clicked. */
.tcard__art {
  position: relative; display: block; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: var(--r-surface);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); pointer-events: auto;
}
/* The whole card opens the demo: the title's link stretches over it. */
.tcard__link { color: inherit; text-decoration: none; }
.tcard__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--r-surface); }
.tcard__link:focus-visible { outline: none; }
.tcard:has(.tcard__link:focus-visible) .tcard__art { outline: 2px solid var(--accent); outline-offset: 3px; }
.tcard:hover h3 { color: var(--accent); }
.tcard__art > :is(svg, img) { width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.tcard:hover .tcard__art > :is(svg, img) { transform: scale(1.04); }
.tcard__try {
  position: absolute; inset-block-end: 1rem; inset-inline-start: 1rem; display: inline-flex; align-items: center; gap: .45rem;
  /* Inside the miniature the template's own palette applies (swatch_style), so the
     pill takes its colours from that palette too: the site's --card behind the
     template's --ink was dark on dark (or light on white) for half the templates. */
  padding: .55rem .95rem; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; translate: 0 8px; transition: opacity .4s var(--ease), translate .4s var(--ease);
}
.tcard:hover .tcard__try, .tcard:focus-within .tcard__try { opacity: 1; translate: 0 0; }
@media (hover: none) { .tcard__try { opacity: 1; translate: 0 0; } }
.tcard__body { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: baseline; padding-inline: .25rem; }
.tcard__body h3 { font-size: 1.35rem; }
.tcard__occ { font-size: .85rem; color: var(--muted); }
.tcard__body p { grid-column: 1 / -1; color: var(--muted); font-size: .93rem; max-width: 42ch; }
.swatches { display: flex; gap: .3rem; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px var(--line-2); }

/* --- bento ------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 1rem; }
.cell { position: relative; overflow: hidden; display: grid; align-content: start; gap: .6rem; padding: clamp(1.4rem, 2.5vw, 2rem); border-radius: var(--r-surface); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.cell h3 { font-size: var(--step-2); max-width: 18ch; }
.cell p { color: var(--muted); max-width: 36ch; }
.cell .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: .3rem; }
.cell--a { grid-column: span 3; grid-row: span 2; background: var(--accent); color: var(--accent-ink); }
.cell--a p { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.cell--b { grid-column: span 3; }
.cell--c { grid-column: span 2; }
.cell--d { grid-column: span 1; background: var(--champagne); color: var(--ink); align-content: end; }
.cell--d .ico { color: var(--accent); }
.cell--d h3 { font-size: 1.25rem; }
.cell__shots { display: flex; gap: .9rem; margin-top: auto; padding-top: 1.5rem; }
.shot { flex: 1; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cell__media { margin-top: auto; padding-top: 1rem; }
.cell__media img { width: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.langpair { display: flex; gap: .5rem; margin-top: auto; padding-top: 1rem; font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; }
.langpair span { padding: .35rem .9rem; border-radius: 999px; background: var(--paper-2); }
.langpair span:last-child { font-family: system-ui, sans-serif; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--a, .cell--b { grid-column: 1 / -1; grid-row: auto; }
  .cell--c { grid-column: span 1; }
  .cell--d { grid-column: span 1; }
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .cell--c, .cell--d { grid-column: 1 / -1; } }

/* --- steps ------------------------------------------------------------------ */
.how { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.how__head { position: sticky; top: 110px; display: grid; gap: 1rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.5rem; padding-block: 2rem; border-top: 1px solid var(--line-2); }
.step:last-child { border-bottom: 1px solid var(--line-2); }
.step__n { grid-row: span 2; font: 600 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--f-display); color: var(--accent); min-width: 2ch; }
.step__n::after { content: "\2726"; font-size: .32em; vertical-align: super; color: var(--champagne); margin-inline-start: .1em; }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--muted); max-width: 48ch; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .how__head { position: static; } }

/* --- pricing ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .55rem; padding: 2rem; border-radius: var(--r-surface); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.plan--hot { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-lg); }
.plan--hot .plan__term, .plan--hot li { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.plan__badge { justify-self: start; padding: .25rem .7rem; border-radius: 999px; background: var(--champagne); color: var(--ink); font-size: .78rem; font-weight: 600; }
.plan h3 { font-size: 1.4rem; }
.plan__price { display: flex; align-items: baseline; gap: .4rem; }
.plan__price b { font: 600 3.2rem/1 var(--f-display); }
.plan__term { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; margin: .8rem 0 1.4rem; padding: 0; display: grid; gap: .6rem; font-size: .95rem; color: var(--ink-2); }
.plan li { display: flex; gap: .6rem; align-items: start; }
.plan li .ico { color: var(--accent); margin-top: .15em; }
.plan--hot .btn { background: var(--accent-ink); color: var(--accent); }
.plan--hot li .ico { color: var(--champagne); }
.addon { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; padding: 1.1rem 1.4rem; border-radius: var(--r-surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.addon .ico { color: var(--accent); }
.addon b { margin-inline-start: auto; color: var(--ink); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* --- faq ------------------------------------------------------------------------- */
.faqwrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faqwrap__head { display: grid; gap: 1rem; justify-items: start; }
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 1.35rem 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); rotate: 45deg; translate: 0 -3px; transition: rotate .35s var(--ease), translate .35s var(--ease); }
.faq details[open] summary::after { rotate: 225deg; translate: 0 3px; }
.faq details p { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 900px) { .faqwrap { grid-template-columns: 1fr; } }

/* --- closing call ------------------------------------------------------------------ */
.finale { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2.5rem; align-items: center; padding: clamp(2.5rem, 6vw, 5rem); border-radius: calc(var(--r-surface) + 8px); background: var(--accent); color: var(--accent-ink); }
.finale__text { display: grid; gap: 1.5rem; justify-items: start; }
.finale h2 { font-size: var(--step-4); max-width: 16ch; }
.finale .lead { color: color-mix(in srgb, var(--accent-ink) 80%, transparent); }
.finale .btn { background: var(--accent-ink); color: var(--accent); }
@media (max-width: 560px) { .finale { grid-template-columns: 1fr; } .finale .stamp { display: none; } }

/* --- footer ------------------------------------------------------------------------ */
.footer { padding-block: 3rem; }
.footer__in { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .92rem; color: var(--ink-2); }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer__tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
:root[lang="ar"] .footer__tag { letter-spacing: 0; text-transform: none; font-size: .88rem; }
.footer__small { margin-inline-start: auto; color: var(--muted); font-size: .85rem; }

/* --- reveal on scroll (site.js adds .is-in) ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; translate: 0 0; }
}

/* --- forms and auth ----------------------------------------------------------------- */
/* Sign-in, sign-up and password pages (docs/milestones/20-client-area.md). A phone: the
   form alone. From 1024 px: beside it, on the brand's cherry, three real invitation covers
   dealt like printed cards and one line said plainly. All sizes are rem, so the page grows
   with the root size on very wide screens (top of this file). */
.authpage { min-height: calc(100dvh - 68px); display: grid; grid-template-columns: minmax(0, 1fr); }
.authmain { display: grid; place-items: center; padding: clamp(1.25rem, 4vw, 3.5rem) clamp(1rem, 4vw, 3rem); }
/* The form's sheet: paper with a fine inner frame, as on a printed card. */
.paper {
  position: relative; background: var(--card); border-radius: 6px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent), 0 30px 70px -40px color-mix(in srgb, var(--ink) 45%, transparent);
}
.paper::before { content: ""; position: absolute; inset: .55rem; border: 1px solid color-mix(in srgb, var(--champagne) 75%, transparent); border-radius: 3px; pointer-events: none; }
.authcard { width: min(100%, 29rem); display: grid; gap: 1.5rem; padding: clamp(2rem, 1.2rem + 3vw, 3.6rem) clamp(1.6rem, 1rem + 2.6vw, 3.4rem); }
.authcard--wide { width: min(100%, 35rem); }
.authcard h1 { font-size: clamp(2.2rem, 1.8rem + 1.4vw, 3rem); }
.authcard > .muted { margin-top: -.9rem; font-size: 1.05rem; }
.authcard .form { gap: 1.5rem; }
.authcard .btn--block { min-height: 3.5rem; margin-top: .4rem; font-size: 1.05rem; }
.authcard__alt { font-size: 1rem; color: var(--muted); }
.authcard__alt + .authcard__alt { margin-top: -.9rem; }
.authcard__alt a { color: var(--ink); font-weight: 600; text-underline-offset: .2em; }
/* Three covers as printed cards, fanned out and dealt in once on load; one line said plainly. */
.authside { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); --spark: var(--champagne); }
.authside__say { margin: 0; font-family: var(--f-display); font-weight: 500; text-wrap: balance; }
.deal { position: relative; aspect-ratio: 6 / 5; }
.deal__card {
  position: absolute; inset-block-start: 18%; inset-inline-start: 22%; width: 56%; margin: 0; padding: .5rem .5rem 0; border-radius: 4px;
  background: var(--paper); color: var(--ink); box-shadow: 0 26px 50px -26px color-mix(in srgb, #000 75%, transparent);
  transform: translate(var(--x), var(--y)) rotate(var(--r)); animation: deal .9s var(--ease) both; animation-delay: var(--d);
}
.deal__card img { display: block; width: 100%; height: auto; border-radius: 2px; }
.deal__card figcaption { padding: .45rem .2rem .5rem; font: 500 1.02rem/1.2 var(--f-display); text-align: center; }
.deal__card--1 { --x: -38%; --y: -4%; --r: -11deg; --d: .1s; }
.deal__card--2 { --x: 38%; --y: -14%; --r: 9deg; --d: .25s; }
.deal__card--3 { --x: 2%; --y: 22%; --r: -2deg; --d: .4s; z-index: 1; }
[dir="rtl"] .deal__card { transform: translate(calc(var(--x) * -1), var(--y)) rotate(calc(var(--r) * -1)); }
/* A phone: the panel is a band above the form, and the form's sheet rests on its edge. */
@media (max-width: 1023px) {
  .authside { display: grid; justify-items: center; gap: .4rem; padding: 1.25rem 1.25rem 4.6rem; text-align: center; }
  .authside__stamp { display: none; }
  .deal { width: min(14rem, 60vw); }
  .deal__card { padding: .3rem .3rem 0; }
  .deal__card figcaption { padding: .25rem .1rem .3rem; font-size: .72rem; }
  .authside__say { max-width: 18ch; font-size: clamp(1.45rem, 1.1rem + 2vw, 2rem); line-height: 1.15; }
  :root[lang="ar"] .authside__say { line-height: 1.5; }
  .authpage { align-content: start; }
  .authmain { margin-top: -3.4rem; padding-top: 0; place-items: start center; position: relative; }
}
/* A short phone: the line alone, so the button stays on screen. */
@media (max-width: 1023px) and (max-height: 720px) { .deal { display: none; } .authside { padding-top: 1.5rem; } }
@media (min-width: 1024px) {
  .authpage { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); }
  .authside {
    position: sticky; top: 68px; align-self: start; height: calc(100dvh - 68px);
    display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vh, 3rem); padding: clamp(2rem, 4.5vw, 5.5rem);
  }
  .authside__say { max-width: 16ch; font-size: clamp(2rem, 1.1rem + 2.2vw, 3.6rem); line-height: 1.08; }
  :root[lang="ar"] .authside__say { line-height: 1.5; max-width: 14ch; }
  .authside__stamp { position: absolute; inset-block-start: clamp(1.25rem, 3vw, 2.5rem); inset-inline-end: clamp(1.25rem, 3vw, 2.5rem); width: 5.5rem; height: 5.5rem; opacity: .8; }
  .deal { align-self: center; justify-self: center; width: min(100%, 31rem, 62vh); }
}
@keyframes deal { from { opacity: 0; transform: translate(0, 40%) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .deal__card { animation: none; } }
@media (max-width: 420px) { .authcard { padding: 2rem 1.35rem; } }

/* Stationery fields: a ruled line and a label that lifts. Shared with the profile page. */
.rule { position: relative; display: block; }
.rule input, .rulegroup select, .phonefield input, .ccpick__btn {
  width: 100%; min-height: 3.5rem; padding: 1.45rem 0 .4rem; border: 0; border-bottom: 1.5px solid var(--line-2); border-radius: 0;
  background: none; color: var(--ink); font: inherit; font-size: 1.08rem;
}
.rule > span { position: absolute; inset-inline-start: 0; top: 1.3rem; color: var(--muted); font-size: 1.04rem; line-height: 1.2; pointer-events: none; transition: translate .2s var(--ease), font-size .2s var(--ease), color .2s; }
.rule input:focus + span, .rule input:not(:placeholder-shown) + span, .rule input:autofill + span { translate: 0 -1.15rem; font-size: .82rem; }
.rule input:focus + span { color: var(--accent); }
.rule input:focus, .rulegroup select:focus, .phonefield input:focus, .ccpick__btn:focus-visible { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1.5px 0 var(--accent); }
.rule input:autofill { -webkit-box-shadow: 0 0 0 100px var(--card) inset; -webkit-text-fill-color: var(--ink); }
.rulewrap { position: relative; }
.rule--pass input { padding-inline-end: 3rem; }
.rule__eye { position: absolute; inset-inline-end: 0; top: .7rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.rule__eye:hover, .rule__eye:focus-visible { color: var(--accent); background: var(--accent-soft); outline: none; }
.rule__eye-off, .rule__eye[aria-pressed="true"] .rule__eye-on { display: none; }
.rule__eye[aria-pressed="true"] .rule__eye-off { display: block; }
.rule__hint { margin: .45rem 0 0; font-size: .86rem; color: var(--muted); }
.rulegroup { min-width: 0; margin: 0; padding: 0; border: 0; }
.rulegroup legend { padding: 0; font-size: .82rem; color: var(--muted); }
.rulegroup select { padding-block: .9rem .5rem; cursor: pointer; }
.dob { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 1rem; }
/* Country, then the number: always left to right, code first, in both languages. */
.phonefield { position: relative; display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 1rem; }
.phonefield select, .phonefield input, .ccpick__btn { padding-block: .9rem .5rem; }
/* The picker site.js builds from the plain list: a flag and the code; a searchable list. */
.ccpick__btn { display: flex; align-items: center; gap: .55rem; cursor: pointer; text-align: start; }
.ccpick__btn b { font-weight: 500; }
.ccpick__btn .ico { margin-inline-start: auto; color: var(--muted); font-size: .9rem; }
.flag { flex: none; width: 1.6rem; height: 1.2rem; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.ccpick__pop {
  position: absolute; z-index: 30; top: calc(100% + .5rem); left: 0; width: min(23rem, calc(100vw - 3rem)); max-height: 21rem;
  display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; background: var(--card); border-radius: 12px;
  box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--ink) 60%, transparent), inset 0 0 0 1px var(--line);
}
.ccpick__pop[hidden] { display: none; }
.ccpick__search { width: 100%; min-height: 3rem; padding: .7rem 1rem; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; }
.ccpick__search:focus { outline: none; border-bottom-color: var(--accent); }
.ccpick__list { margin: 0; padding: .35rem; list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.ccpick__opt { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 8px; cursor: pointer; }
.ccpick__opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccpick__opt small { color: var(--muted); font-size: .9rem; font-variant-numeric: lining-nums tabular-nums !important; }
.ccpick__opt.is-active, .ccpick__opt:hover { background: var(--paper-2); }
.ccpick__opt[aria-selected="true"] { color: var(--accent); font-weight: 600; }
@media (max-width: 380px) { .phonefield { grid-template-columns: minmax(0, 7.2rem) minmax(0, 1fr); gap: .7rem; } .dob { gap: .6rem; } }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.fieldpair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }
/* Pairs whose labels or contents are long go one per row on a phone; names stay side by side longer. */
@media (max-width: 560px) { .fieldpair--stack { grid-template-columns: 1fr; } }
@media (max-width: 360px) { .fieldpair { grid-template-columns: 1fr; } }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field :is(input, select, textarea), .input {
  width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1px solid var(--line-2); border-radius: var(--r-field);
  background: var(--paper); color: var(--ink); font: inherit;
}
.field :is(input, select, textarea):focus, .input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.card { background: var(--card); border-radius: var(--r-surface); box-shadow: inset 0 0 0 1px var(--line); padding: 1.5rem; }

/* --- "Design one with AI": the way in, on the gallery and the builder's template step --- */
.aicard {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  border-radius: var(--r-surface); text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, color-mix(in srgb, var(--champagne) 45%, var(--card)), var(--card) 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.aicard:hover { box-shadow: inset 0 0 0 2px var(--accent); transform: translateY(-1px); }
.aicard b { display: block; font-size: 1.05rem; }
.aicard .muted { display: block; font-size: .9rem; }
.aicard__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.aicard__ico .ico { width: 22px; height: 22px; }
.aicard > .ico--go { color: var(--accent); }
[dir="rtl"] .aicard > .ico--go { transform: scaleX(-1); }
.aicard--site { margin-top: 1.4rem; max-width: 560px; }

/* --- the home page, to the owner's mockup (docs/milestones/21-home-preview.md) ----------
   The tagline in italic display type, the live phone on a pedestal under an arch with a
   ribbon and blossoms (drawn), glass cards, the occasion bar, a waved cherry band of four
   steps, a value strip. Every colour is a brand token or a mix of them. */
.spark { flex: none; width: 1em; height: 1em; fill: currentColor; }
.eyebrow2 { margin: 0; display: flex; align-items: center; gap: .9rem; font: 500 .8rem/1 var(--f-body); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.eyebrow2 .spark { font-size: 1.15rem; }
.eyebrow2 i { width: 4rem; height: 1px; background: currentColor; opacity: .5; }
:root[lang="ar"] .eyebrow2 { letter-spacing: 0; font-size: 1rem; }

.hero2 {
  position: relative; overflow: clip; padding-block: clamp(1.5rem, 3vw, 3rem) clamp(3.2rem, 7vw, 6.4rem);
  /* The room of the mockup: light from the left, a warm wall deepening to the right. */
  background:
    radial-gradient(60rem 44rem at 12% 30%, color-mix(in srgb, var(--paper) 55%, #fff), transparent 68%),
    linear-gradient(100deg, color-mix(in srgb, var(--champagne) 30%, var(--paper)) 0%, color-mix(in srgb, var(--champagne) 48%, var(--paper)) 38%,
      color-mix(in srgb, var(--champagne) 92%, var(--paper)) 68%, color-mix(in srgb, var(--champagne) 76%, var(--ink)) 100%);
}
/* Light through a window: soft slanted bands on the wall behind the headline. */
.hero2::before {
  content: ""; position: absolute; inset-block-start: -12%; inset-inline-start: -6%; width: 44rem; height: 58rem; pointer-events: none;
  background: repeating-linear-gradient(104deg, color-mix(in srgb, #fff 60%, transparent) 0 4.2rem, transparent 4.2rem 8rem);
  filter: blur(26px); opacity: .55; rotate: 8deg;
}
.hero2__in { position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.1fr) minmax(0, 15.5rem); gap: clamp(1.25rem, 2.6vw, 2.75rem); align-items: center; min-height: min(78dvh, 45rem); }
.hero2__text { position: relative; z-index: 2; display: grid; gap: 1.5rem; justify-items: start; }
.hero2__text .eyebrow { white-space: nowrap; }
.hero2__title { display: grid; font: italic 500 clamp(3.2rem, 1.8rem + 4.2vw, 5.7rem)/.96 var(--f-display); letter-spacing: -.012em; color: var(--accent); }
.hero2__title span { display: block; }
.hero2__title span:nth-child(2) { padding-inline-start: .3em; }
.hero2__title .spark { display: inline-block; font-size: .3em; margin-inline-start: .35em; translate: 0 -.55em; }
:root[lang="ar"] .hero2__title { font-style: normal; font-weight: 700; line-height: 1.3; letter-spacing: 0; font-size: clamp(3rem, 1.8rem + 4.4vw, 5.6rem); }
.hero2 .lead { max-width: 41ch; }
.proof { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; font-size: .92rem; color: var(--ink-2); }
.proof li { display: flex; align-items: center; gap: .75rem; }
.proof b { color: var(--accent); font-weight: 600; }
.proof__thumbs { display: flex; }
.proof__thumbs img { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--paper); margin-inline-start: -.65rem; }
.proof__thumbs img:first-child { margin-inline-start: 0; }
.proof__badge { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1.25rem; }
.proof__laurel > span:last-child { display: grid; line-height: 1.25; }
.proof__laurel small { color: var(--muted); font-size: .82rem; }

/* The stage: an arch on the wall, a stone disc, the phone standing on it, a ribbon that
   passes behind the phone and comes round in front of its foot, blossoms. */
.hero2__stage { position: relative; display: grid; place-items: center; min-height: 41rem; }
.scene { position: absolute; inset: 0; pointer-events: none; }
/* The photograph is sized from the phone: the mockup's phone is 87 % of the picture's height and
   sits 69 % across and 47 % down it, and the live phone is laid exactly over it. */
.hero2__stage { --ph: 17.2rem; --pic: calc(var(--ph) * 844 / 390 / .845); }
.scene__photo {
  position: absolute; left: 50%; top: 50%; height: var(--pic); width: auto; max-width: none;
  translate: -69.5% -47.5%;
}
.hero2__stage .phone { width: calc(var(--ph) * 1.07); rotate: 8.5deg; margin: 0; translate: 6% -1%; }
.hero2__stage .phone__caption { rotate: -8.5deg; }
[dir="rtl"] .scene { transform: scaleX(-1); }
[dir="rtl"] .hero2__stage .phone { rotate: -8.5deg; translate: -6% -1%; }
[dir="rtl"] .hero2__stage .phone__caption { rotate: 8.5deg; }

.hero2__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.glass {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; padding: 1.05rem 1.2rem; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 44%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 62%, transparent), 0 18px 40px -28px color-mix(in srgb, var(--ink) 55%, transparent);
  font-size: .95rem; line-height: 1.35;
}
.glass .ico { font-size: 1.75rem; color: var(--accent); }

.occbar {
  position: relative; z-index: 4; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: clamp(.5rem, 2vw, 1.5rem);
  padding: 1.15rem .8rem; border-radius: 22px; background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 65%, transparent), 0 24px 50px -34px color-mix(in srgb, var(--ink) 55%, transparent);
}
.occbar a { display: grid; justify-items: center; gap: .45rem; padding: .25rem .4rem; text-align: center; text-decoration: none; color: var(--ink); font-size: .9rem; font-weight: 500; border-inline-start: 1px solid var(--line); }
.occbar a:first-child { border: 0; }
.occbar .ico { font-size: 1.8rem; color: var(--accent); }
.occbar a:hover span, .occbar a:focus-visible span { color: var(--accent); }

/* How it works: a cherry band between two waves. */
.howband { position: relative; z-index: 1; padding-block: clamp(2.5rem, 5vw, 4.5rem); background: var(--accent); color: var(--accent-ink); }
.wave { position: absolute; inset-inline: 0; display: block; width: 100%; height: clamp(2.5rem, 6.2vw, 5.6rem); fill: var(--accent); }
.wave--top { bottom: calc(100% - 1px); }
.wave--bottom { top: calc(100% - 1px); }
.howband__in { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr) minmax(0, 13rem); gap: clamp(1.5rem, 3vw, 3.25rem); align-items: center; }
.howband .eyebrow2 { color: color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.howband h2 { margin-top: 1.1rem; font: italic 500 clamp(2.2rem, 1.5rem + 2vw, 3.3rem)/1.08 var(--f-display); }
:root[lang="ar"] .howband h2 { font-style: normal; font-weight: 700; line-height: 1.45; }
.howband__text > p:last-child { margin: 1rem 0 0; color: color-mix(in srgb, var(--accent-ink) 84%, transparent); }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.2rem, 2.8vw, 2.8rem); }
.hsteps li { position: relative; display: grid; justify-items: center; align-content: start; gap: .7rem; text-align: center; }
.hsteps li + li::before {
  content: ""; position: absolute; top: 36%; inset-inline-start: calc(-.5 * clamp(1.2rem, 2.8vw, 2.8rem) - .35rem); width: .6rem; height: .6rem;
  border-block-start: 1.5px solid; border-inline-end: 1.5px solid; rotate: 45deg; opacity: .65;
}
[dir="rtl"] .hsteps li + li::before { rotate: -45deg; }
.mini {
  position: relative; display: grid; align-content: start; gap: .4rem; width: min(100%, 8.8rem); aspect-ratio: 9 / 17; padding: .35rem; overflow: hidden;
  border-radius: 18px; background: var(--paper); color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blush) 60%, var(--accent)), 0 22px 40px -22px color-mix(in srgb, #000 75%, transparent);
}
.mini__word { height: .85rem; margin: .55rem auto .15rem; color: var(--accent); --spark: var(--champagne); }
.mini__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: 0 .2rem; }
.mini__grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 5px; }
.mini__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini__dots { position: absolute; inset-inline: 0; bottom: .6rem; display: flex; justify-content: center; gap: .3rem; }
.mini__dots i { width: .8rem; height: .8rem; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--paper); }
.mini--rsvp, .mini--share { align-content: center; padding: .8rem .6rem; text-align: center; }
.mini--rsvp { gap: .45rem; }
.mini--rsvp b { font: 600 1.3rem/1 var(--f-display); }
.mini--rsvp span { font-size: .62rem; color: var(--muted); }
.mini--rsvp i { display: flex; align-items: center; justify-content: center; gap: .25rem; padding: .42rem .3rem; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line-2); font-style: normal; font-size: .56rem; }
.mini--rsvp i.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.mini--share { gap: .7rem; }
.mini__link { display: flex; align-items: center; justify-content: center; gap: .25rem; padding: .4rem .3rem; overflow: hidden; border-radius: 999px; background: var(--paper-2); font-size: .5rem; white-space: nowrap; }
.mini__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.mini__tiles i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; }
.hsteps__n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blush); color: var(--accent); font: 600 .85rem/1 var(--f-body); }
.hsteps h3 { font: 500 1rem/1.3 var(--f-body); }
.snap { position: relative; justify-self: end; display: block; width: min(100%, 12.5rem); padding: .5rem .5rem 1.7rem; border-radius: 4px; background: var(--paper); rotate: 6deg; box-shadow: 0 30px 50px -26px color-mix(in srgb, #000 78%, transparent); }
[dir="rtl"] .snap { rotate: -6deg; }
.snap img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 2px; }
.snap__play { position: absolute; inset: 0; margin: auto; translate: 0 -.6rem; display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--accent); font-size: 1.3rem; box-shadow: 0 0 0 2px var(--paper); }
.snap:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; }

.values { padding-block: clamp(5rem, 9.5vw, 8rem) clamp(.5rem, 2vw, 1.5rem); }
.values__in { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.values li { display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding: .5rem 1.5rem; border-inline-start: 1px solid var(--line-2); }
.values li:first-child { border: 0; }
.values .ico { flex: none; font-size: 2.3rem; color: var(--accent); }
.values h3 { font-size: 1.55rem; }
.values p { margin: .15rem 0 0; font-size: .95rem; color: var(--ink-2); }

@media (max-width: 1180px) {
  .hero2__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero2__cards { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .glass { grid-template-columns: 1fr; gap: .5rem; }
  .howband__in { grid-template-columns: minmax(0, 1fr); }
  .snap { display: none; }
}
@media (max-width: 900px) {
  .hero2__in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero2__title { font-size: clamp(3.2rem, 16vw, 4.8rem); }
  .eyebrow2 { letter-spacing: .2em; font-size: .72rem; gap: .6rem; }
  .eyebrow2 i { width: 2rem; }
  .hero2__stage { --ph: min(12.5rem, 50vw); min-height: calc(var(--pic) * .86); }      /* the whole scene, as wide as the phone screen allows */
  .hero2__cards { grid-template-columns: 1fr 1fr; }
  .occbar { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.1rem; border-radius: 18px; }
  .occbar a:nth-child(5) { border: 0; }
  .occbar a { font-size: .8rem; }
  .hsteps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .hsteps li + li::before { display: none; }
  .values__in { grid-template-columns: minmax(0, 1fr); }
  .values li { justify-content: flex-start; padding: 1rem 0; border: 0; border-top: 1px solid var(--line); }
  .values li:first-child { border: 0; }
}
