/* ==========================================================================
   ELINHA — Global Stylesheet
   ========================================================================== */

@font-face{
  font-family:'Wanted Sans';
  src:url('../images/WantedSansVariable.ttf') format('truetype');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
  /* Hangul syllables + Jamo only. Without this, putting 'Wanted Sans'
     ahead of var(--font-en) in the stack below would also hijack every
     Latin glyph (brand names, "checco", "LINKONE", etc.) away from
     Inter (--font-en), since the font does contain Latin glyphs too.
     Scoping it to Hangul makes the priority reorder below safe. */
  unicode-range: U+1100-11FF, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF;
}

:root{
  /* ---------- Dark-version palette ----------
     Structure/spacing/type scale stay ported from Linear (see
     design-reference/DESIGN-linear.app.md), but the accent is ELINHA's own
     color chip, not Linear's lavender: --primary is ELINHA pine green,
     --primary-hover is ELINHA mint (already light enough to read on the
     dark canvas), --primary-focus is ELINHA pine-dark. Cream (#E4DECE) is
     deliberately NOT used here per the user's steer — it stays reserved
     for the brand-mark SVG only. Every legacy token below (--white,
     --pine, --gray, etc.) is now an ALIAS onto these — usage sites
     throughout this file are untouched, EXCEPT the handful flagged inline
     where a legacy token was doing two incompatible jobs (e.g. --cream as
     both a page bg and a text color) — those keep the alias for one role
     and get an explicit override for the other. */
  --canvas:           #0A0A0C;
  --surface-1:        #131316;
  --surface-2:        #1A1A1E;
  --surface-3:        #202024;
  --hairline:         rgba(247,248,248,0.08);
  --hairline-strong:  rgba(247,248,248,0.14);

  --ink-bright:       #F7F8F8;
  --ink-muted:        rgba(247,248,248,0.62);
  --ink-subtle:       #8A8F98;

  --primary:          #018440;
  --primary-hover:    #AAD0BB;
  --primary-focus:    #154B3E;
  --primary-soft:     rgba(1,132,64,0.16);
  --on-primary:       #FFFFFF;
  --inverse-canvas:   #FFFFFF;
  --inverse-ink:      #0A0A0C;

  /* ---------- Legacy aliases ---------- */
  --white:        var(--canvas);
  --cream:        var(--ink-subtle);
  --gray:         var(--surface-1);
  --mint:         var(--primary-hover);
  --pine:         var(--primary);
  --pine-dark:    var(--primary-focus);
  --ink:          var(--ink-bright);
  --ink-soft:     var(--ink-muted);
  --line:         var(--hairline);
  --on-dark:      var(--ink-bright);
  --on-dark-muted:var(--ink-muted);
  --line-dark:    var(--hairline-strong);

  --shadow-sm: 0 1px 0 rgba(0,0,0,0.3), 0 10px 26px rgba(0,0,0,0.25);
  --shadow-md: 0 24px 48px -16px rgba(0,0,0,0.5);

  --radius-lg: 12px;
  --radius-md: 8px;

  /* English/Latin font — change this one value to swap the EN font sitewide.
     Inter is Linear's own documented substitute for its proprietary display
     face (design-reference/DESIGN-linear.app.md). Loaded via Google Fonts
     in index.html; Arial is deliberately excluded from the fallback chain
     (not to be used anywhere) — falls back to Helvetica/sans-serif where
     Inter hasn't loaded yet. */
  --font-en: 'Inter';

  /* 'Wanted Sans' (Hangul only, via unicode-range above) and 'Noto Sans JP'
     (Google Fonts — already ships its own per-script unicode-range) are
     listed first so Korean/Japanese glyphs always resolve to them, never
     to whatever the OS substitutes for --font-en on unsupported chars.
     Latin/EN glyphs still safely fall through to var(--font-en). English is
     listed BEFORE 'Noto Sans JP' on purpose: Noto Sans JP also contains Latin
     glyphs, so putting it first made all English text render in Noto Sans JP
     instead of Inter. Inter has no CJK, so Japanese still falls to Noto Sans JP. */
  --font-display: 'Wanted Sans', var(--font-en), 'Noto Sans JP';
  --font-sans:    'Wanted Sans', var(--font-en), 'Noto Sans JP';
  /* Monospace — labels/counters/meta only (magazine+brutalist accents on
     the homepage's Nexus-style sections, plus the footer bottom bar).
     Loaded via Google Fonts <link> only on pages that use it. */
  --font-mono: var(--font-sans);   /* was JetBrains Mono: labels (news date, product id / ROI, slide index) now use Inter like the rest of the English text */

  --container: 2200px;
  --header-h: 72px; /* linear.app's real header measures 73px */

  /* ---------- Typography scale ----------
     BoldPlus Foundation 2025 파운데이션의 size/line-height(px)·letter-spacing(px)
     규칙을 그대로 따르되, 폰트 패밀리는 ELINHA 고유 스택(--font-sans/--font-display)을
     유지한다. Heading 전 사이즈는 letter-spacing -0.2px로 고정(Figma "tight" 토큰),
     Body는 크기별로 normal(0)/tight(-0.2px)를 그대로 따른다. */
  --text-4xl-size:60px;      --text-4xl-lh:68px;
  --text-3xl-size:48px;      --text-3xl-lh:56px;
  --text-2xl-size:40px;      --text-2xl-lh:48px;
  --text-xl-size:36px;       --text-xl-lh:40px;
  --text-lg-size:28px;       --text-lg-lh:36px;
  --text-md-size:24px;       --text-md-lh:28px;
  --text-sm-size:20px;       --text-sm-lh:24px;
  --text-body-lg-size:16px;  --text-body-lg-lh:24px;
  --text-body-md-size:14px;  --text-body-md-lh:20px;
  --text-body-sm-size:12px;  --text-body-sm-lh:16px;

  --tracking-heading:     -0.3px; /* tightened for the Linear-style display type */
  --tracking-body-tight:  -0.2px; /* Figma: Body/md */
  --tracking-body:         0px;  /* Figma: Body/lg, Body/sm (normal) */

  --font-weight-light:     300;
  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  /* ---------- Spacing scale (4px 배수) ---------- */
  --space-1:4px;    --space-2:8px;    --space-3:12px;   --space-4:16px;
  --space-5:20px;   --space-6:24px;   --space-7:28px;   --space-8:32px;
  --space-9:36px;   --space-10:40px;  --space-11:44px;  --space-12:48px;
  --space-13:52px;  --space-14:56px;  --space-15:60px;  --space-16:64px;
  --space-18:72px;  --space-20:80px;  --space-24:96px;  --space-25:100px;
  --space-28:112px; --space-30:120px; --space-35:140px;

  /* ---------- Figma "BoldPlus Foundation 2025" — tokens not yet covered
     above. Additive only: nothing existing is overridden, so this is safe
     sitewide. Kept here (not page-scoped) so any future page can reuse
     the same Foundation values instead of re-declaring them. ---------- */
  --radius-interactive: 8px;  /* Figma: radius/interactiveDefault */
  --radius-surface:     16px; /* Figma: radius/surfaceDefault */
  --text-secondary:     #8C8C8C; /* Figma: color/text/secondary */
  --on-dark-secondary:  #C7C7C7; /* Figma: color/text/onDarkSecondary */
  --eyebrow-bg-on-dark:   var(--primary-soft); /* Figma: color/eyebrow/bgOnDark */
  --eyebrow-text-on-dark: var(--primary-hover); /* Figma: color/eyebrow/textOnDark */
  --tracking-wide: 0.05px; /* Figma: letterSpacing/wide */

  /* ---------- Design System v2 type scale (Elinha.md §2.2) ----------
     Originally checco-only; promoted here since all three services/*.html
     detail pages (checco/influencer-marketing/linkone) now share the same
     v2 hero/section framework below, scoped to body.service-page. */
  --v2-display-lg-size:56px;  --v2-display-lg-lh:1.10;  --v2-display-lg-ls:-1.8px;
  --v2-display-md-size:40px;  --v2-display-md-lh:1.15;  --v2-display-md-ls:-1.0px;
  --v2-headline-size:28px;    --v2-headline-lh:1.20;    --v2-headline-ls:-0.6px;
  --v2-card-title-size:22px;  --v2-card-title-lh:1.25;  --v2-card-title-ls:-0.4px;
  --v2-subhead-size:20px;     --v2-subhead-lh:1.40;     --v2-subhead-ls:-0.2px;
  --v2-body-lg-size:18px;     --v2-body-lg-lh:1.50;     --v2-body-lg-ls:-0.1px;
  --v2-body-size:16px;        --v2-body-lh:1.50;        --v2-body-ls:-0.05px;
  --v2-body-sm-size:14px;     --v2-body-sm-lh:1.50;     --v2-body-sm-ls:0px;
  --v2-caption-size:12px;     --v2-caption-lh:1.40;     --v2-caption-ls:0px;
  --v2-button-size:14px;      --v2-button-lh:1.20;      --v2-button-ls:0px;
  --v2-eyebrow-size:13px;     --v2-eyebrow-lh:1.30;     --v2-eyebrow-ls:0.4px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--font-sans);
  font-weight:var(--font-weight-regular);
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
  letter-spacing:var(--tracking-body);
}
body.modal-open{overflow:hidden;}
h1,h2,h3,h4{
  font-family:var(--font-sans);
  font-weight:var(--font-weight-semibold);
  letter-spacing:var(--tracking-heading);
  margin:0;
  color:var(--ink);
}
p{margin:0;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
img{max-width:100%;display:block;}
button{font-family:inherit;}

/* Side gutter is fluid (5vw each side, matching lusion.co's own ~90vw
   content column — measured directly: 1728/1920, 1296/1440, 921.6/1024
   all land on exactly 0.9) instead of a fixed px padding, so content
   keeps hugging the true viewport edge on wide monitors instead of
   the extra dead space a fixed max-width + auto-margin box leaves
   outside a fixed inner padding. --container stays only as an outer
   safety cap for ultra-wide/4K screens, not the primary width driver.
   Breakpoint (640px) reuses this codebase's own existing mobile
   threshold (home.css's .curve-divider/.marquee-band etc. already
   split there) rather than importing lusion's own breakpoints — on
   phones a fixed gutter reads more consistently than a vw one that
   shrinks along with the viewport. */
.wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 5vw;
}
@media (max-width:640px){
  .wrap{padding:0 20px;}
}

