/* =====================================================================
   LARINA — design system
   ---------------------------------------------------------------------
   Every colour here is taken from the designer logo files, and the roles
   follow how the mark itself is built: the lotus has a ROSE-GOLD OUTLINE
   framing a rose chevron over a navy chevron. So on this site rose-gold
   is a *frame* colour — hairlines, borders, rules — and never carries
   text (it measures 1.96:1 on the ground, far below the 4.5:1 floor).
   Navy carries structure, rose carries action.

   Contrast, measured against --ground (#FDFBF9):
     --ink        #0B2545   15.4:1   headings + body
     --ink-soft   #4A4038    9.8:1   secondary body
     --ink-mute   #6B5D52    6.1:1   captions, meta
     --accent     #C0294F    5.5:1   links, CTAs, small accent text
     --accent-hi  #D8486C    4.0:1   LARGE/BOLD display text only (>=18pt)
     --gold       #E4A89C    1.96:1  DECORATIVE ONLY — never text
   ===================================================================== */

:root {
  /* --- ground + surface --- */
  --ground:      #FDFBF9;   /* warm ivory: wool, not paper */
  --ground-sunk: #F7F2EE;
  --surface:     #FFFFFF;

  /* --- ink --- */
  --ink:      #0B2545;
  --ink-soft: #4A4038;
  --ink-mute: #6B5D52;

  /* --- brand --- */
  --accent:      #C0294F;
  --accent-hi:   #D8486C;
  --accent-deep: #A81F45;
  --accent-wash: #FDF2F5;
  --gold:        #E4A89C;
  --gold-soft:   #F0C0B4;
  --gold-wash:   #FBF1ED;
  --navy:        #003C78;
  --navy-deep:   #0B2545;

  /* --- signal colours, matched to the app's WashHue tokens so the
         site and the product read as one system --- */
  --sig-publish: #3B5BDB;   /* sapphire */
  --sig-ar:      #FF6F61;   /* amber    */
  --sig-voice:   #00794A;   /* emerald, darkened for light backgrounds */
  --sig-social:  #F5A623;   /* gold     */

  /* --- type --- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* --- rhythm --- */
  --gut: clamp(20px, 5vw, 40px);
  --measure: 1200px;
  --measure-text: 68ch;

  /* --- elevation: soft and warm, never grey --- */
  --lift-1: 0 1px 2px rgba(11, 37, 69, 0.04), 0 2px 8px rgba(11, 37, 69, 0.04);
  --lift-2: 0 2px 4px rgba(11, 37, 69, 0.04), 0 12px 28px rgba(11, 37, 69, 0.07);
  --lift-3: 0 4px 8px rgba(11, 37, 69, 0.05), 0 24px 56px rgba(11, 37, 69, 0.10);

  --radius: 14px;
  --radius-lg: 22px;
  --hair: 1px solid var(--gold);
  --hair-soft: 1px solid #EFE3DD;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =====================================================================
   base
   ===================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--gold-soft); color: var(--navy-deep); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-deep); color: #fff;
  padding: 12px 20px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   type scale
   ===================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: 'SOFT' 20, 'WONK' 1;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); letter-spacing: -0.022em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.42rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 58ch;
}

/* The eyebrow is the one place the logo's tagline voice repeats:
   letterspaced caps, the way "AI BUILT FOR RUG EXPERTS" is set. */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.715rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  max-width: 120px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { display: none; }

.display-accent { color: var(--accent-hi); }

/* =====================================================================
   layout
   ===================================================================== */

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 860px; }

section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 124px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section--sunk { background: var(--ground-sunk); }

/* Full-bleed navy blocks carry the structural weight, so the ivory
   ground stays a ground and never becomes the whole identity. */
