/* JTPT client website — the public pages for app users (home, terms, privacy,
   account deletion). Same visual language as the app and portal: Apple system
   font, white canvas, soft cards, one brand blue. Light and dark. */

:root {
  --blue: #174EA2;
  --blue-deep: #0B2A5C;
  --tint: rgba(23, 78, 162, 0.10);
  --ink: #1C1C1E;
  --body: #3A3A3C;
  --muted: #8E8E93;
  --page: #FFFFFF;
  --soft: #F5F5F7;
  --card: #FFFFFF;
  --line: #E5E5EA;
  --fill: rgba(118, 118, 128, 0.12);
  --danger: #D70015;
  --danger-bg: rgba(255, 59, 48, 0.10);
  --success: #248A3D;
  --shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.10);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4D8CF0;
    --tint: rgba(77, 140, 240, 0.18);
    --ink: #F5F5F7;
    --body: #D1D1D6;
    --muted: #98989F;
    --page: #000000;
    --soft: #1C1C1E;
    --card: #1C1C1E;
    --line: #38383A;
    --fill: rgba(118, 118, 128, 0.24);
    --danger: #FF453A;
    --danger-bg: rgba(255, 69, 58, 0.16);
    --success: #30D158;
    --shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.09), 0 8px 24px -12px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / footer */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line); }
.nav-in { max-width: 920px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 22.37%; }
.nav-links { margin-left: auto; display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--body); }
.footer { border-top: 0.5px solid var(--line); margin-top: 72px; }
.footer-in { max-width: 920px; margin: 0 auto; padding: 28px 20px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: 14px; color: var(--muted); }
.footer-in a { color: var(--muted); }
.footer-in .sp { flex: 1; }

/* Layout */
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 12px; font-weight: 800; }
h2 { font-size: 22px; letter-spacing: -0.02em; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, li { color: var(--body); }
.lead { font-size: 20px; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.small { font-size: 14px; overflow-wrap: anywhere; }

/* Hero (home) */
.hero { position: relative; overflow: hidden; border-radius: 32px; margin: 28px 0 0; color: #fff; padding: 64px 40px;
  background: linear-gradient(150deg, #1D5CBA 0%, #174EA2 45%, #0B2A5C 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.hero::before { width: 420px; height: 420px; top: -160px; right: -100px; background: rgba(255, 255, 255, 0.10); }
.hero::after { width: 460px; height: 460px; bottom: -220px; left: -140px; background: rgba(91, 147, 245, 0.25); }
.hero > * { position: relative; }
.hero h1 { color: #fff; max-width: 640px; }
.hero p { color: rgba(255, 255, 255, 0.8); font-size: 20px; max-width: 560px; }
.hero .logo { width: 72px; height: 72px; border-radius: 22.37%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 18px 40px -12px rgba(0, 0, 0, 0.45); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.feature h3 { margin-top: 12px; }
.feature p { margin: 4px 0 0; font-size: 15px; }
.badge { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.badge svg { width: 20px; height: 20px; }

/* Documents (terms, privacy) */
.doc { padding-top: 40px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.toc a { font-size: 14px; background: var(--soft); color: var(--body); padding: 6px 12px; border-radius: 999px; }
.toc a:hover { text-decoration: none; background: var(--fill); }
.note { background: var(--soft); border-radius: 16px; padding: 16px 18px; font-size: 15px; }

/* Forms (delete account) */
label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 4px; }
input { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--fill); border: 1px solid transparent;
  border-radius: 12px; padding: 12px 14px; outline: none; transition: background .15s, border-color .15s, box-shadow .15s; }
input:focus { background: var(--card); border-color: var(--blue); box-shadow: 0 0 0 4px var(--tint); }
.field + .field { margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-size: 17px;
  font-weight: 600; border: 0; border-radius: 999px; padding: 14px 20px; cursor: pointer; transition: opacity .15s, background .15s; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-neutral { background: var(--fill); color: var(--ink); }
.alert { background: var(--danger-bg); color: var(--danger); border-radius: 14px; padding: 12px 14px; font-size: 15px; margin-bottom: 16px; }
.list-x { list-style: none; padding: 0; margin: 0; }
.list-x li { display: flex; gap: 10px; margin: 10px 0; color: var(--ink); }
.list-x li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-top: 9px; }
.hidden { display: none !important; }
.done { text-align: center; padding: 40px 24px; }
.done svg { width: 56px; height: 56px; color: var(--success); }

@media (max-width: 600px) {
  .hero { padding: 44px 24px; border-radius: 24px; }
  .nav-links { gap: 14px; font-size: 14px; }
  body { font-size: 16px; }
}