.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;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:var(--text-body-sm-size);
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--pine);
  background:var(--primary-soft);
  padding:var(--space-2) var(--space-5);
  border-radius:var(--radius-md);
  margin-bottom:var(--space-5);
}

.accent{color:var(--pine);}

.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto var(--space-16);
}
.section-head h2{
  font-size:clamp(var(--text-xl-size),3.6vw,var(--text-3xl-size));
  margin-bottom:var(--space-5);
}
.section-head .lead{
  color:var(--ink-soft);
  font-size:var(--text-body-lg-size);
}
/* Homepage section headers (#about, #services, #news, #contact, #company)
   — scoped by ID so services/*.html detail pages (which reuse the same
   .section-head class, centered) are left untouched.
   1) Tighter fixed heading size instead of the fluid clamp() below, so
      every homepage heading reads at the same size.
   2) Left-aligned, full natural width instead of the base rule's centered
      640px box — matches linear.app's own left-aligned section headers,
      and fixes the specific bug where #news's inline text-align:left
      only re-aligned the TEXT inside the box while the box itself stayed
      centered via margin:0 auto, so it looked centered anyway. */
#about .section-head,
#services .section-head,
#news .section-head,
#contact .section-head,
#company .section-head{
  text-align:left;
  max-width:none;
  margin:0 0 var(--space-14);
}
#about .section-head h2,
#services .section-head h2,
#news .section-head h2,
#contact .section-head h2,
#company .section-head h2{
  font-size:var(--text-xl-size);
  font-weight:var(--font-weight-semibold);
  line-height:var(--text-xl-lh);
  letter-spacing:var(--tracking-heading);
  margin-bottom:var(--space-4);
}
#about .section-head .lead,
#services .section-head .lead,
#news .section-head .lead,
#contact .section-head .lead,
#company .section-head .lead{
  line-height:var(--text-body-lg-lh);
  max-width:640px;
}

.divider{
  width:56px;
  height:2px;
  background:var(--pine);
  margin:var(--space-6) auto;
  border-radius:2px;
}

/* linear.app's real section rhythm measures ~48px/96px, noticeably
   tighter than the original 120px used here. */
section{padding:var(--space-24) 0;}

/* ---------- Buttons ---------- */
/* Measured live off linear.app: nav buttons are 32px tall, 13px text,
   0/12px padding, full pill radius — not the 8px box the rest of the UI
   (cards/inputs/modals) uses. Buttons get their own compact pill spec. */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-2);
  height:32px;
  padding:0 var(--space-5);
  border-radius:9999px;
  font-family:var(--font-sans);
  font-weight:var(--font-weight-medium);
  font-size:13px;
  letter-spacing:normal;
  cursor:pointer;
  border:1px solid transparent;
  transition:all .2s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--pine);
  color:var(--on-primary);
  border-color:var(--pine);
}
.btn-primary:hover{
  background:var(--primary-hover);
  border-color:var(--primary-hover);
  /* Base .btn-primary text is white (var(--on-primary)) for the dark
     --pine fill; left unset here it stayed white against the much
     lighter mint hover fill too — 1.7:1 (need 4.5:1). Pine-dark clears
     it at 5.9:1. */
  color:var(--pine-dark);
  transform:translateY(-2px);
}
.btn-outline{
  background:transparent;
  border-color:var(--line);
  color:var(--ink);
}
.btn-outline:hover{
  border-color:var(--pine);
  color:var(--pine);
  transform:translateY(-2px);
}
.btn-outline.on-dark{color:var(--on-dark);border-color:var(--line-dark);}
.btn-outline.on-dark:hover{border-color:var(--mint);color:var(--mint);}
/* Linear "button-secondary": surface fill + hairline border, on the dark canvas */
.btn-dark{
  background:var(--surface-2);
  color:var(--ink);
  border-color:var(--hairline);
}
.btn-dark:hover{
  background:var(--surface-3);
  border-color:var(--hairline-strong);
  transform:translateY(-2px);
}
/* Linear "button-inverse": true white fill, for the rare punchy CTA on the dark canvas */
.btn-light{
  background:var(--inverse-canvas);
  color:var(--inverse-ink);
  border-color:var(--inverse-canvas);
}
.btn-light:hover{
  background:var(--primary-hover);
  border-color:var(--primary-hover);
  color:var(--inverse-ink);
  transform:translateY(-2px);
}
.btn-sm{height:28px;padding:0 var(--space-4);font-size:12px;}

