/* ─────────────────────────────────────────────────────────
   Shared styles for CYKOM sub-pages. Kept in sync with the
   design system defined in index.html.
   ───────────────────────────────────────────────────────── */

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

:root {
  --bg:                #f8f6f1;
  --bg-surface:        #fff;
  --bg-surface-fill:   #e2ff90;
  --bg-tone-2:         #efece5;
  --bg-ink:            #111;
  --green-dark:        #355331;
  --cykom-green:       #a6f896;
  --cykom-blue:        #abe1ff;
  --cykom-yellow:      #fff574;
  --border-base:       #e7e1d5;
  --text-primary:      #22231f;
  --text-secondary:    #5c5e5a;
  --text-muted:        rgba(0,0,0,.75);
  --text-dim:          rgba(0,0,0,.6);
  --text-dimmer:       rgba(0,0,0,.5);
  --text-on-dark:      #fff;
  --text-on-dark-75:   rgba(255,255,255,.75);
  --text-on-dark-90:   rgba(255,255,255,.9);
  --text-lime:         #bbff33;
  --text-green:        #aaff00;
  --text-error:        #ff3b30;
  --shadow-card:       0 2px 6px rgba(31,32,28,.04);
  --shadow-float:      0 8px 32px rgba(0,0,0,.08);
  --radius-card:       16px;
  --radius-btn:        12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

/* ── TYPOGRAPHY ── */
.h1, .h2, .h3, .h4 {
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 600;
  line-height: 1.25;
}
.h1 { font-size: 40px; letter-spacing: -0.8px; }
.h2 { font-size: 32px; letter-spacing: -0.64px; }
.h3 { font-size: 28px; letter-spacing: -0.56px; font-weight: 500; }
.h4 { font-size: 20px; letter-spacing: -0.4px; font-weight: 500; }
.body-lg { font-size: 18px; font-weight: 400; line-height: 1.4; letter-spacing: -0.45px; }
.body-md { font-size: 15px; font-weight: 400; line-height: 1.4; letter-spacing: -0.375px; }
.body-sm { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: -0.26px; }
.body-med { font-weight: 500; }
em, .italic { font-style: italic; }

.t-muted     { color: var(--text-muted); }
.t-dim       { color: var(--text-dim); }
.t-dimmer    { color: var(--text-dimmer); }
.t-secondary { color: var(--text-secondary); }
.t-white     { color: var(--text-on-dark); }
.t-white-75  { color: var(--text-on-dark-75); }
.t-white-90  { color: var(--text-on-dark-90); }
.t-lime      { color: var(--text-lime); }
.t-green     { color: var(--text-green); }
.t-error     { color: var(--text-error); }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 970px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-btn);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.45px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--bg-surface-fill); color: var(--text-primary); }
.btn-dark    { background: var(--bg-ink); color: var(--text-on-dark); }
.btn-dark:hover { opacity: 1; background: #2a2a2a; }
.btn-white   { background: var(--bg-surface); color: var(--text-primary); }
.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-base);
}
.btn-lg {
  height: 64px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

/* ── LOCKUP (CYKOM.app) ── */
.cykom-lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
}
.cykom-lockup .logo-graphic { width: 32px; height: 32px; }
.cykom-lockup .logo-text { color: var(--text-primary); }
.cykom-lockup-tld {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-left: -2px;
  margin-top: 6px;
}

/* ── APP STORE BADGES ── */
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.store-badge { display: inline-block; text-decoration: none; }
.store-badge svg { height: 48px; width: auto; }

/* ── SIMPLE HEADER ── */
.site-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .cykom-lockup { text-decoration: none; }
.lang-dd { position: relative; }
.lang-dd-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px;
  background: var(--bg-tone-2); color: var(--bg-ink);
  border: none; border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; letter-spacing: -0.3px;
  white-space: nowrap;
}
.lang-dd-toggle i { font-size: 16px; transition: transform .15s; }
.lang-dd.open .lang-dd-toggle i { transform: rotate(180deg); }
.lang-dd-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  min-width: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: 12px;
  box-shadow: var(--shadow-float);
  z-index: 200;
}
.lang-dd-menu[hidden] { display: none; }
.lang-dd-menu li a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.lang-dd-menu li a:hover { background: var(--bg); }
.lang-dd-menu li a[aria-selected="true"] { background: var(--bg-ink); color: var(--text-on-dark); }

