/* =============================================================
   HILLSIDE — hillsidemember.com
   -------------------------------------------------------------
   THEME TOKENS LIVE IN :root BELOW.
   To apply your brand colours, change only the values inside the
   "BRAND" block — nothing else needs to be touched.
   ============================================================= */

:root {
  /* ===== BRAND — drawn from the Hillside logo ===== */
  --ink:          #14261a; /* deepest pine — text, footer, dark sections   */
  --fairway:      #1b3021; /* logo green — hero / footer surface           */
  --fairway-deep: #102017; /* darkest green — gradient floor               */
  --canvas:       #f5f2ea; /* warm ivory — page background                 */
  --paper:        #fbfaf5; /* lighter ivory — raised panels                */
  --brass:        #8a712e; /* deepened logo gold — accents on light bg     */
  --brass-bright: #cbae61; /* logo gold — accents on dark bg, the icon gold*/
  --sage:         #8a9a85; /* muted sage — secondary text on dark          */
  --line:         #e3dccd; /* hairline on light                            */
  --line-dark:    #2c3a2a; /* hairline on dark                             */
  /* ================================================ */

  --txt:        var(--ink);
  --txt-soft:   #4c5a4f;
  --txt-mute:   #6f7c70;
  --txt-on-dark:#eef0e7;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --measure: 68ch;
  --pad: clamp(1.25rem, 5vw, 3.5rem);
  --maxw: 1180px;

  --r: 4px;            /* restrained radius — this is not a soft brand */
  --dur: .6s;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--txt);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; }
h1,h2,h3,h4 { margin: 0; font-weight: 500; line-height: 1.08; }
p { margin: 0; }
ul { margin: 0; }