/* ---------- Header ---------- */
header.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:200;
  height:var(--header-h);
  display:flex;
  align-items:center;
  background:rgba(255,255,255,0);
  border-bottom:1px solid transparent;
  transition:background .4s ease, border-color .4s ease;
}
header.site-header.solid{
  background:rgba(10,10,12,0.85);
  backdrop-filter:blur(10px);
  border-color:var(--line);
}
.nav{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand-mark{
  display:inline-flex;
  align-items:center;
}
.brand-mark img{
  height:26px;
  width:auto;
  display:block;
  transition:opacity .25s ease;
}
.brand-mark:hover img{opacity:0.7;}

.nav-links{
  display:flex;
  align-items:center;
  gap:var(--space-2);
  padding:var(--space-1);
  border:1px solid var(--line);
  border-radius:999px;
}
.nav-links a{
  font-size:var(--text-body-md-size);
  font-weight:var(--font-weight-medium);
  letter-spacing:var(--tracking-body);
  color:var(--ink-soft);
  white-space:nowrap;
  padding:var(--space-2) var(--space-5);
  border-radius:999px;
  transition:color .25s ease, background-color .25s ease;
}
.nav-links a:hover{color:var(--ink);background:var(--gray);}
.nav-links a.active{color:var(--white);background:var(--ink);}
.nav-links-cta{display:none;}

.nav-right{
  display:flex;
  align-items:center;
  gap:var(--space-6);
}
.lang-switch{
  display:flex;
  align-items:center;
  gap:var(--space-2);
  font-size:var(--text-body-sm-size);
  font-weight:var(--font-weight-medium);
  letter-spacing:0.02em;
}
.lang-switch button{
  background:none;
  border:none;
  color:var(--ink-soft);
  cursor:pointer;
  padding:var(--space-1) 2px;
  transition:color .2s ease;
}
.lang-switch button.active{
  color:var(--pine);
}
.lang-switch .sep{color:var(--line);}

.menu-toggle{
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:var(--space-1);
  width:40px;height:40px;
  background:none;
  border:none;
  border-radius:50%;
  cursor:pointer;
  padding:var(--space-2);
}
.menu-toggle span{
  width:20px;height:2px;
  background:var(--ink);
  border-radius:2px;
  transition:transform .3s ease, opacity .2s ease;
}
.menu-toggle.open{background:var(--surface-2);}
.menu-toggle.open span{background:var(--ink);}
.menu-toggle.open span:nth-child(1){transform:translateY(6px) rotate(45deg);}
.menu-toggle.open span:nth-child(2){opacity:0;}
.menu-toggle.open span:nth-child(3){transform:translateY(-6px) rotate(-45deg);}

/* ---------- Services (split zigzag layout) ---------- */
.service-rows{
  display:flex;
  flex-direction:column;
  gap:var(--space-35);
}
.service-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-20);
  align-items:stretch;
}
.service-row.reverse .service-media{order:2;}
.service-row.reverse .service-content{order:1;}

.service-media{
  border-radius:var(--radius-lg);
  background:var(--gray);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:var(--space-7);
  position:relative;
}
/* real image instead of a CSS mockup — sized to the image's own aspect
   ratio rather than stretched to match the row's text-content height. */
.service-media--flush{
  padding:0;
  overflow:hidden;
  align-self:center;
}
.service-media-image{
  display:block;
  width:100%;
  height:auto;
  /* aspect-ratio set inline per <img>, matching each source image's own
     natural dimensions (they differ per asset). */
  object-fit:cover;
  border-radius:var(--radius-lg);
}

/* .mockup-topbar is still used by services/checco.html's phone-mockup
   cards (skin/ranking/recommend) — kept. Everything else that used to
   live in this block (frame/body/line/list/avatar/search/product) was
   only ever used by the three index.html service-card mockups, all of
   which are now real <img> photos, so those rules were removed. */
.mockup-topbar{
  display:flex;
  gap:var(--space-2);
  padding:var(--space-4) var(--space-5);
  border-bottom:1px solid var(--line);
}
.mockup-topbar span{width:8px;height:8px;border-radius:50%;background:var(--line);}

.service-content{max-width:480px;}
.service-content .service-name-sub{
  display:block;
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:var(--text-body-sm-size);
  letter-spacing:0.14em;
  color:var(--pine);
  margin-bottom:var(--space-4);
  text-transform:uppercase;
}
.service-headline{
  font-size:clamp(var(--text-md-size),2.4vw,var(--text-xl-size));
  line-height:1.45;
  margin-bottom:var(--space-5);
}
.service-desc{
  color:var(--ink-soft);
  font-size:var(--text-body-md-size);
  line-height:var(--text-body-md-lh);
  margin-bottom:var(--space-7);
}
.service-features{
  display:flex;
  flex-direction:column;
  gap:var(--space-4);
  margin-bottom:var(--space-9);
}
.service-features li{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  font-size:var(--text-body-lg-size);
  color:var(--ink);
}
.feat-icon{width:20px;height:20px;flex-shrink:0;color:var(--pine);}

/* ---------- Icon badge (reused across cards + .feature-card tiles) ---------- */
.icon-badge{
  width:52px;height:52px;
  border-radius:var(--radius-md);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:var(--font-weight-bold);
  font-size:var(--text-body-lg-size);
  flex-shrink:0;
  margin-bottom:var(--space-7);
}
/* var(--white) resolves to the dark canvas color in this theme (see the
   legacy-alias note near the top) — fine as a light-on-light pill (see
   .nav-links a.active above), but wrong here: dark text on
   the --pine fill was only 4.12:1 (need 4.5:1). True white clears it. */
.icon-badge.icon-pine{background:var(--pine);color:var(--inverse-canvas);}
.icon-badge.icon-mint{background:var(--mint);color:var(--pine-dark);}

/* ==========================================================================
   Shared "Design System v2" service-page framework
   (1 hero → 2 pain-cloud → 3 solution → 4 brand-strip → 5 points →
   6 for-brands/cross-link → 7 trust-cta → 8 final-cta), used identically
   by all three services/*.html detail pages. Structural rules below are
   unscoped (their class names are unique to this framework); rules that
   override an already-generic sitewide class (.eyebrow, .section-head,
   .btn, .icon-badge…) are scoped under body.service-page so the homepage
   and any future non-service page are unaffected. Each page keeps its own
   accent color via checco.css / linkone.css overrides (pine green is the
   sitewide default, used as-is by influencer-marketing).
   ========================================================================== */

.service-page .eyebrow{
  background:var(--primary-soft);
  color:var(--pine);
  border-radius:999px;
  font-size:var(--v2-eyebrow-size);
  font-weight:var(--font-weight-medium);
  line-height:var(--v2-eyebrow-lh);
  letter-spacing:var(--v2-eyebrow-ls);
}
.service-page .section-head h2{
  font-size:var(--v2-headline-size);
  font-weight:var(--font-weight-semibold);
  line-height:var(--v2-headline-lh);
  letter-spacing:var(--v2-headline-ls);
}
.service-page .section-head .lead{
  font-size:var(--v2-body-lg-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-body-lg-lh);
  letter-spacing:var(--v2-body-lg-ls);
  color:var(--ink-soft);
}
.service-page .btn{
  font-size:var(--v2-button-size);
  font-weight:var(--font-weight-medium);
  line-height:var(--v2-button-lh);
  letter-spacing:var(--v2-button-ls);
}
.service-page .btn-primary{
  border-radius:8px;
  padding:8px 14px;
  min-height:40px;
}
.page-hero-v2 .page-hero-inner .btn-primary{
  padding:12px 20px;
  min-height:44px;
}

