/* ============================================================
   abbyleefit — shared styles
   Warm-beige neutral system · monospace UI · italic sans display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700;1,800;1,900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --paper:      #f3efe8;   /* warm off-white page bg */
  --paper-2:    #ece6dc;   /* slightly deeper band  */
  --card:       #fcfaf6;   /* near-white card        */
  --ink:        #1b1814;   /* warm near-black text   */
  --ink-soft:   #5c554c;   /* muted body             */
  --ink-faint:  #8c8479;   /* captions               */
  --clay:       #b08968;   /* warm beige accent      */
  --clay-deep:  #8a6750;   /* darker clay            */
  --clay-tint:  #e9ddcf;   /* pale clay wash         */
  --line:       #ddd4c6;   /* hairline border        */
  --line-soft:  #e7ded2;

  --r-card: 22px;
  --r-pill: 999px;

  --display: 'Archivo', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--display);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- type helpers ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay-deep);
  font-weight: 400;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--clay);
}
.eyebrow.center::before { display: none; }

h1, h2, h3 { font-weight: 800; line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.display {
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}

.h1 { font-size: clamp(40px, 6.4vw, 88px); }
.h2 { font-size: clamp(32px, 4.6vw, 60px); }
.h3 { font-size: clamp(22px, 2.6vw, 30px); }

.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); line-height: 1.62; text-wrap: pretty; }
.muted { color: var(--ink-soft); }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 9vw, 140px); }
.section-tight { padding-block: clamp(52px, 6vw, 90px); }
.band { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--paper); }
.center { text-align: center; }
.maxch { max-width: 60ch; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  padding: 16px 30px;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd);
  border-radius: var(--r-pill);
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--solid:hover { --bg: var(--clay-deep); --bd: var(--clay-deep); }
.btn--clay { --bg: var(--clay); --fg: #fff; --bd: var(--clay); }
.btn--clay:hover { --bg: var(--clay-deep); --bd: var(--clay-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }
.btn--light:hover { --bg: transparent; --fg: var(--paper); --bd: var(--paper); }
.btn--block { width: 100%; }
.btn--sm { padding: 12px 22px; font-size: 12px; }

.textlink {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid var(--clay); padding-bottom: 3px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.textlink:hover { gap: 14px; color: var(--clay-deep); }

/* ============================================================
   Image placeholders
   ============================================================ */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(176,137,104,.10) 0 2px, transparent 2px 13px),
    linear-gradient(160deg, var(--clay-tint), #ded2c2);
  display: grid; place-items: center;
  overflow: hidden;
  color: var(--clay-deep);
}
.ph::after {
  content: attr(data-label);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-deep); opacity: .8;
  text-align: center; padding: 0 20px; line-height: 1.7;
}
.ph .pin {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  color: var(--clay-deep); opacity: .55;
}
/* Editorial frames — arched "window" + crisp rounded rectangle */
.blob-a { border-radius: 999px 999px 16px 16px; }      /* tall arch */
.blob-b { border-radius: 16px; }                        /* rounded rect */
.blob-c { border-radius: 16px; }                        /* rounded rect */
.arch   { border-radius: 999px 999px 16px 16px; }
.arch-soft { border-radius: 140px 140px 16px 16px; }
.rrect  { border-radius: 16px; }
.ph { box-shadow: inset 0 0 0 1px rgba(138,103,80,.16); }
.ph::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.35);
  border-radius: inherit; pointer-events: none; z-index: 1;
}
/* hover zoom: wrap a .ph in [data-zoom] */
[data-zoom] { overflow: hidden; }
[data-zoom] .ph { transition: transform 1.1s var(--ease); }
[data-zoom]:hover .ph { transform: scale(1.05); }

/* ============================================================
   Real photo frames (.media) — editorial arch / rounded rect
   ============================================================ */