/* ---------- type roles ---------- */
.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow.on-dark { color: var(--brass-bright); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  letter-spacing: .01em;
  padding: .85em 1.5em;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-brass { background: var(--brass-bright); color: var(--ink); }
.btn-brass:hover { background: #d8be72; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--txt); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-ghost.on-dark { color: var(--txt-on-dark); border-color: var(--line-dark); }
.btn-ghost.on-dark:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

/* refined inline link with growing brass underline */
.ulink {
  text-decoration: none; color: inherit; position: relative;
  padding-bottom: 1px;
}
.ulink::after {
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background: var(--brass); transition: right .35s var(--ease);
}
.ulink:hover::after { right: 0; }

/* =============================================================
   HEADER
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--txt); }
.brand-mark { width: 30px; height: 30px; color: var(--brass); flex: none; border-radius: 7px; }
.brand-word {
  font-family: var(--display); font-size: 1.55rem; font-weight: 600;
  letter-spacing: .04em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--txt-soft);
  letter-spacing: .01em;
}
.nav-links a:hover { color: var(--brass); }
.nav-cta { font-size: .85rem !important; padding: .6em 1.1em; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; color: var(--txt);
}
.nav-toggle svg { width: 24px; height: 24px; margin-inline: auto; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% -10%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 55%),
    linear-gradient(170deg, var(--fairway) 0%, var(--fairway-deep) 100%);
  color: var(--txt-on-dark);
}
.hero-contours {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 60%;
  opacity: .5; pointer-events: none;
}
.hero-contours path { fill: none; stroke: var(--brass-bright); stroke-width: 1; opacity: .35; }
.hero-inner {
  position: relative; z-index: 1;
  padding-block: clamp(5rem, 13vw, 9.5rem);
  max-width: 56rem;
}
.hero .eyebrow { color: var(--brass-bright); }
.hero-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 1.1rem;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--brass-bright); }
.hero-sub {
  margin-top: 1.6rem; max-width: 40rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: color-mix(in srgb, var(--txt-on-dark) 86%, var(--sage));
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* =============================================================
   DIVIDER — the recurring hill-contour signature
   ============================================================= */
.contour-rule { display: block; width: 100%; height: 38px; color: var(--brass); opacity: .55; }
.contour-rule path { fill: none; stroke: currentColor; stroke-width: 1; }

/* =============================================================
   EXPERIENCE / BENEFITS
   ============================================================= */
.lead-head { max-width: 40rem; }
.lead-head .display { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: .9rem; }
.lead-head p { margin-top: 1.1rem; color: var(--txt-soft); font-size: 1.1rem; }

.benefits {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.benefit { background: var(--canvas); padding: clamp(1.75rem, 3vw, 2.6rem); }
.benefit-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
}
.benefit h3 {
  font-family: var(--display); font-size: 1.8rem; font-weight: 500;
  margin-top: .55rem; letter-spacing: -0.01em;
}
.benefit p { margin-top: .7rem; color: var(--txt-soft); font-size: 1.02rem; }

/* tier strip */
.tiers {
  margin-top: clamp(2.5rem,5vw,3.5rem);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .9rem 1.4rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.tiers .tier-label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-mute); }
.tier-names { display: flex; align-items: baseline; gap: 1rem; }
.tier-names span { font-family: var(--display); font-size: 1.45rem; font-weight: 500; }
.tier-names span:nth-child(1){ color: #8d8a82; }
.tier-names span:nth-child(2){ color: var(--brass); }
.tier-names span:nth-child(3){ color: var(--ink); }
.tier-dot { color: var(--line); }
.tiers .tier-note { margin-left: auto; color: var(--txt-soft); font-size: .98rem; }

/* =============================================================
   DOWNLOAD
   ============================================================= */
.download {
  background:
    radial-gradient(120% 90% at 15% 0%, color-mix(in srgb, var(--brass) 12%, transparent), transparent 50%),
    linear-gradient(190deg, var(--fairway) 0%, var(--fairway-deep) 100%);
  color: var(--txt-on-dark);
  position: relative; overflow: hidden;
}
.download .display { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.download p.dl-sub { margin-top: 1rem; color: color-mix(in srgb, var(--txt-on-dark) 84%, var(--sage)); font-size: 1.12rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.dl-note { margin-top: 1.5rem; font-size: .85rem; color: var(--sage); letter-spacing: .01em; }

/* store badge button */
.badge {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #0c1610; color: #fff; text-decoration: none;
  padding: .7rem 1.25rem; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.badge:hover { border-color: var(--brass-bright); transform: translateY(-1px); background:#0f1c14; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.badge-text small { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.badge-text strong { font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--ink); color: var(--txt-on-dark);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.25rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-mark { color: var(--brass-bright); }
.footer-blurb { margin-top: 1rem; color: var(--sage); max-width: 26ch; font-size: .96rem; }
.footer-col h4 {
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-bright); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.footer-col a, .footer-col span { font-size: .96rem; color: color-mix(in srgb, var(--txt-on-dark) 78%, var(--sage)); text-decoration: none; }
.footer-col a:hover { color: var(--brass-bright); }
.footer-bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center;
  font-size: .85rem; color: var(--sage);
}
.footer-bottom .sep { color: var(--line-dark); }

/* =============================================================
   DOCUMENT PAGES (privacy / terms / support)
   ============================================================= */
.doc-hero {
  background: linear-gradient(170deg, var(--fairway) 0%, var(--fairway-deep) 100%);
  color: var(--txt-on-dark);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.doc-hero h1 { font-family: var(--display); font-size: clamp(2.3rem, 5vw, 3.4rem); margin-top: .8rem; }
.doc-hero p { margin-top: .9rem; color: var(--sage); }
.doc-body { padding-block: clamp(3rem, 6vw, 4.5rem); }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: clamp(2rem,4vw,4rem); align-items: start; }
.doc-toc { position: sticky; top: 90px; }
.doc-toc h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-mute); margin-bottom: .9rem; }
.doc-toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding-left: 1rem; margin-left: -1px; font-size: .9rem; color: var(--txt-soft); text-decoration: none; border-left: 1px solid transparent; line-height: 1.4; }
.doc-toc a:hover { color: var(--brass); border-left-color: var(--brass); }

.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--display); font-size: 1.75rem; font-weight: 500;
  margin-top: 2.6rem; padding-top: .4rem; scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 600; margin-top: 1.7rem; color: var(--ink); }
.prose p { margin-top: .9rem; color: var(--txt-soft); }
.prose ul { margin-top: .9rem; padding-left: 1.2rem; color: var(--txt-soft); }
.prose li { margin-top: .4rem; }
.prose li::marker { color: var(--brass); }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

.legal-flag {
  margin-bottom: 2rem; padding: 1rem 1.25rem; border-radius: var(--r);
  background: color-mix(in srgb, var(--brass) 9%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--brass) 28%, var(--line));
  font-size: .92rem; color: var(--txt-soft); line-height: 1.55;
}
.legal-flag strong { color: var(--brass); }

/* FAQ */
.faq { max-width: var(--measure); margin-top: 1.5rem; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 1.15rem 0;
}
.faq summary {
  cursor: pointer; list-style: none; font-family: var(--display);
  font-size: 1.3rem; font-weight: 500; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-family: var(--sans); font-weight: 400; font-size: 1.4rem; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .8rem; color: var(--txt-soft); }