/* ---------- 1. Hero ----------
   .page-hero (below, "Sub page hero") is display:flex + min-height:50vh +
   overflow:hidden, built for a single centered .page-hero-inner child.
   This framework adds a second child (.hero-shot) below the text, so it
   must break out of that flex/row/clipped-height behavior into a normal
   stacked block, or the two children end up side-by-side instead of
   stacked. Selector is `.page-hero.page-hero-v2` (not just `.page-hero-v2`)
   so it reliably outranks the base `.page-hero` rule below regardless of
   which one appears later in this file. */
.page-hero.page-hero-v2{
  display:block;
  min-height:0;
  overflow:visible;
  background:var(--white);
  color:var(--ink);
  padding-bottom:var(--space-24); /* 96px — v2 spacing scale */
}
.page-hero-v2 .page-hero-inner{
  max-width:800px;
  margin:0 auto;
  padding:var(--space-24) var(--space-8) 0; /* 96px top, 32px sides */
}
/* `.page-hero.page-hero-v2 h1` (not just `.page-hero-v2 h1`) so this
   reliably outranks the base `.page-hero h1` rule below — both are a
   single class + element (equal specificity), so without the extra class
   here, source order would decide instead of intent. */
.page-hero.page-hero-v2 h1{
  font-size:var(--v2-display-lg-size);
  font-weight:var(--font-weight-semibold);
  line-height:var(--v2-display-lg-lh);
  letter-spacing:var(--v2-display-lg-ls);
}
.page-hero-v2 .page-hero-sub{
  font-size:var(--v2-subhead-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-subhead-lh);
  letter-spacing:var(--v2-subhead-ls);
  color:var(--ink-soft);
  max-width:560px;
  margin:0 auto var(--space-8); /* 32px */
}
.page-hero-v2 .btn-primary{margin-top:0;}
.hero-shot{
  aspect-ratio:16/9;
  max-width:1040px;
  background:var(--gray);
  border-radius:var(--radius-lg);
  margin:var(--space-12) auto 0; /* 48px — v2 spacing scale */
}

/* ---------- 2. Pain cloud ---------- */
.pain-cloud-section{background:var(--white);}
.pain-cloud-heading{
  font-size:var(--v2-display-lg-size);
  font-weight:var(--font-weight-semibold);
  line-height:var(--v2-display-lg-lh);
  letter-spacing:var(--v2-display-lg-ls);
  text-align:center;
  max-width:640px;
  margin:0;
  position:relative;
  z-index:2;
}
.accent-highlight{color:var(--pine);}

/* Scattered speech-bubble layout: 2 bubbles float above the heading, 2
   below, offset left/right asymmetrically, each with a small circular
   icon badge overlapping its corner. The wrap centers the heading in the
   middle band and places bubbles in the top/bottom bands via top/bottom %
   so they can never collide with the heading text regardless of viewport
   width. */
.pain-cloud-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:460px;
  max-width:1040px;
  margin:0 auto;
  padding:var(--space-8) 0;
}
.pain-cloud{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.pain-bubble{
  position:absolute;
  pointer-events:auto;
  max-width:270px;
  padding:var(--space-5) var(--space-6);
  background:var(--white);
  border:1px solid rgba(1,132,64,0.22);
  border-radius:28px;
  box-shadow:0 12px 28px -16px rgba(1,132,64,0.25);
  transition:box-shadow .25s ease;
}
.pain-bubble-1{--bubble-rotate:-3deg; top:22px;    left:2%;  }
.pain-bubble-2{--bubble-rotate:2deg;  top:48px;    right:5%; }
.pain-bubble-3{--bubble-rotate:-2deg; bottom:54px; left:7%;  }
.pain-bubble-4{--bubble-rotate:3deg;  bottom:22px; right:1%; }

/* decorative background-only badges filling the empty space between the
   4 corner bubbles — bare glyph, no card chrome, never intercepts clicks. */
.pain-deco{
  position:absolute;
  pointer-events:none;
  display:flex;align-items:center;justify-content:center;
  color:var(--mint);
  opacity:0.5;
  animation:painIconFloat 3.6s ease-in-out infinite;
}
.pain-deco svg{width:100%;height:100%;}
.pain-deco-1{top:0;      left:37%; width:34px;height:34px;}
.pain-deco-2{bottom:-6px;left:33%; width:32px;height:32px; animation-delay:.6s;}
.pain-deco-3{top:42%;    left:-16px;width:36px;height:36px; animation-delay:1.1s;}
.pain-deco-4{top:38%;    right:-18px;width:38px;height:38px; animation-delay:1.7s;}

/* fade-in + slide-up on scroll (via the sitewide .reveal/IntersectionObserver
   mechanism), staggered: heading first, then each bubble in sequence.
   Rotation is folded into the same transform as the reveal slide so the
   two don't fight over the `transform` property. */
.pain-cloud-heading.reveal,
.pain-bubble.reveal{
  transform:translateY(28px) rotate(var(--bubble-rotate,0deg));
}
.pain-cloud-heading.reveal.in,
.pain-bubble.reveal.in{
  transform:translateY(0) rotate(var(--bubble-rotate,0deg));
}
.pain-cloud-heading.reveal{transition-delay:0s;}
.pain-bubble-1.reveal{transition-delay:.15s;}
.pain-bubble-2.reveal{transition-delay:.3s;}
.pain-bubble-3.reveal{transition-delay:.45s;}
.pain-bubble-4.reveal{transition-delay:.6s;}

.pain-bubble:hover{
  transform:translateY(-8px) rotate(var(--bubble-rotate,0deg)) !important;
  box-shadow:0 20px 40px -16px rgba(1,132,64,0.35);
}
.pain-bubble-icon{
  position:absolute;
  top:-16px;
  width:34px;height:34px;
  border-radius:50%;
  background:var(--white);
  border:1px solid rgba(1,132,64,0.28);
  color:var(--pine);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 10px -4px rgba(1,132,64,0.3);
  animation:painIconFloat 3.2s ease-in-out infinite;
}
.pain-bubble-1 .pain-bubble-icon,
.pain-bubble-3 .pain-bubble-icon{left:-14px;}
.pain-bubble-2 .pain-bubble-icon,
.pain-bubble-4 .pain-bubble-icon{right:-14px;}
.pain-bubble-2 .pain-bubble-icon{animation-delay:.5s;}
.pain-bubble-3 .pain-bubble-icon{animation-delay:1s;}
.pain-bubble-4 .pain-bubble-icon{animation-delay:1.5s;}
.pain-bubble-icon svg{width:16px;height:16px;}
@keyframes painIconFloat{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-5px);}
}
@media (prefers-reduced-motion:reduce){
  .pain-bubble-icon{animation:none;}
}
.pain-bubble p{
  font-size:var(--v2-body-sm-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-body-sm-lh);
  letter-spacing:var(--v2-body-sm-ls);
  color:var(--ink-soft);
}