.section--navy {
  background: var(--navy-deep);
  color: #fff;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: rgba(255,255,255,0.76); }
.section--navy .eyebrow { color: var(--gold-soft); }
.section--navy a { color: var(--gold-soft); }

.rule { height: 1px; background: #EFE3DD; border: 0; margin: 0; }

/* --- the warp grid ---------------------------------------------------
   A hand-knotted rug is a grid: warp threads held under tension, weft
   across them. These hairlines are that structure, in the mark's own
   frame colour. Decorative only, hidden from assistive tech. */
.warp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right, var(--gold) 0 1px, transparent 1px 88px);
  opacity: 0.16;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.section--navy .warp { opacity: 0.10; }

/* =====================================================================
   buttons — pill geometry, matching the app's PillButton
   ===================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;              /* >= 44px touch target */
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-size: 0.945rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(192, 41, 79, 0.20), 0 10px 24px rgba(192, 41, 79, 0.18);
}
.btn--primary:hover { background: var(--accent-deep); color: #fff;
  box-shadow: 0 3px 8px rgba(192,41,79,0.24), 0 14px 32px rgba(192,41,79,0.24); }

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: #E7DCD6;
  box-shadow: var(--lift-1);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--gold); background: var(--gold-wash); }

.btn--onNavy { background: #fff; color: var(--navy-deep); }
.btn--onNavy:hover { background: var(--gold-wash); color: var(--navy-deep); }

.btn--quiet {
  background: transparent; color: var(--ink-soft);
  border-color: transparent; box-shadow: none; padding-inline: 14px;
}
.btn--quiet:hover { color: var(--accent); background: var(--accent-wash); }

.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1.02rem; }
.btn[disabled], .btn[aria-disabled='true'] {
  opacity: 0.45; cursor: not-allowed; pointer-events: none; box-shadow: none;
}

/* =====================================================================
   chips / badges
   ===================================================================== */

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--surface); border: var(--hair-soft);
  font-size: 0.79rem; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; color: var(--ink-mute); }
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-wash); border: 1px solid rgba(192, 41, 79, 0.22);
  color: var(--accent-deep);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.badge svg { width: 13px; height: 13px; }

/* =====================================================================
   cards
   ===================================================================== */

.card {
  background: var(--surface);
  border: var(--hair-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--lift-1);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.card--hover:hover { box-shadow: var(--lift-2); transform: translateY(-3px); border-color: var(--gold); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--gold-wash); color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.945rem; margin: 0; }

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* =====================================================================
   header
   ===================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 251, 249, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header[data-scrolled='true'] {
  border-bottom-color: #EFE3DD;
  box-shadow: 0 1px 20px rgba(11, 37, 69, 0.04);
}
.site-header__inner {
  display: flex; align-items: center; gap: 18px;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 44px; width: auto; }
.brand:hover { opacity: 0.82; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 9px 15px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.925rem; font-weight: 500;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.site-nav a:hover { background: var(--gold-wash); color: var(--ink); }
.site-nav a[aria-current='page'] { color: var(--accent); font-weight: 600; }
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: var(--hair-soft);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 70px 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--ground); border-bottom: 1px solid #EFE3DD;
    padding: 14px var(--gut) 22px;
    box-shadow: 0 18px 40px rgba(11,37,69,0.10);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .site-nav[data-open='true'] { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 13px 14px; font-size: 1rem; }
  .header-cta { margin: 10px 0 0; justify-content: center; }
}

/* =====================================================================
   footer
   ===================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding-block: clamp(48px, 6vw, 76px) 32px;
  font-size: 0.9rem;
}
.site-footer h4 {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 14px;
}
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
/* The colour lockup, not a white knockout: flattening it to a silhouette
   loses the lotus's internal shapes, and the rose-gold outline is exactly
   what keeps the mark legible against the navy. */
.footer-brand img { height: 48px; width: auto; margin-bottom: 16px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-size: 0.83rem; color: rgba(255,255,255,0.56);
}

/* =====================================================================
   motion — one orchestrated moment, and it is always optional
   ===================================================================== */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .warp { display: none; }
  body { background: #fff; }
}