.media {
  position: relative; overflow: hidden; background: var(--clay-tint);
  box-shadow: 0 30px 70px -42px rgba(60,44,30,.55);
}
.media > img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; display: block; }
.media.low > img { object-position: center 80%; }
.media.high > img { object-position: center 32%; }
.media.arch { border-radius: 999px 999px 14px 14px; }
.media.arch-soft { border-radius: 200px 200px 14px 14px; }
.media.rrect { border-radius: 16px; }
.media.tall { aspect-ratio: 3 / 4; }
.media.portrait { aspect-ratio: 4 / 5; }
.media.square { aspect-ratio: 1 / 1; }
.media.wide { aspect-ratio: 16 / 10; }
/* subtle inner ring */
.media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); pointer-events: none; z-index: 2; }
/* hover zoom */
[data-zoom] { overflow: hidden; }
[data-zoom] > img, .media[data-zoom] > img { transition: transform 1.2s var(--ease); }
[data-zoom]:hover > img { transform: scale(1.06); }
/* corner caption pin (optional) */
.media .cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: rgba(27,24,20,.55); backdrop-filter: blur(4px);
  padding: 6px 11px; border-radius: 999px;
}

/* ============================================================
   Announcement bar
   ============================================================ */
.announce {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700;
  text-align: center; padding: 11px 16px;
}
.announce a { border-bottom: 1px solid var(--clay); padding-bottom: 1px; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding-block: 16px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft);
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--ink);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--ink); }

.brand {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 27px; letter-spacing: -.03em; text-align: center; color: var(--ink);
  justify-self: center;
}
.nav-utils { display: flex; gap: 18px; align-items: center; justify-self: end; }
.icon-btn {
  background: none; border: 0; padding: 6px; color: var(--ink); display: grid; place-items: center;
  border-radius: 50%; transition: background .25s, transform .25s;
}
.icon-btn:hover { background: var(--clay-tint); transform: translateY(-1px); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-dot { position: relative; }
.cart-dot::after {
  content: "0"; position: absolute; top: 0; right: 0;
  background: var(--clay); color: #fff; font-family: var(--mono); font-size: 9px; font-weight: 700;
  width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center;
}
.burger { display: none; }

@media (max-width: 920px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .burger { display: grid; }
  .brand { justify-self: start; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 100; background: var(--paper);
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column; padding: 22px var(--pad);
}
.drawer.open { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer a {
  font-family: var(--display); font-style: italic; font-weight: 700; font-size: 34px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.drawer a:last-of-type { border-bottom: 0; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 34px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px -28px rgba(60,44,30,.45); border-color: var(--line); }

.price {
  font-family: var(--mono); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--clay-deep);
}
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--clay); color: #fff; align-self: flex-start;
}
.tag--ghost { background: transparent; color: var(--clay-deep); border: 1px solid var(--clay); }

/* number chips for steps */
.step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; color: var(--ink);
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; font-family: var(--display); font-weight: 700; font-size: clamp(19px, 2vw, 24px);
  color: var(--ink); letter-spacing: -.01em;
}
.faq-q .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: var(--clay-deep); transition: transform .35s var(--ease);
}
.faq-q .pm::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-q .pm::after  { left: 8px; top: 0; width: 2px; height: 18px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding: 0 4px 28px; max-width: 64ch; color: var(--ink-soft); }

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft);
}
.field label .req { color: var(--clay-deep); }
.field input, .field select, .field textarea {
  font-family: var(--display); font-size: 16px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px rgba(176,137,104,.14);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b4503f; box-shadow: 0 0 0 4px rgba(180,80,63,.12); }