/* ---------- 3. Solution band ---------- */
.solution-band{
  position:relative;
  background:var(--white);
  overflow:hidden;
}
.solution-band::after{
  content:"";
  position:absolute;
  left:50%;bottom:-40%;
  transform:translateX(-50%);
  width:120%;
  aspect-ratio:2/1;
  background:radial-gradient(ellipse at center, rgba(1,132,64,0.16) 0%, rgba(1,132,64,0) 70%);
  pointer-events:none;
}
.solution-band .section-head{position:relative;z-index:1;}
.solution-band .section-head .lead{max-width:560px;margin:var(--space-4) auto 0;}
.service-page .solution-band .section-head h2{
  font-size:var(--v2-display-lg-size);
  line-height:var(--v2-display-lg-lh);
  letter-spacing:var(--v2-display-lg-ls);
}
.solution-points{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:var(--space-4);
  max-width:600px;
  margin:0 auto;
}
.solution-point{
  display:flex;
  align-items:center;
  gap:var(--space-4);
  color:var(--ink);
}
.solution-point-num{
  flex-shrink:0;
  width:32px;height:32px;
  border-radius:50%;
  background:var(--pine);
  /* Same var(--white)-on-dark-canvas issue as .icon-badge.icon-pine — was
     4.12:1 (need 4.5:1) against --pine. */
  color:var(--inverse-canvas);
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:var(--font-weight-bold);
  font-size:var(--text-body-md-size);
}
.solution-point span:last-child{
  font-size:var(--v2-body-sm-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-body-sm-lh);
  letter-spacing:var(--v2-body-sm-ls);
}
.solution-closing{
  position:relative;
  z-index:1;
  text-align:center;
  font-size:var(--text-sm-size);
  font-weight:var(--font-weight-bold);
  color:var(--pine);
  margin-top:var(--space-9);
}

/* ---------- 4. Brand strip ---------- */
.brand-strip{
  background:var(--gray);
  text-align:center;
  padding:var(--space-16) 0;
}
.brand-strip-wordmark{
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:var(--v2-display-md-size);
  line-height:var(--v2-display-md-lh);
  letter-spacing:var(--v2-display-md-ls);
  color:var(--ink);
  margin-bottom:var(--space-3);
}
.brand-strip-tagline{
  font-size:var(--v2-body-lg-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-body-lg-lh);
  letter-spacing:var(--v2-body-lg-ls);
  color:var(--ink-soft);
}

/* ---------- 5. Points (stacked alternating rows) ---------- */
.service-points{background:var(--white);}
.point-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:var(--space-14);
  padding:var(--space-12) 0;
  border-bottom:1px solid var(--line);
}
.point-row:last-child{border-bottom:none;}
.point-row-reverse .point-media{order:2;}
.point-row-reverse .point-body{order:1;}
.point-media{display:flex;justify-content:center;}
.point-body h3{
  font-size:var(--v2-card-title-size);
  font-weight:var(--font-weight-medium);
  line-height:var(--v2-card-title-lh);
  letter-spacing:var(--v2-card-title-ls);
  margin-bottom:var(--space-4);
}
.point-body p{
  font-size:var(--v2-body-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-body-lh);
  letter-spacing:var(--v2-body-ls);
  color:var(--ink-soft);
}

/* Generic icon-tile — the non-app alternative to checco.css's phone-mockup,
   used by influencer-marketing/linkone's .point-media (they have no app UI
   to show a screen of). Decorative circles stay neutral white-on-gray so
   no page-specific accent override is needed. */
.feature-card{
  position:relative;
  width:100%;
  max-width:280px;
  aspect-ratio:1;
  border-radius:var(--radius-surface);
  background:var(--gray);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.feature-card::before,
.feature-card::after{
  content:"";
  position:absolute;
  border-radius:50%;
}
.feature-card::before{width:130px;height:130px;top:-34px;right:-34px;background:rgba(255,255,255,0.6);}
.feature-card::after{width:90px;height:90px;bottom:-24px;left:-18px;background:rgba(255,255,255,0.4);}
.feature-card .icon-badge{
  position:relative;
  z-index:1;
  width:76px;height:76px;
  margin-bottom:0;
}
.feature-card .icon-badge svg{width:32px;height:32px;}

/* ---------- 6. For brands / cross-link cards ---------- */
.brands-section-v2{background:var(--white);}
.brands-grid-v2{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:var(--space-6);
  max-width:900px;
  margin:0 auto;
}
.brands-card-v2{
  display:block;
  border-radius:var(--radius-lg);
  padding:var(--space-9) var(--space-8);
  min-height:260px;
  text-align:left;
  transition:transform .3s ease;
}
.brands-card-v2:hover{transform:translateY(-4px);}
.brands-card-bright{background:var(--mint);color:var(--pine-dark);}
/* The global `h1,h2,h3,h4{color:var(--ink)}` rule directly matches this
   card's <h4> and wins over the ancestor color above (a direct match
   always beats an inherited value, regardless of specificity) — leaving
   bright ink-on-mint at 1.59:1. Needs its own direct override. */
.brands-card-bright h3{color:var(--pine-dark);}
.brands-card-soft{background:rgba(1,132,64,0.04);color:var(--ink);border:1px solid var(--line);}
/* h3, not h4 — these cards sit directly under an <h2> section title
   (skipped-heading finding), and the CSS must track the HTML tag since
   it's selected by element, not a class. */
.brands-card-v2 h3{
  font-size:var(--v2-card-title-size);
  font-weight:var(--font-weight-medium);
  line-height:var(--v2-card-title-lh);
  letter-spacing:var(--v2-card-title-ls);
  margin-bottom:var(--space-3);
}
.brands-card-v2 p{
  font-size:var(--v2-body-sm-size);
  font-weight:var(--font-weight-regular);
  line-height:var(--v2-body-sm-lh);
  letter-spacing:var(--v2-body-sm-ls);
  opacity:0.85;
}

/* ---------- 8. Final CTA ---------- */
.final-cta{
  background:var(--gray);
  text-align:center;
}
.final-cta h2{
  font-size:var(--v2-display-lg-size);
  font-weight:var(--font-weight-semibold);
  line-height:var(--v2-display-lg-lh);
  letter-spacing:var(--v2-display-lg-ls);
  margin-bottom:var(--space-6);
}
.final-cta-desc{
  max-width:560px;
  margin:0 auto var(--space-8);
  color:var(--ink-soft);
  font-size:var(--text-body-lg-size);
}
/* --pine text on this section's --gray (surface-1) background is only
   3.86:1 (need 4.5:1) — --mint is the token already documented as "light
   enough to read on the dark canvas" and hits 11:1 here. */
.final-cta .btn-outline{border-color:var(--mint);color:var(--mint);}
/* var(--white) is aliased to the dark canvas color in this redesign (see
   the legacy-alias comment near the top), so it reads as near-black —
   fine as body text, but only 4.12:1 against --pine here (need 4.5:1).
   True white clears it at 4.8:1. */
.final-cta .btn-outline:hover{background:var(--pine);color:var(--inverse-canvas);}

@media (max-width:860px){
  .pain-cloud-wrap{display:block;min-height:0;padding:0;}
  .pain-cloud-heading{margin-bottom:var(--space-8);}
  .pain-cloud{position:static;display:flex;flex-direction:column;align-items:center;gap:var(--space-6);}
  .pain-bubble{position:static;max-width:340px;}
  .pain-deco{display:none;}
  .pain-cloud-heading.reveal,
  .pain-bubble.reveal{transform:translateY(28px);}
  .pain-cloud-heading.reveal.in,
  .pain-bubble.reveal.in{transform:translateY(0);}
  .point-row{grid-template-columns:1fr;gap:var(--space-6);text-align:center;}
  .point-row-reverse .point-media{order:1;}
  .point-row-reverse .point-body{order:2;}
  .brands-grid-v2{grid-template-columns:1fr;}
  .page-hero.page-hero-v2 h1,
  .pain-cloud-heading,
  .service-page .solution-band .section-head h2,
  .final-cta h2{
    font-size:36px;
    /* --v2-display-lg-ls (-1.8px) was tuned for the 56px desktop size
       (-3.2%); left as-is at 36px it becomes -5%, crushed enough to
       distort the glyphs. Scale it down to match. */
    letter-spacing:-1.2px;
  }
  .page-hero-v2 .page-hero-inner{padding-top:var(--space-12);}
}

/* ---------- Trust / evidence section (shared by services/*.html) ---------- */
.trust-section{background:var(--white);}
.trust-head{max-width:680px;margin:0 auto var(--space-13);text-align:center;}
.trust-tag{
  display:inline-flex;
  align-items:center;
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:var(--text-body-sm-size);
  letter-spacing:0.04em;
  background:var(--mint);
  color:var(--pine-dark);
  padding:var(--space-2) var(--space-4);
  border-radius:var(--radius-md);
  margin-bottom:var(--space-5);
}
.trust-title{font-size:var(--text-xl-size);font-weight:var(--font-weight-semibold);line-height:var(--text-xl-lh);letter-spacing:var(--tracking-heading);margin-bottom:var(--space-4);}
.trust-sub{color:var(--ink-soft);font-size:var(--text-body-lg-size);}

.trust-cards{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-6);}
.trust-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:var(--space-8);
}
.trust-card-label{
  display:flex;
  align-items:center;
  gap:var(--space-2);
  font-size:var(--text-body-sm-size);
  font-weight:var(--font-weight-semibold);
  color:var(--ink-soft);
  letter-spacing:0.02em;
  margin-bottom:var(--space-4);
}
.trust-card-icon{width:18px;height:18px;color:var(--pine);flex-shrink:0;}
.trust-card-title{font-size:var(--text-sm-size);font-weight:var(--font-weight-bold);line-height:1.5;margin-bottom:var(--space-6);}
.trust-num{color:var(--pine);}

