/* ==========================================================================
   jMotivation product pages  (jcypher.com/jmotivation)
   Look and feel taken from the app: black canvas, warm brown glow, white type
   and the icon's yellow → orange → pink gradient.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #060606;
  --bg-2: #0c0c0f;
  --panel: #121216;
  --panel-2: #181820;
  --line: #26262d;
  --text: #ffffff;
  --muted: #bdbdc8;
  --dim: #8e8e9b;

  /* The icon's gradient */
  --w1: #ffc94a;
  --w2: #ff7a3d;
  --w3: #ff3d7f;
  --warm: linear-gradient(90deg, var(--w1), var(--w2), var(--w3));
  --warm-diag: linear-gradient(135deg, var(--w1), var(--w2) 55%, var(--w3));

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1100px 640px at 8% -8%, rgba(125, 60, 42, 0.55), transparent 62%),
    radial-gradient(800px 520px at 100% 6%, rgba(255, 106, 61, 0.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: var(--w2); text-underline-offset: 3px; }
a:hover { color: var(--w1); }
:focus-visible { outline: 2px solid var(--w1); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.warm-text {
  background: var(--warm);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.rule { display: block; width: 72px; height: 5px; border-radius: 4px; background: var(--warm); margin: 18px 0 22px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--w1); margin-bottom: 14px;
}

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 6, 6, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 6px 18px rgba(255, 106, 61, .25); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-cta { margin-left: 8px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #1b0c05; background: var(--warm-diag); padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; margin: auto; transition: transform .2s, background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--warm-diag); color: #1b0c05; box-shadow: 0 10px 30px rgba(255, 106, 61, .28); }
.btn-primary:hover { color: #1b0c05; box-shadow: 0 14px 38px rgba(255, 106, 61, .4); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* Store button: "Coming soon" until the app is live (see play_live in the template) */
.store-btn {
  display: inline-flex; align-items: center; gap: 14px; text-align: left; text-decoration: none;
  background: #000; color: #fff; border: 1px solid #5b5b66; border-radius: 14px; padding: 10px 22px 10px 16px;
  transition: transform .15s ease, border-color .2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: #fff; color: #fff; }
.store-btn svg { width: 30px; height: 30px; flex: none; }
.store-btn small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.store-btn strong { display: block; font: 700 1.25rem/1.15 var(--font-head); letter-spacing: -0.01em; }
.store-btn.is-soon { cursor: default; border-style: dashed; }
.store-btn.is-soon:hover { transform: none; border-color: #5b5b66; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin-bottom: 0; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 30em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 30px 0 0; padding: 0; }
.chips li { font-size: .88rem; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 7px 14px; border-radius: 999px; }
.chips li::before { content: "✓"; color: var(--w1); font-weight: 700; margin-right: 8px; }
.byline { margin-top: 26px; font-size: .9rem; color: var(--dim); }
.byline a { color: var(--muted); }

/* Phone frames */
.phone {
  position: relative; padding: 7px; border-radius: 38px;
  background: linear-gradient(145deg, #34343c, #0b0b0d 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px rgba(255, 106, 61, .08);
}
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1212; border-radius: 31px; background: #000; }
.phone::after { /* camera dot */
  content: ""; position: absolute; top: 18px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.hero-phones { position: relative; height: 560px; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-phones .phone { position: absolute; width: 232px; }
.hero-phones .p-left  { left: 0;   top: 70px;  transform: rotate(-7deg); z-index: 1; opacity: .96; }
.hero-phones .p-mid   { left: 50%; margin-left: -127px; top: 0; width: 254px; z-index: 3; }
.hero-phones .p-right { right: 0;  top: 70px;  transform: rotate(7deg); z-index: 2; opacity: .96; }
.hero-glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(255, 106, 61, .30), transparent); filter: blur(30px); z-index: 0; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head .rule { margin-inline: auto; }
.band { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .025) 20%, rgba(255, 255, 255, .025) 80%, transparent); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 36px 0; }
.feature + .feature { margin-top: 32px; }
.feature.reverse .feature-media { order: 2; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; }
.feature .tag { display: inline-flex; align-items: center; gap: 8px; color: var(--w1); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.feature p.desc { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: #e9e9f0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--warm-diag);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><circle cx='10' cy='10' r='10'/></svg>") center / contain no-repeat;
  opacity: .22;
}
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: 8.5px; width: 7px; height: 4px; border-left: 2px solid var(--w1); border-bottom: 2px solid var(--w1); transform: rotate(-45deg); }
.feature-media { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.feature-media::before { content: ""; position: absolute; inset: 8% 12%; background: radial-gradient(closest-side, rgba(255, 106, 61, .22), transparent); filter: blur(34px); }
.feature-media .phone { position: relative; width: min(46%, 250px); }
.feature-media .phone:nth-child(2) { margin-top: 56px; }
.feature-media.single .phone { width: min(60%, 270px); }

.callout { margin-top: 24px; padding: 16px 18px; border: 1px solid rgba(255, 201, 74, .25); background: rgba(255, 201, 74, .05); border-radius: 14px; color: #f1ead8; font-size: .98rem; }
.callout strong { color: var(--w1); }

/* Small feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: #3b3b44; }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 122, 61, .12); color: var(--w2); margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Video */
.video-wrap {
  max-width: 940px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; background: #000;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 106, 61, .12);
}
.video-wrap video { width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* Gallery */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 20px 24px;
  scrollbar-width: thin; scrollbar-color: #3a3a44 transparent; -webkit-overflow-scrolling: touch;
}
.gallery-track:focus-visible { outline-offset: -2px; }
.gallery figure { margin: 0; flex: 0 0 min(66vw, 250px); scroll-snap-align: center; }
.gallery figcaption { margin-top: 18px; text-align: center; }
.gallery figcaption strong { display: block; font-family: var(--font-head); font-size: 1.02rem; }
.gallery figcaption span { color: var(--dim); font-size: .9rem; }
.gallery-btns { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; font-size: 1.2rem; cursor: pointer; transition: background .2s, border-color .2s; }
.round-btn:hover { background: rgba(255, 255, 255, .1); border-color: #55555f; }
/* centres the row when it fits, stays fully scrollable when it doesn't */
.gallery figure:first-child { margin-left: auto; }
.gallery figure:last-child { margin-right: auto; }

/* Privacy at a glance */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat { text-align: center; padding: 30px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.stat .big { font: 800 2.6rem/1 var(--font-head); display: block; margin-bottom: 8px; }
.stat p { color: var(--muted); margin: 0; font-size: .98rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 600; background: rgba(255, 255, 255, .02); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
td { color: var(--muted); }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; transition: border-color .2s, background .2s; }
.faq details[open] { border-color: #444450; background: var(--panel-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; line-height: 1; color: var(--w2); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p:last-child { margin-bottom: 0; }

/* Closing CTA */
.cta-band {
  text-align: center; padding: 64px 28px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 106, 61, .25), transparent 70%),
    linear-gradient(180deg, #17120f, #0b0b0d);
}
.cta-band img { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 14px 40px rgba(255, 106, 61, .3); }
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.cta-band p { color: var(--muted); max-width: 34em; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; margin-top: 26px; }

/* ---------- Document pages (privacy, support) ---------- */
.page-hero { padding: 64px 0 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 0; }
.page-hero p { color: var(--muted); font-size: 1.12rem; max-width: 40em; }
.meta { color: var(--dim); font-size: .92rem; }
.doc { padding: 24px 0 90px; }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .93rem; }
.toc h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: #fff; border-left-color: var(--w2); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; font-weight: 700; margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose p, .prose li { color: #d6d6df; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose strong { color: #fff; }
.summary-box { border: 1px solid rgba(255, 201, 74, .28); background: linear-gradient(180deg, rgba(255, 201, 74, .07), rgba(255, 201, 74, .02)); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 2.2em; }
.summary-box h2 { margin: 0 0 .5em; font-size: 1.2rem; }
.summary-box ul { margin-bottom: 0; }
.contact-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 24px 26px; }
.contact-card p { margin-bottom: .4em; }
.contact-card .mail { font: 700 1.25rem var(--font-head); }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.support-grid .card h3 { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 56px 0 30px; margin-top: 30px; background: rgba(0, 0, 0, .35); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 14px; }
.footer p { color: var(--dim); font-size: .95rem; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--dim); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.trademark { margin-top: 14px; font-size: .78rem; color: #6d6d79; }

/* ---------- Motion (only when JS is present, so content never hides without it) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .btn, .card, .store-btn { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .rule { margin-inline: auto; }
  .cta-row, .chips { justify-content: center; }
  .feature { gap: 36px; padding: 20px 0; }
  .feature.reverse .feature-media { order: 0; }
  .feature-copy { text-align: left; }
  .cards, .glance { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; gap: 10px; }
  .toc { position: static; margin-bottom: 20px; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 4px 6px; border: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    background: #0a0a0b; border-bottom: 1px solid var(--line); padding: 10px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .section { padding: 60px 0; }
  .hero-phones { height: 430px; }
  .hero-phones .phone { width: 168px; border-radius: 30px; padding: 6px; }
  .hero-phones .phone img { border-radius: 24px; }
  .hero-phones .p-mid { width: 196px; margin-left: -98px; }
  .hero-phones .p-left { left: 0; top: 56px; } .hero-phones .p-right { right: 0; top: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
  th, td { padding: 14px 16px; }
}
@media (max-width: 420px) {
  .hero-phones { height: 380px; }
  .hero-phones .phone { width: 140px; }
  .hero-phones .p-mid { width: 170px; margin-left: -85px; }
  .btn { width: 100%; }
  .store-btn { width: 100%; justify-content: center; }
}