.field .err { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #b4503f; display: none; }
.field.invalid .err { display: block; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--card);
  color: var(--ink-soft); transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--clay); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.form-note {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-faint);
  text-align: center; margin-top: 16px;
}
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: 16px 26px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  z-index: 200; transition: transform .5s var(--ease); box-shadow: 0 20px 40px -16px rgba(0,0,0,.5);
}
.toast.show { transform: translate(-50%, 0); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 7vw, 96px) 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.site-footer .brand { color: var(--paper); text-align: left; justify-self: start; font-size: 34px; margin-bottom: 16px; }
.footer-col h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay); font-weight: 700; margin: 0 0 18px;
}
.footer-col a, .footer-col p { color: #cfc7ba; font-size: 15px; padding: 5px 0; display: block; margin: 0; transition: color .2s; }
.footer-col a:hover { color: var(--paper); }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid #4a443c; border-radius: 50%;
  display: grid; place-items: center; color: #cfc7ba; transition: all .3s var(--ease);
}
.socials a:hover { background: var(--clay); border-color: var(--clay); color: #fff; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-base {
  border-top: 1px solid #38322b; margin-top: 56px; padding-top: 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #8c8479;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Reveal on scroll — TRANSFORM-ONLY (never animate opacity; this preview's
   compositor pins any opacity:0 and refuses to repaint it). Content is always
   fully opaque; .in plays a slide/scale that forces a clean repaint.
   ============================================================ */
@keyframes revUp    { from { transform: translateY(34px); } to { transform: none; } }
@keyframes revLeft  { from { transform: translateX(-44px); } to { transform: none; } }
@keyframes revRight { from { transform: translateX(44px); }  to { transform: none; } }
@keyframes revScale { from { transform: scale(.93); }        to { transform: none; } }
.reveal.in          { animation: revUp .85s var(--ease) both; animation-delay: var(--rd, 0ms); }
.reveal.r-left.in   { animation-name: revLeft; }
.reveal.r-right.in  { animation-name: revRight; }
.reveal.r-scale.in  { animation-name: revScale; }
@media (prefers-reduced-motion: reduce) { .reveal.in { animation: none; } }

/* Scroll progress bar */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--clay); z-index: 200; transition: width .1s linear; }

/* Parallax helper */
[data-parallax] { will-change: transform; }

/* generic grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ============================================================
   Horizontal testimonial rail (drag / wheel / buttons + snap)
   ============================================================ */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rail-ctrls { display: flex; gap: 12px; }
.rail-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent;
  display: grid; place-items: center; color: var(--ink); transition: all .3s var(--ease);
}
.rail-btn:hover { background: var(--ink); color: var(--paper); }
.rail-btn:disabled { opacity: .28; cursor: default; }
.rail-btn:disabled:hover { background: transparent; color: var(--ink); }
.rail-btn svg { width: 22px; height: 22px; }

.rail {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 8px calc((100vw - var(--maxw)) / 2 + var(--pad)) 30px;
  margin: 0 calc(-1 * ((100vw - var(--maxw)) / 2 + var(--pad)));
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { pointer-events: none; }
.rail-card {
  flex: 0 0 clamp(280px, 38vw, 440px); scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: 40px; display: flex; flex-direction: column; min-height: 320px;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.rail-card:hover { border-color: var(--line); box-shadow: 0 24px 50px -30px rgba(60,44,30,.4); }
.rail-card.feat { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.rail-card .qmark { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 76px; line-height: .6; color: var(--clay); }
.rail-card blockquote { margin: 18px 0 auto; font-size: 20px; line-height: 1.5; color: inherit; }
.rail-card .stars { color: var(--clay); letter-spacing: 3px; font-size: 14px; margin-bottom: 12px; }
.rail-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .05em; }
.rail-card figcaption em { color: var(--clay); font-style: normal; }
.rail-card.feat figcaption { color: #cfc7ba; }
.rail-avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(150deg, var(--clay), var(--clay-deep)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.rail-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }

/* ============================================================
   Stat counters
   ============================================================ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 16px; }
.stat .num { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; }
.stat .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-top: 12px; }
@media (max-width: 680px) { .stat-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* Magnetic CTA wrapper keeps transform smooth */
[data-magnetic] { transition: transform .25s var(--ease); }

/* Section index marker */
.sec-index { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--clay-deep); }