.trust-box{background:var(--gray);border-radius:var(--radius-md);padding:var(--space-5) var(--space-6);margin-bottom:var(--space-4);}

.trust-stars{color:#F5A623;font-size:var(--text-body-md-size);letter-spacing:2px;margin-bottom:var(--space-3);}
.trust-review-text{font-size:var(--text-body-md-size);color:var(--ink);line-height:1.6;margin-bottom:var(--space-4);}
.trust-tags{display:flex;gap:var(--space-2);flex-wrap:wrap;}
.trust-chip{
  font-size:var(--text-body-sm-size);
  font-weight:var(--font-weight-semibold);
  background:var(--white);
  border:1px solid var(--line);
  color:var(--ink-soft);
  padding:var(--space-1) var(--space-3);
  border-radius:20px;
}

.trust-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:var(--space-3) 0;
  border-bottom:1px solid var(--line);
  font-size:var(--text-body-md-size);
}
.trust-row:last-child{border-bottom:none;}
.trust-row-label{color:var(--ink);font-weight:var(--font-weight-semibold);}
.trust-row-value{color:var(--pine);font-weight:var(--font-weight-bold);font-family:var(--font-display);}

.trust-searchbar{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:20px;
  padding:var(--space-3) var(--space-4);
  margin-bottom:var(--space-4);
  font-size:var(--text-body-md-size);
  color:var(--ink-soft);
}
.trust-search-dot{width:14px;height:14px;border-radius:50%;border:2px solid var(--pine);flex-shrink:0;}
.trust-search-list{display:flex;flex-wrap:wrap;gap:var(--space-2);}

.trust-footnote{font-size:var(--text-body-sm-size);color:var(--ink-soft);opacity:0.8;}

.trust-cta{
  margin-top:var(--space-15);
  background:linear-gradient(135deg, var(--pine-dark), var(--ink));
  padding:var(--space-13) 0;
}
.trust-cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-6);
  flex-wrap:wrap;
}
.trust-cta-title{color:#fff;font-size:var(--text-sm-size);font-weight:var(--font-weight-bold);line-height:1.5;}
.trust-cta-btn{flex-shrink:0;}

@media (max-width:860px){
  .trust-cards{grid-template-columns:1fr;}
  .trust-cta-inner{flex-direction:column;align-items:flex-start;}
}

/* ---------- News + Company: light mode ----------
   Explicit request: these two sections read light while the rest of the
   homepage stays dark. Every news- and company-prefixed rule already
   reads its colors through the semantic tokens (--ink, --hairline, --surface-*,
   --gray, --white, --canvas, etc.) instead of hardcoded hex, so
   re-declaring just the BASE tokens here — scoped to these two sections
   — cascades through every alias (--ink:var(--ink-bright), --line:
   var(--hairline), etc. all resolve using the LOCAL override once
   they're read from inside #news/#company) without touching a single
   existing news- or company-prefixed declaration. --primary/--primary-soft
   (pine green, translucent green chip) are left alone — that green
   already reads fine on a light background, this is only about the
   neutrals. */
#news, #company{
  /* --canvas drives the section's own backdrop; --white stays actual
     white (not this tint) so .company-table's cards still read as
     distinct raised surfaces against the backdrop instead of blending
     into it. FFFCE1 (back from a brief F9F7E7 detour) matches
     .voices.is-revealed's own background exactly (home.css), so every
     light section on the page shares the same tone. */
  --canvas:      #FFFCE1;
  --white:       #FFFFFF;
  --surface-1:   #F4F4F5;
  --surface-2:   #EFEFF1;
  --surface-3:   #E4E4E7;
  --gray:        #F4F4F5;
  --hairline:        rgba(10,10,12,0.1);
  --hairline-strong: rgba(10,10,12,0.16);
  --ink-bright:  #0A0A0C;
  --ink-muted:   rgba(10,10,12,0.62);
  --ink-subtle:  #6B7280;
  /* The base tokens above aren't enough on their own: --ink, --ink-soft,
     --line etc. are declared at :root as e.g. "--ink: var(--ink-bright)"
     — that var() gets resolved ONCE, against :root's OWN --ink-bright,
     and the resulting computed value (not a live reference) is what
     inherits down. Redeclaring --ink-bright in here doesn't retroactively
     change the already-computed --ink these rules actually read, so the
     aliases themselves need overriding too. */
  --ink:      #0A0A0C;
  --ink-soft: rgba(10,10,12,0.62);
  --line:     rgba(10,10,12,0.1);
  --line-dark: rgba(10,10,12,0.16);
  background:var(--canvas);
}
/* --primary-hover (mint) is a LIGHT accent meant for dark backgrounds —
   .news-tag is the one place within these two sections that uses it as
   TEXT (on its own pale-green chip), so it gets a direct, narrowly-
   scoped fix instead of overriding --primary-hover/--mint here too
   (that token is also used for hover/focus states sitewide that still
   need their original dark-canvas-tuned value). */