.contact-card {
  display: grid; gap: 1.5rem; max-width: var(--measure);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2.5rem;
}
.contact-tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.contact-tile h3 { font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.contact-tile p { margin-top: .5rem; color: var(--txt-soft); font-size: .96rem; }
.contact-tile a { color: var(--brass); text-decoration: none; font-weight: 600; }
.contact-tile a:hover { text-decoration: underline; }

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .hero-inner > * { animation: rise .9s var(--ease) both; }
  .js .hero-inner > *:nth-child(1){ animation-delay:.05s; }
  .js .hero-inner > *:nth-child(2){ animation-delay:.15s; }
  .js .hero-inner > *:nth-child(3){ animation-delay:.27s; }
  .js .hero-inner > *:nth-child(4){ animation-delay:.4s; }
  @keyframes rise { from { opacity:0; transform: translateY(22px); } to { opacity:1; transform:none; } }
}

/* =============================================================
   FOCUS / A11Y
   ============================================================= */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: absolute; left: -999px; top: .5rem;
  background: var(--ink); color:#fff; padding: .6rem 1rem; border-radius: var(--r); z-index: 100;
}
.skip-link:focus { left: .75rem; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open { position: absolute; left: 0; right: 0; top: 68px; background: var(--canvas); border-bottom: 1px solid var(--line); padding: 1rem var(--pad) 1.5rem; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; width:100%; }
  .nav.is-open .nav-cta { display: inline-flex; margin-top: .5rem; }
  .benefits { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
  .tiers .tier-note { margin-left: 0; width: 100%; }
}
@media (max-width: 460px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* =============================================================
   INTERNATIONALISATION — per-language fonts + language switcher
   ============================================================= */
html[lang="th"] { --display: "Trirong", "Cormorant Garamond", Georgia, serif; --sans: "IBM Plex Sans Thai", "Hanken Grotesk", system-ui, sans-serif; }
html[lang="ko"] { --display: "Noto Serif KR", "Cormorant Garamond", Georgia, serif; --sans: "Noto Sans KR", "Hanken Grotesk", system-ui, sans-serif; }
html[lang="ja"] { --display: "Noto Serif JP", "Cormorant Garamond", Georgia, serif; --sans: "Noto Sans JP", "Hanken Grotesk", system-ui, sans-serif; }
html[lang="zh"] { --display: "Noto Serif SC", "Cormorant Garamond", Georgia, serif; --sans: "Noto Sans SC", "Hanken Grotesk", system-ui, sans-serif; }

/* the display serif carries Latin punctuation oddly in CJK at italic; keep emphasis colour only */
html[lang="ko"] .hero-title em, html[lang="ja"] .hero-title em,
html[lang="zh"] .hero-title em, html[lang="th"] .hero-title em { font-style: normal; }

/* wide letter-spacing is designed for Latin caps; ease it for other scripts */
html[lang="th"] .eyebrow, html[lang="ko"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="zh"] .eyebrow,
html[lang="th"] .benefit-tag, html[lang="ko"] .benefit-tag, html[lang="ja"] .benefit-tag, html[lang="zh"] .benefit-tag { letter-spacing: .08em; }

.lang-switch { position: relative; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
.lang-btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 1px solid var(--line); border-radius: var(--r); padding: .5em .7em; font-size: .85rem; font-weight: 500; color: var(--txt-soft); cursor: pointer; line-height: 1; transition: border-color .2s var(--ease), color .2s var(--ease); }
.lang-btn:hover { border-color: var(--brass); color: var(--brass); }
.lang-btn svg { flex: none; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 156px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(20,38,26,.14); padding: .35rem; display: none; z-index: 60; }
.lang-switch.open .lang-menu { display: block; }
.lang-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-radius: calc(var(--r) - 1px); padding: .55em .7em; font-size: .92rem; color: var(--txt); cursor: pointer; font-family: inherit; }
.lang-item:hover { background: color-mix(in srgb, var(--brass) 12%, transparent); color: var(--brass); }
.lang-item[aria-current="true"] { color: var(--brass); font-weight: 600; }

@media (max-width: 860px) {
  .nav.is-open .lang-switch { margin-top: .25rem; }
  .lang-menu { right: auto; left: 0; }
}

/* =============================================================
   PRE-LAUNCH / COMING SOON STATE
   To go live: see README "At launch" checklist.
   ============================================================= */
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-bright);
  border: 1px solid color-mix(in srgb, var(--brass-bright) 45%, transparent);
  background: color-mix(in srgb, var(--brass-bright) 10%, transparent);
  padding: .42em .8em; border-radius: 999px; line-height: 1;
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass-bright); flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .pill::before { animation: pulse 2.4s var(--ease) infinite; }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
}

/* store badge, pre-launch (not a link yet) */
.badge.is-disabled {
  cursor: default;
  opacity: .55;
  border-style: dashed;
}
.badge.is-disabled:hover { transform: none; background: #0c1610; border-color: rgba(255,255,255,.14); }

.dl-actions { display: flex; justify-content: center; margin-top: 1.75rem; }
