/* TruthPower website — shared styles.
   Brand: NoddedOn "sunset island" — bright cyan wordmark over a sunset sky.
   Palette lifted from the app theme (ui/theme/Color.kt). */

:root {
  --cyan-deep: #00778b;
  --cyan-bright: #57d6ec;
  --cyan-soft: #acecf9;
  --cyan-container: #e5f9fd;
  --sunset: #b4431c;
  --sunset-coral: #ffb59b;
  --ink: #0d1b1f;
  --ink-soft: #4c6268;
  --bg: #ffffff;
  --surface: #f5fbfc;
  --surface-2: #ffffff;
  --border: #d7e6ea;
  --shadow: 0 1px 3px rgba(0, 40, 48, .08), 0 6px 24px rgba(0, 40, 48, .06);
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cyan-deep: #57d6ec;
    --cyan-bright: #57d6ec;
    --cyan-soft: #004e5b;
    --cyan-container: #063038;
    --sunset: #ffb59b;
    --sunset-coral: #ffb59b;
    --ink: #e6f4f7;
    --ink-soft: #a7c2c9;
    --bg: #071417;
    --surface: #0d1f24;
    --surface-2: #102a30;
    --border: #1d3b42;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4), 0 8px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.4) blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--cyan-deep); }
.nav .spacer { flex: 1; }
.nav a.navlink { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a.navlink:hover { color: var(--cyan-deep); text-decoration: none; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan-deep); color: #fff; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #00272e; } }
.btn-primary:hover { background: color-mix(in srgb, var(--cyan-deep) 88%, #000); }
.btn-ghost { background: transparent; color: var(--cyan-deep); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sunset { background: var(--sunset); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-sunset { color: #4a1300; } }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 78px 0 64px;
  background:
    radial-gradient(1200px 400px at 80% -10%, color-mix(in srgb, var(--sunset-coral) 55%, transparent), transparent 60%),
    linear-gradient(180deg, var(--cyan-container), var(--bg));
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 850; }
.hero .lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 620px; margin: 0 0 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- sections ---- */
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 8px; }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--cyan-deep); margin: 0 0 10px; }

/* ---- app grid ---- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.app-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px;
  transition: transform .12s ease, box-shadow .2s ease;
}
.app-card.live:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,60,72,.14); }
.app-card .top { display: flex; align-items: center; gap: 14px; }
.app-card img.icon { width: 58px; height: 58px; border-radius: 14px; box-shadow: var(--shadow); }
.app-card h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.app-card .tagline { margin: 2px 0 0; color: var(--ink-soft); font-size: .9rem; }
.app-card p.desc { margin: 0; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.app-card .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.app-card.soon { opacity: .72; }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; background: var(--cyan-container); color: var(--cyan-deep);
}
.badge.soon { background: color-mix(in srgb, var(--ink-soft) 18%, transparent); color: var(--ink-soft); }
.icon-fallback {
  width: 58px; height: 58px; border-radius: 14px; flex: none;
  background: linear-gradient(160deg, var(--cyan-bright), var(--cyan-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 850; font-size: 1.6rem;
}

/* ---- app detail ---- */
.app-hero { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.app-hero img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.app-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.app-hero .tagline { margin: 4px 0 0; color: var(--ink-soft); font-size: 1.1rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h4 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.shot {
  aspect-ratio: 9 / 19; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--cyan-container), var(--surface));
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  font-size: .85rem; text-align: center; padding: 12px; overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---- callout / install note ---- */
.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--cyan-deep);
  border-radius: 12px; padding: 16px 18px; color: var(--ink-soft); font-size: .93rem;
}
.note strong { color: var(--ink); }
.note ol { margin: 8px 0 0; padding-left: 20px; }

/* ---- store ---- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.product {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.product .price { font-size: 2.2rem; font-weight: 850; letter-spacing: -.02em; }
.product .price small { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.product h3 { margin: 0; font-size: 1.15rem; }
.product p { margin: 0; color: var(--ink-soft); font-size: .93rem; flex: 1; }

.store-status {
  margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; font-size: .92rem;
  background: color-mix(in srgb, var(--sunset-coral) 30%, transparent); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--sunset) 40%, transparent);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; text-align: left; }
.field label { font-weight: 700; font-size: .88rem; }
.field input {
  padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg); color: var(--ink); font-size: 1rem; font-family: inherit;
}
.field input:focus { outline: 2px solid var(--cyan-deep); border-color: transparent; }

.voucher-box {
  margin-top: 16px; padding: 20px; border-radius: 14px; text-align: center;
  background: var(--cyan-container); border: 1px dashed var(--cyan-deep);
}
.voucher-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 800;
  letter-spacing: .05em; color: var(--cyan-deep); margin: 8px 0; word-break: break-all;
}

/* ---- modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 20, 24, .55); display: none;
  align-items: center; justify-content: center; padding: 20px; z-index: 50;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border);
  max-width: 420px; width: 100%; padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.3); text-align: center;
}
.modal h3 { margin: 0 0 6px; }
.modal p.sub { color: var(--ink-soft); margin: 0 0 18px; font-size: .93rem; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 40px 0; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; }
.footer-grid h5 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: var(--ink); font-size: .92rem; }
.copyright { margin-top: 28px; color: var(--ink-soft); font-size: .85rem; }

.hide { display: none !important; }

/* ---- legal / prose pages ---- */
.legal { max-width: 760px; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin: 0 0 28px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal .lead { font-size: 1.05rem; color: var(--ink-soft); }
.legal .contact-box {
  margin-top: 28px; padding: 16px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}

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

/* NoddedOn hero banner (the wide feature graphic, dark bg — reads on both
   themes). Falls back to the square logo, which gets a dark rounded panel. */
.brand-logo {
  display: block; width: 100%; max-width: 680px; height: auto;
  border-radius: 18px; margin: 4px 0 0; box-shadow: var(--shadow);
}
.brand-logo--square {
  max-width: 300px; background: #050608; padding: 12px;
}

@media (max-width: 560px) {
  .app-hero { grid-template-columns: 72px 1fr; }
  .app-hero img { width: 72px; height: 72px; }
  .nav .navlink.hide-sm { display: none; }
}

/* =========================================================================
   NoddedOn dark landing — matches the provided mockup. Scoped to body.theme-dark
   so the rest of the site keeps its light/dark-adaptive theme.
   ========================================================================= */
body.theme-dark {
  --bg: #06131d; --surface: #0e2130; --surface-2: #0d1f2c; --border: #1c3949;
  --ink: #e9f4f7; --ink-soft: #9cb2bd;
  --cyan-deep: #66d4e9; --cyan-bright: #82e4f3; --cyan-soft: #0c2f3a;
  --cyan-container: #0e2a33; --sunset: #ffb59b; --sunset-coral: #ffb59b;
  --shadow: 0 1px 3px rgba(0,0,0,.45), 0 12px 34px rgba(0,0,0,.4);
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(96,126,190,.20), transparent 60%),
    radial-gradient(900px 500px at 8% -4%, rgba(190,96,128,.10), transparent 55%),
    linear-gradient(180deg, #061019, #08161f 45%, #06121a);
  background-attachment: fixed;
  color: var(--ink);
}
.theme-dark .site-header { background: rgba(6,16,24,.72); border-bottom-color: var(--border); }
.theme-dark .brand { color: var(--ink); }
.theme-dark .navlink { color: var(--ink-soft); }
.theme-dark .btn-primary {
  background: linear-gradient(180deg, #86e6f4, #5cc7dd); color: #05242c;
  box-shadow: 0 8px 24px rgba(92,199,221,.22);
}
.theme-dark .btn-primary:hover { background: linear-gradient(180deg, #93ecf8, #63d0e6); }
.theme-dark .btn-ghost { color: var(--ink); border-color: var(--border); background: rgba(255,255,255,.02); }
.theme-dark .btn-ghost:hover { background: rgba(255,255,255,.05); }
.nav-cta { padding: 9px 18px; }

.landing .hero { background: transparent; padding: 54px 0 30px; }

/* split hero */
.hero-split { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 48px; align-items: center; }
.hero-logo-card {
  border-radius: 26px; padding: 0; border: 1px solid var(--border);
  /* Pure black to match the logo artwork's own #000 background, so the square
     edge disappears and the island reads as floating on the card. */
  background: #000000;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.hero-logo-card img { width: 100%; display: block; border-radius: 26px; }

.pill {
  display: inline-block; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 15px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 800; background: rgba(255,255,255,.02);
}
.wordmark { font-size: clamp(2.6rem, 6.5vw, 4.7rem); font-weight: 850; letter-spacing: -.03em; line-height: 1; margin: 18px 0 10px; }
.wordmark span { color: var(--cyan-bright); }
.h-title { font-size: clamp(1.4rem, 3vw, 2.05rem); font-weight: 800; margin: 0 0 4px; letter-spacing: -.01em; }
.h-sub { color: var(--ink-soft); font-size: 1.15rem; margin: 0; }
.hero-rule { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }

.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hf { display: flex; flex-direction: column; gap: 9px; }
.hf .ic { width: 26px; height: 26px; color: var(--cyan-bright); }
.hf h4 { margin: 0; font-size: 1rem; }
.hf p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* voucher band */
.voucher-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  border: 1px solid var(--border); border-radius: 22px; padding: 26px 30px;
  background: linear-gradient(180deg, rgba(22,44,60,.65), rgba(11,26,38,.65));
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.ticket {
  position: relative; width: 132px; height: 116px; border-radius: 16px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #5b6fe0, #7b53c9); color: #fff;
  box-shadow: 0 10px 26px rgba(90,90,200,.35);
}
.ticket b { font-size: 2.2rem; font-weight: 850; line-height: 1; }
.ticket small { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; opacity: .9; }
.ticket::before, .ticket::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  background: #0b1a26; top: 50%; transform: translateY(-50%);
}
.ticket::before { left: -10px; } .ticket::after { right: -10px; }
.vb-text h3 { margin: 0 0 6px; font-size: clamp(1.2rem, 2.4vw, 1.55rem); letter-spacing: -.01em; }
.vb-text p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.vb-cta { text-align: center; }
.vb-cta .secure { color: var(--ink-soft); font-size: .84rem; margin: 11px 0 0; display: flex; align-items: center; gap: 6px; justify-content: center; }

/* what to expect */
.expect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.expect { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.expect .ic { width: 30px; height: 30px; margin-bottom: 12px; }
.expect h4 { margin: 0 0 6px; font-size: 1.02rem; }
.expect p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* landing footer + misc */
.theme-dark .site-footer { background: transparent; border-top-color: var(--border); }
.theme-dark .feature, .theme-dark .note, .theme-dark .shot { background: var(--surface-2); border-color: var(--border); }
.theme-dark .note { border-left-color: var(--cyan-deep); }
.theme-dark .brand-logo { box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.foot-tag { color: var(--ink-soft); }
.foot-tag b { color: var(--cyan-bright); font-weight: 700; }

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo-card { max-width: 380px; }
  .expect-grid { grid-template-columns: repeat(2, 1fr); }
  .voucher-band { grid-template-columns: auto 1fr; }
  .vb-cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-features { grid-template-columns: 1fr; gap: 16px; }
  .expect-grid { grid-template-columns: 1fr; }
  .voucher-band { grid-template-columns: 1fr; justify-items: start; text-align: left; }
}