#news .news-tag{color:var(--primary);}

/* ---------- Company ---------- */
.company-section{background:var(--gray);}
.company-tables{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-10);
  align-items:start;
}
.company-block-title{
  font-family:var(--font-display);
  font-size:var(--text-body-md-size);
  font-weight:var(--font-weight-bold);
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--pine);
  margin-bottom:var(--space-4);
}
.company-table{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:var(--space-2) var(--space-8);
  box-shadow:var(--shadow-sm);
}
.company-row{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:var(--space-6);
  padding:var(--space-5) 0;
  border-bottom:1px solid var(--line);
}
.company-row:last-child{border-bottom:none;}
.company-row dt{
  font-size:var(--text-body-md-size);
  letter-spacing:var(--tracking-body);
  color:var(--pine);
  font-family:var(--font-sans);
  font-weight:var(--font-weight-semibold);
}
.company-row dd{
  margin:0;
  font-size:var(--text-body-md-size);
  color:var(--ink);
}

/* ---------- Contact ---------- */
/* real background photo (assets/images/background.png — dark green glass
   surface with a light streak, baked in) instead of a hand-built CSS
   gradient/SVG effect. A flat dark overlay sits between the image and
   the form so labels/inputs/button stay readable regardless of where
   the image's bright streak falls. */
.contact-section{
  position:relative;
  background-image:linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url("../images/background.png");
  background-size:cover;
  background-position:center;
  color:var(--on-dark);
}
.contact-section .wrap{position:relative;z-index:1;}
.contact-section .eyebrow{background:rgba(255,255,255,0.16);color:var(--ink);}
.contact-section .section-head h2{color:var(--on-dark);}
.contact-section .section-head .lead{color:var(--on-dark-muted);}

.contact-form{
  max-width:760px;
  margin:0 auto;
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-7) var(--space-8);
}
.form-row{display:flex;flex-direction:column;gap:var(--space-3);}
.form-row.full{grid-column:1 / -1;}
.form-row label{
  font-size:var(--text-body-sm-size);
  letter-spacing:0.05em;
  color:var(--on-dark-muted);
}
.form-row input,
.form-row textarea{
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:8px;
  color:var(--on-dark);
  font-family:var(--font-sans);
  font-size:var(--text-body-lg-size);
  padding:var(--space-3) var(--space-4);
  outline:none;
  transition:background-color .25s ease, border-color .25s ease;
  resize:vertical;
}
.form-row input:focus,
.form-row textarea:focus{background:rgba(255,255,255,0.14);border-color:rgba(255,255,255,0.5);}
.form-row input::placeholder,
.form-row textarea::placeholder{color:rgba(245,245,245,0.45);}

.contact-form .btn{margin-top:var(--space-10);}
/* Contact used to sit as the one dark section on an otherwise light site,
   so its submit button needed a special white-on-dark override. The whole
   site is dark now, so it just uses the standard pine-green .btn-primary. */
/* scoped to the contact-form submit button only — other .btn-primary/.btn
   usages (bottom CTA banners, hero buttons, etc.) keep their normal
   inline size and are not affected by this. */
.submit-btn-full{width:100%;justify-content:center;}
.form-note{
  margin-top:var(--space-4);
  font-size:var(--text-body-sm-size);
  color:var(--on-dark-muted);
}
.form-error{text-align:center; color:var(--inverse-canvas);}
.form-error a{color:inherit; text-decoration:underline;}
.form-hp{position:absolute; left:-9999px; width:1px; height:1px; opacity:0;}
.form-success{
  text-align:center;
  padding:var(--space-15) var(--space-5);
  font-size:var(--text-body-lg-size);
  /* .contact-section (this message's container) has a dark background
     image; var(--white) resolves to the dark canvas color, making this
     text invisible. */
  color:var(--inverse-canvas);
  font-family:var(--font-sans);
  font-weight:var(--font-weight-medium);
  line-height:2;
}

/* ---------- Footer ----------
   Was a pine-green brand-color close; Linear's own footer spec is flat
   canvas with no color fill, so this drops back to that (see Do/Don't in
   design-reference/DESIGN-linear.app.md). Shared by all pages. */
footer.site-footer{
  background:var(--canvas);
  color:var(--on-dark-muted);
  padding:var(--space-13) 0 var(--space-8);
  border-top:1px solid var(--hairline);
}
.footer-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:var(--space-6);
  padding-bottom:var(--space-10);
}
/* The footer sits on the dark canvas; var(--white) resolves to that same
   dark color (see the legacy-alias note near the top), which made both
   this wordmark and the "back to top" pill below it fully invisible
   (1:1 contrast — dark text on dark background). True white fixes it. */
.footer-wordmark{
  font-family:var(--font-display);
  font-weight:var(--font-weight-semibold);
  font-size:clamp(40px,7vw,72px);
  line-height:1;
  letter-spacing:-0.02em;
  color:var(--inverse-canvas);
}
.footer-wordmark sup{font-size:0.35em;}
.footer-top-link{
  display:inline-flex;
  align-items:center;
  gap:var(--space-2);
  background:rgba(255,255,255,0.1);
  border:1px solid var(--line-dark);
  color:var(--inverse-canvas);
  font-family:var(--font-sans);
  font-size:var(--text-body-md-size);
  font-weight:var(--font-weight-medium);
  padding:var(--space-3) var(--space-6);
  border-radius:999px;
  cursor:pointer;
  transition:background-color .2s ease, transform .2s ease;
}
.footer-top-link:hover{background:rgba(255,255,255,0.2);transform:translateY(-2px);}

.footer-newsletter{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-10);
  align-items:end;
  padding:var(--space-10) 0;
  border-top:1px solid var(--line-dark);
  border-bottom:1px solid var(--line-dark);
}
.footer-newsletter-copy h3{
  /* Same dark-on-dark var(--white) issue as .footer-wordmark above. */
  color:var(--inverse-canvas);
  font-size:var(--text-lg-size);
  font-weight:var(--font-weight-semibold);
  line-height:1.3;
  margin-bottom:var(--space-3);
}
.footer-newsletter-copy p{font-size:var(--text-body-md-size);max-width:360px;}
.newsletter-form{display:flex;flex-direction:column;gap:var(--space-4);}
.newsletter-field label{
  display:block;
  font-size:var(--text-body-sm-size);
  letter-spacing:0.04em;
  margin-bottom:var(--space-2);
}
.newsletter-field input{
  width:100%;
  background:none;
  border:none;
  border-bottom:1px solid var(--line-dark);
  /* Same dark-on-dark var(--white) issue as .footer-wordmark above —
     typed text would've been invisible against this dark footer. */
  color:var(--inverse-canvas);
  font-family:var(--font-sans);
  font-size:var(--text-body-lg-size);
  padding:var(--space-2) 0;
  outline:none;
  transition:border-color .2s ease;
}
.newsletter-field input:focus{border-color:var(--mint);}
.newsletter-field input::placeholder{color:rgba(245,245,245,0.4);}
.newsletter-check{
  display:flex;
  align-items:center;
  gap:var(--space-3);
  font-size:var(--text-body-sm-size);
  color:var(--on-dark-muted);
  cursor:pointer;
}
.newsletter-check input{accent-color:var(--mint);width:16px;height:16px;}
.newsletter-form .btn{align-self:flex-start;}
.newsletter-success{font-size:var(--text-body-md-size);color:var(--mint);}