/* ── SIMPLE FOOTER ── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-base);
  padding: 48px 24px 32px;
  margin-top: 96px;
}
.site-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-col p { color: var(--text-muted); margin-top: 12px; font-size: 15px; }
.footer-col-title { font-family: 'Instrument Sans', sans-serif; font-size: 20px; font-weight: 500; margin-bottom: 12px; }
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--text-dimmer);
  text-decoration: none;
  font-size: 15px;
}
.footer-col a:hover { color: var(--text-primary); }
.site-footer-bottom {
  max-width: 1140px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer-bottom a { color: var(--text-muted); text-decoration: none; }
.site-footer-bottom a:hover { color: var(--text-primary); }

/* ── APP LANDING (activity / community / redirect-app) ── */
.app-landing {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 20px;
}
.app-landing .cykom-lockup { transform: scale(1.15); margin-bottom: 8px; }
.app-landing h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.6px;
  color: var(--text-primary);
  max-width: 640px;
}
.app-landing p.sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ── PROSE ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.prose h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 8px 0 8px;
}
.prose .updated { color: var(--text-dimmer); font-size: 14px; margin-bottom: 8px; }
.prose h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 40px 0 12px;
}
.prose h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.prose p { margin: 12px 0; color: var(--text-primary); font-size: 17px; line-height: 1.6; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; line-height: 1.55; }
.prose a { color: var(--text-primary); text-decoration: underline; }
.prose a:hover { opacity: .7; }

/* ── DELETE ACCOUNT ── */
.delete-page {
  padding: 64px 24px;
}
.delete-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.delete-copy .cykom-lockup { margin-bottom: 24px; }
.delete-copy h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.delete-copy p { margin-bottom: 12px; color: var(--text-primary); font-size: 16px; line-height: 1.5; }
.delete-copy .note strong { display: block; margin-bottom: 4px; }
.delete-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.delete-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.delete-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-base);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: var(--bg-surface);
  color: var(--text-primary);
}
.delete-form input:focus {
  outline: none;
  border-color: var(--green-dark);
}
.delete-form button {
  background: var(--green-dark);
  color: var(--text-on-dark);
  border: none;
  height: 48px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.delete-form button:hover { opacity: .9; }
.form-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.form-message.ok { background: #e6f7e2; color: #1a5c1a; border: 1px solid #b8e0b3; }
.form-message.err { background: #fdecea; color: #a3271f; border: 1px solid #f2c3bf; }

/* ── BRANDS PAGE ── */
.brands-hero {
  padding: 96px 24px;
  background: url('/assets/images/9b358289-8599-472b-b573-5fe767f878c6.png') center/cover no-repeat, var(--green-dark);
  color: var(--text-on-dark);
  position: relative;
}
.brands-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(53,83,49,.55);
}
.brands-hero-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.brands-hero h1 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-on-dark);
  max-width: 800px;
}
.brands-hero p { color: var(--text-on-dark-90); max-width: 620px; font-size: 18px; }
.brands-intro {
  text-align: center;
  padding: 80px 24px 40px;
  max-width: 780px;
  margin: 0 auto;
}
.brands-intro h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.brands-intro p { color: var(--text-muted); }

.brands-feature {
  max-width: 1140px;
  margin: 32px auto;
  padding: 0 24px;
}
.brands-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-card);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.brands-feature-card.reverse .visual { order: 2; }
.brands-feature .kicker {
  font-family: 'Instrument Sans', sans-serif;
  font-style: italic;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 8px;
}
.brands-feature h3 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.brands-feature p { color: var(--text-muted); font-size: 16px; }
.brands-feature .visual {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--text-secondary);
  font-size: 14px;
}
.brands-cta-band {
  background: var(--bg-ink);
  color: var(--text-on-dark);
  padding: 80px 24px;
  text-align: center;
}
.brands-cta-band h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.15;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.brands-cta-band p { color: var(--text-on-dark-75); max-width: 600px; margin: 0 auto 24px; }

.brands-accent-band {
  background: var(--bg-surface-fill);
  padding: 64px 24px;
  text-align: center;
}
.brands-accent-band h2 {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto 16px;
}
.brands-accent-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto 20px; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .delete-grid { grid-template-columns: 1fr; gap: 32px; }
  .brands-feature-card { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .brands-feature-card.reverse .visual { order: 0; }
  .brands-hero h1 { font-size: 36px; }
  .brands-intro h2 { font-size: 28px; }
  .brands-cta-band h2 { font-size: 30px; }
  .brands-accent-band h2 { font-size: 24px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .app-landing h1 { font-size: 22px; }
  .app-landing p.sub { font-size: 16px; }
  .app-landing .cykom-lockup { transform: scale(1); }
  .site-footer-bottom { justify-content: center; text-align: center; }
  .site-header { padding: 16px 20px; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 20px; }
  .prose p { font-size: 16px; }
  .brands-hero { padding: 64px 20px; }
  .brands-hero h1 { font-size: 30px; }
  .brands-hero p { font-size: 16px; }
  .brands-cta-band h2 { font-size: 26px; }
  .store-badge svg { height: 44px; }
}