.footer-cols{
  display:grid;
  /* 2 link columns now (SERVICE/COMPANY), not 4 — SOCIAL/LEGAL dropped
     per the reference redesign — plus a wider first column for the
     brand block. */
  grid-template-columns:1.4fr 1fr 1fr;
  gap:var(--space-10);
  /* padding-top/bottom only, NOT the `padding` shorthand — that reset
     left/right to 0, wiping out .wrap's own 5vw side padding here only
     (the other footer .wrap rows use top/bottom-only longhands too and
     never had this problem). */
  padding-top:var(--space-10);
  padding-bottom:var(--space-10);
}
.footer-brand-logo{margin-bottom:var(--space-4);}
.footer-brand-logo img{height:28px; width:auto; display:block;}
.footer-brand-desc{
  font-size:var(--text-body-md-size);
  line-height:1.6;
  color:var(--on-dark-muted);
  max-width:320px;
}
/* h3, not h4 — the newsletter block (which used to carry its own <h3>
   between the page's h2 sections and these) was removed, and the
   mismatched <h4>...</h5> closing tags here were an actual markup bug
   on top of that, so these now follow the last h2 directly with no
   level skipped. CSS must track the HTML tag since it's selected by
   element, not a class. */
.footer-col h3{
  font-size:var(--text-body-sm-size);
  letter-spacing:0.1em;
  /* NOT var(--cream) — that alias actually resolves to --ink-subtle (a
     gray), one of the "same token, two incompatible jobs" legacy aliases
     flagged near :root's own definitions. explicit request was to match
     the footer's own ELINHA logo mark (elinha-logo-light.svg), which is
     filled with the real brand cream, #E4DECE. */
  color:#E4DECE;
  margin-bottom:var(--space-5);
  text-transform:uppercase;
  font-weight:var(--font-weight-semibold);
}
.footer-col li{margin-bottom:var(--space-3);font-size:var(--text-body-md-size);}
.footer-col p{font-size:var(--text-body-md-size);margin-bottom:var(--space-3);}
.footer-col a:hover{color:var(--on-dark);}
.footer-social{display:flex;gap:var(--space-3);align-items:flex-start;}
.social-icon{
  width:36px;height:36px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  color:var(--on-dark);
  display:flex;align-items:center;justify-content:center;
  font-size:11px;font-weight:var(--font-weight-bold);
  transition:background-color .2s ease;
}
.social-icon:hover{background:rgba(255,255,255,0.22);}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;   /* the copyright line sits level with the last address line */
  flex-wrap:wrap;
  gap:var(--space-6);
  padding-top:var(--space-7);
  border-top:1px solid var(--line-dark);
  font-family:var(--font-sans);
  font-size:var(--text-body-sm-size);
  color:var(--on-dark-muted);
}
/* Left: legal name / phone / address, stacked, no field labels — per
   explicit reference/request. Right: privacy/terms links above the
   copyright line, right-aligned. */
.footer-bottom-left{display:flex; flex-wrap:wrap; gap:var(--space-6) var(--space-12);}
.footer-entity{display:flex; flex-direction:column; gap:var(--space-2);}   /* parent company (ELINHA Co., Ltd., Korea) first, then the Japan entity beside it */
.footer-bottom-right{display:flex; flex-direction:column; justify-content:space-between; align-self:stretch; align-items:flex-end; gap:var(--space-3); text-align:right;}   /* links level with the first address line, copyright level with the last */
.footer-legal-links{display:flex; gap:var(--space-6);}
.footer-legal-links a{color:var(--on-dark-muted);}
.footer-legal-links a:hover{color:var(--on-dark);}
@media (max-width:640px){
  .footer-bottom-right{align-items:flex-start; text-align:left;}
}

/* ---------- Sub page hero ---------- */
.page-hero{
  min-height:50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:var(--white);
  color:var(--ink);
  padding-top:var(--header-h);
  position:relative;
  overflow:hidden;
}
.page-hero-inner{position:relative;z-index:1;padding:0 24px;}
.page-hero h1{
  color:var(--ink);
  font-size:var(--text-xl-size);
  font-weight:var(--font-weight-semibold);
  line-height:var(--text-xl-lh);
  letter-spacing:var(--tracking-heading);
  margin-bottom:var(--space-5);
}
.page-hero p{
  color:var(--ink-soft);
  max-width:560px;
  margin:0 auto;
  font-size:var(--text-body-lg-size);
}
.page-hero-cta{margin-top:var(--space-8);}

.page-section{padding:var(--space-28) 0;}

/* ---------- Reveal ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .8s ease, transform .8s ease;
}
.reveal.in{opacity:1;transform:translateY(0);}

/* ---------- Responsive ---------- */
@media (max-width:980px){
  .service-row,.service-row.reverse{grid-template-columns:1fr;gap:var(--space-8);}
  .service-row.reverse .service-media{order:0;}
  .service-row.reverse .service-content{order:1;}
  .service-media{aspect-ratio:16/9;}
  .service-content{max-width:none;}
  .service-rows{gap:var(--space-16);}
  .footer-cols{grid-template-columns:repeat(2,1fr);gap:var(--space-8);}
  .footer-newsletter{grid-template-columns:1fr;gap:var(--space-6);}
}

@media (max-width:760px){
  .nav-links{
    position:fixed;
    top:var(--header-h);left:0;right:0;
    background:var(--white);
    border:none;
    border-radius:0;
    flex-direction:column;
    align-items:stretch;
    gap:var(--space-2);
    padding:var(--space-6) var(--space-8) var(--space-8);
    border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-md);
    transform:translateY(-140%);
    transition:transform .35s ease;
  }
  .nav-links.open{transform:translateY(0);}
  .nav-links a{white-space:normal;padding:var(--space-4) var(--space-2);border-radius:var(--radius-md);}
  .nav-links a:hover{background:var(--gray);}
  .nav-links-cta{
    display:inline-flex;
    justify-content:center;
    margin-top:var(--space-4);
  }
  .menu-toggle{display:flex;}
  .nav-right .btn{display:none;}
  section,.page-section{padding:var(--space-20) 0;}
  .form-grid{grid-template-columns:1fr;}
  .company-tables{grid-template-columns:1fr;gap:var(--space-10);}
  .news-list,.company-table{padding:var(--space-1) var(--space-6);}
  .hero-watermark{width:min(120vw,560px);}
  .footer-cols{grid-template-columns:1fr;gap:var(--space-8);}
  .footer-hero{flex-direction:column;align-items:flex-start;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}

@media (prefers-reduced-motion:reduce){
  .hero-watermark,
  .hero-mega .fade-part,.hero-mega .crisp-part,.hero-mega .sharp-part,.hero-mega-jp,.hero-cta{
    animation:none !important;
  }
  .hero-mega .fade-part,.hero-mega .crisp-part,.hero-mega .sharp-part,.hero-mega-jp,.hero-cta{
    opacity:1;transform:none;
  }
  .mark::before{width:100% !important;}
}

/* Phones: nicer line breaks. Japanese phrases come wrapped in .ja-ph by ja-phrase-break.js; Korean breaks between words;
   headings even out their lines so a single word is not left alone on the last one. */
@media (max-width:760px){
  .ja-ph{white-space:nowrap;}
  :lang(ko) :is(h1, h2, h3, p){word-break:keep-all;}
  :is(h1, h2, h3){text-wrap:balance;}
}
