/* OneTouch website — shared design system (public pages + web app). */
:root {
  --navy: #03122E;
  --navy-2: #071A3E;
  --navy-3: #0D2D72;
  --blue: #1E6EFF;
  --blue-d: #1557D6;
  --sky: #7EC8F8;
  --bg: #F3F6FC;
  --surface: #FFFFFF;
  --surface-2: #F7F9FD;
  --line: #E3E9F3;
  --text: #0F172A;
  --muted: #5B6B85;
  --success: #16A34A;
  --success-bg: #E7F7EE;
  --warning: #B45309;
  --warning-bg: #FDF3E1;
  --danger: #DC2626;
  --danger-bg: #FDECEC;
  --info-bg: #EAF1FF;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 6px 20px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 50px rgba(3, 18, 46, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar-w: 248px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061430; --surface: #0B1E45; --surface-2: #0E2552; --line: #1C3566;
    --text: #EAF1FF; --muted: #93A9CC; --success-bg: #0D3324; --warning-bg: #3A2A0C;
    --danger-bg: #3B1218; --info-bg: #112D63; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #061430; --surface: #0B1E45; --surface-2: #0E2552; --line: #1C3566;
  --text: #EAF1FF; --muted: #93A9CC; --success-bg: #0D3324; --warning-bg: #3A2A0C;
  --danger-bg: #3B1218; --info-bg: #112D63; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
small, .muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid rgba(30, 110, 255, .45); outline-offset: 2px; border-radius: 6px; }

/* ── Buttons & form controls ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1.2 'Inter', sans-serif; cursor: pointer; text-decoration: none !important;
  background: var(--blue); color: #fff; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30, 110, 255, .28); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.is-busy::after {
  content: ''; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EAF1FF; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #B91C1C; box-shadow: 0 8px 20px rgba(220, 38, 38, .25); }
.btn-sm { padding: .45em .85em; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-kc { background: #fff; color: #0F172A; border-color: var(--line); }
.btn-kc:hover { background: var(--surface-2); box-shadow: var(--shadow); }
.btn-kc img { width: 20px; height: 20px; border-radius: 5px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn.danger { color: var(--danger); }

label { display: block; font-weight: 600; font-size: .86rem; margin: 0 0 .35em; }
.input, select.input, textarea.input {
  width: 100%; padding: .7em .85em; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea.input { resize: vertical; min-height: 110px; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 110, 255, .14); }
.field { margin-bottom: 1rem; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: .3em; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.check { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; font-size: .92rem; cursor: pointer; margin: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

/* Chips (channel / collection pickers) */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .5em .9em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .9rem;
  transition: all .18s var(--ease); user-select: none;
}
.chip input { display: none; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(30,110,255,.25); }
.chip .sub { opacity: .75; font-size: .8em; }
.ch-ico { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ch-ico svg, .ch-ico img { width: 18px; height: 18px; display: block; }

/* Pills & badges */
.pill { display: inline-block; padding: .18em .65em; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--info-bg); color: var(--blue); }
.pill.ok { background: var(--success-bg); color: var(--success); }
.pill.warn { background: var(--warning-bg); color: var(--warning); }
.pill.bad { background: var(--danger-bg); color: var(--danger); }
.pill.plain { background: var(--surface-2); color: var(--muted); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.card.flat { box-shadow: none; }
.card.hoverable { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(30,110,255,.35); }

.notice { padding: .85rem 1rem; border-radius: 12px; background: var(--info-bg); font-size: .92rem; margin-bottom: 1rem; }
.notice.warn { background: var(--warning-bg); color: var(--warning); }
.notice.bad { background: var(--danger-bg); color: var(--danger); }
.notice.ok { background: var(--success-bg); color: var(--success); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -1.35rem; padding: 0 1.35rem; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.table td { padding: .75rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { text-align: right; white-space: nowrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(30,110,255,.16), transparent 70%); }
.stat .label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.stat .value { font: 700 1.9rem/1.2 'Poppins', sans-serif; margin-top: .25rem; }
.stat .sub { font-size: .82rem; color: var(--muted); }

.kpi .value { font: 700 1.9rem/1.2 'Poppins', sans-serif; margin-top: .25rem; }
.kpi .sub { font-size: .85rem; color: var(--muted); }
.list > *, .grid-2 > *, .send-grid > *, .stats > * { min-width: 0; }
.page-sub { color: var(--muted); margin: 0; max-width: 720px; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty h3 { color: var(--text); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(30,110,255,.45); } 100% { box-shadow: 0 0 0 14px rgba(30,110,255,0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.stagger > * { animation: fadeUp .5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .05s; } .stagger > *:nth-child(3) { animation-delay: .1s; }
.stagger > *:nth-child(4) { animation-delay: .15s; } .stagger > *:nth-child(5) { animation-delay: .2s; }
.stagger > *:nth-child(6) { animation-delay: .25s; } .stagger > *:nth-child(n+7) { animation-delay: .3s; }
.skeleton { border-radius: 10px; min-height: 18px; background: linear-gradient(90deg, var(--surface-2) 0, var(--line) 50%, var(--surface-2) 100%); background-size: 800px 100%; animation: shimmer 1.3s linear infinite; }
/* Attention-catching buttons (dashboard) */
@keyframes attnRing { 0% { box-shadow: 0 0 0 0 rgba(30,110,255,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(30,110,255,0); } }
@keyframes attnShine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes attnBorder { 0%, 100% { border-color: var(--line); box-shadow: 0 0 0 0 rgba(126,200,248,0); } 50% { border-color: rgba(126,200,248,.85); box-shadow: 0 0 14px rgba(126,200,248,.35); } }
.btn-attn { position: relative; overflow: hidden; animation: attnRing 2s ease-out infinite; }
.btn-attn::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: attnShine 3.5s ease-in-out infinite; pointer-events: none; }
.btn-glow { animation: attnBorder 2.4s ease-in-out infinite; }
.btn-glow:nth-child(2) { animation-delay: .8s; }
.btn-attn:hover, .btn-glow:hover, .btn-attn:hover::before { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Public site ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }

.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 1rem; }
.site-nav .brand img { height: 34px; width: auto; display: block; }
.site-nav .links { display: flex; align-items: center; gap: 1.6rem; }
.site-nav .links a:not(.btn) { color: rgba(255,255,255,.82); font-weight: 500; font-size: .94rem; text-decoration: none; transition: color .15s; }
.site-nav .links a:not(.btn):hover { color: #fff; }
.site-nav.scrolled { background: rgba(3, 18, 46, .86); backdrop-filter: blur(14px); box-shadow: 0 6px 30px rgba(0,0,0,.2); }
.site-nav .menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.site-nav .menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
@media (max-width: 860px) {
  .site-nav .menu-toggle { display: block; }
  .site-nav .links { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 16px 1.2rem; background: rgba(3,18,46,.97); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .25s var(--ease); }
  .site-nav .links a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav .links .btn { margin-top: .9rem; }
  .site-nav.open .links { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav.open { background: rgba(3,18,46,.97); }
  .site-nav.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav.open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 80% -10%, #1650C8 0, transparent 60%), linear-gradient(160deg, var(--navy) 0, var(--navy-2) 55%, #0A2459 100%); color: #fff; padding: 140px 0 90px; }
.hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 16s ease-in-out infinite; pointer-events: none; }
.hero .orb.a { width: 380px; height: 380px; background: #1E6EFF; left: -120px; top: 120px; }
.hero .orb.b { width: 300px; height: 300px; background: #7EC8F8; right: 8%; bottom: -120px; opacity: .3; animation-delay: -6s; }
.hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; }
@media (max-width: 920px) { .hero .grid { grid-template-columns: 1fr; } .hero { padding-top: 120px; } }
.hero .eyebrow { display: inline-block; padding: .35em .9em; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .82rem; color: var(--sky); margin-bottom: 1.2rem; background: rgba(255,255,255,.04); }
.hero h1 { color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #7EC8F8, #3D8BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: rgba(234, 241, 255, .82); max-width: 560px; margin-bottom: 1.8rem; }
.hero .ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero .trust { margin-top: 2rem; display: flex; gap: 1.8rem; flex-wrap: wrap; color: rgba(234,241,255,.7); font-size: .88rem; }
.hero .trust b { display: block; color: #fff; font: 700 1.4rem/1.2 'Poppins', sans-serif; }

.hero-art { position: relative; text-align: center; }
.hero-art img { width: 100%; max-width: 600px; border-radius: 20px; height: auto; display: inline-block; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
/* Hero visual: a stylised broadcast card */
.mock { position: relative; animation: float 7s ease-in-out infinite; }
.mock .panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 1.4rem; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.mock .msg { background: rgba(255,255,255,.95); color: #0F172A; border-radius: 14px; padding: 1rem 1.1rem; font-size: .92rem; }
.mock .msg small { display: block; color: #5B6B85; font-size: .76rem; margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.mock .bars { margin-top: 1rem; display: grid; gap: .6rem; }
.mock .bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: rgba(255,255,255,.06); border-radius: 12px; padding: .65rem .9rem; font-size: .88rem; color: #EAF1FF; }
.mock .bar .track { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.mock .bar .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3D8BFF, #7EC8F8); width: 0; transition: width 1.6s var(--ease); }
.mock.in .bar .fill { width: var(--w); }
.mock .send { z-index: 2; position: absolute; right: -14px; top: -18px; background: var(--blue); color: #fff; font-weight: 700; font-size: .82rem; padding: .55em 1em; border-radius: 999px; animation: pulseRing 2s infinite; }

.section { padding: 90px 0; }
.section.alt { background: var(--surface); }
.section-head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .6rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); transition: width .4s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::before { width: 100%; }
.feature .num { font: 700 .85rem/1 'Poppins', sans-serif; color: var(--blue); letter-spacing: .08em; margin-bottom: .8rem; display: block; }
.feature p { color: var(--muted); margin: 0; font-size: .94rem; }
.section.alt .feature { background: var(--bg); }

.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.channel { display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.2rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; transition: transform .2s var(--ease); }
.channel:hover { transform: translateY(-3px); }
.channel img { width: 26px; height: 26px; }
.channel .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; font: 700 1rem 'Poppins', sans-serif; background: var(--info-bg); color: var(--blue); }
.step p { color: var(--muted); font-size: .94rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--blue); box-shadow: 0 20px 50px rgba(30,110,255,.18); }
.plan .tag { position: absolute; top: -12px; left: 1.6rem; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.plan .price { font: 700 2.3rem/1 'Poppins', sans-serif; margin: .6rem 0 .2rem; }
.plan .price span { font: 500 .9rem 'Inter', sans-serif; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: .55rem; font-size: .9rem; flex: 1; }
.plan li { padding-left: 1.4rem; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .5em; width: .55rem; height: .3rem; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plan.current { border-color: var(--success); }
.cycle-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin: 0 auto 2rem; }
.cycle-toggle button { border: 0; background: none; padding: .5em 1.2em; border-radius: 999px; font: 600 .9rem 'Inter', sans-serif; color: var(--muted); cursor: pointer; transition: all .2s; }
.cycle-toggle button.on { background: var(--blue); color: #fff; }

.cta-band { background: linear-gradient(120deg, var(--navy-3), var(--blue)); color: #fff; border-radius: 26px; padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 1.6rem; }
.cta-band::after { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); right: -140px; top: -160px; }

.site-footer { background: var(--navy); color: rgba(234,241,255,.7); padding: 3.5rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(234,241,255,.7); display: block; padding: .2rem 0; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* Legal / long text pages */
.page-hero { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 130px 0 60px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { color: rgba(234,241,255,.75); }
.prose { max-width: 780px; margin: 0 auto; padding: 3rem 0 4rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* ── Auth page ─────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth .side { display: none; } }
.auth .side { background: radial-gradient(800px 500px at 20% 0, #1650C8 0, transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .side h2 { color: #fff; font-size: 2rem; max-width: 420px; }
.auth .side p { color: rgba(234,241,255,.78); max-width: 420px; }
.auth .main { display: flex; align-items: center; justify-content: center; padding: 2rem 16px; }
.auth .box { width: 100%; max-width: 420px; animation: pop .5s var(--ease) both; }
.auth .box .logo { height: 40px; margin-bottom: 1.6rem; }
.tabs { display: flex; gap: .3rem; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.4rem; }
.tabs button { flex: 1; border: 0; background: none; padding: .6em; border-radius: 9px; font: 600 .92rem 'Inter', sans-serif; color: var(--muted); cursor: pointer; transition: all .2s; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .82rem; margin: 1.2rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form-msg { min-height: 1.4em; font-size: .9rem; margin-bottom: .6rem; }
.form-msg.bad { color: var(--danger); }
.form-msg.ok { color: var(--success); }

/* ── Web app shell ─────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: linear-gradient(180deg, var(--navy) 0, var(--navy-2) 100%); color: #CFDDF5; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .3s var(--ease); }
.sidebar .brand { padding: 1.3rem 1.3rem 1rem; }
.sidebar .brand img { height: 34px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: .5rem .8rem; }
.sidebar .group { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(207,221,245,.45); padding: 1rem .7rem .4rem; }
.sidebar a.nav { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 10px; color: #CFDDF5; font-weight: 500; font-size: .93rem; text-decoration: none; transition: background .15s, color .15s; position: relative; }
.sidebar a.nav svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.sidebar a.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.nav.on { background: rgba(30,110,255,.22); color: #fff; }
.sidebar a.nav.on::before { content: ''; position: absolute; left: -.8rem; top: 20%; bottom: 20%; width: 3px; border-radius: 3px; background: var(--sky); }
.sidebar .foot { padding: 1rem 1.3rem 1.3rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.sidebar .foot .who { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .foot .mail { color: rgba(207,221,245,.6); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .6rem; }
.sidebar .foot button { background: none; border: 0; color: var(--sky); padding: 0; font: 600 .85rem 'Inter', sans-serif; cursor: pointer; }
.main-area { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 1.2rem; margin: 0; }
.topbar .right { display: flex; align-items: center; gap: .6rem; }
.topbar .balance { font-weight: 600; font-size: .88rem; padding: .4em .85em; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-decoration: none; color: var(--text); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.burger { display: none; }
.content { padding: 28px; width: 100%; max-width: 1180px; }
.view { animation: fadeUp .4s var(--ease) both; }
.scrim { display: none; }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  .app.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(3,18,46,.5); z-index: 35; animation: fadeIn .2s; }
  .main-area { margin-left: 0; }
  .burger { display: grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
}
@media (max-width: 520px) { .topbar .balance { display: none; } }

/* Lists in the app */
.list { display: grid; gap: .7rem; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; }
.item.link { cursor: pointer; }
.item.link:hover { border-color: rgba(30,110,255,.4); transform: translateX(3px); box-shadow: var(--shadow); }
.item .title { font-weight: 600; }
.item .meta { font-size: .84rem; color: var(--muted); }
.item .body { min-width: 0; flex: 1; }
.item .body .preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .9rem; }
.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar .search { flex: 1 1 240px; max-width: 360px; }
.back { display: inline-block; font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }

/* Modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(3,18,46,.55); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; overflow-y: auto; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.5rem; animation: pop .3s var(--ease) both; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.wide { max-width: 860px; }
.modal h3 { margin-bottom: 1rem; }
.modal .actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* Toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: .6rem; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: #0F1E3D; color: #fff; padding: .85rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: slideIn .3s var(--ease) both; border-left: 4px solid var(--blue); display: flex; gap: .8rem; align-items: flex-start; }
.toast.ok { border-left-color: var(--success); }
.toast.bad { border-left-color: var(--danger); }
.toast .x { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; }
.toast.out { opacity: 0; transform: translateX(24px); transition: all .25s; }

/* Notification drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--surface); z-index: 90; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slideIn .3s var(--ease) both; }
.drawer .head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer .body { overflow-y: auto; padding: .6rem; flex: 1; }
.note { padding: .8rem .9rem; border-radius: 12px; margin-bottom: .3rem; cursor: pointer; transition: background .15s; }
.note:hover { background: var(--surface-2); }
.note.unread { background: var(--info-bg); }
.note .t { font-weight: 600; font-size: .92rem; }
.note .m { font-size: .86rem; color: var(--muted); }
.note .d { font-size: .75rem; color: var(--muted); margin-top: .2rem; }

/* Template store / designs */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.tpl { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; display: flex; flex-direction: column; }
.tpl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tpl .thumb { height: 220px; overflow: hidden; position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.tpl .thumb iframe { width: 600px; height: 733px; border: 0; transform: scale(.4); transform-origin: 0 0; pointer-events: none; }
.tpl .info { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.tpl .info .row { justify-content: space-between; margin-top: auto; }
.preview-frame { width: 100%; height: 600px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.editor { display: grid; grid-template-columns: 380px 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .editor { grid-template-columns: 1fr; } }
.editor .fields { max-height: calc(100vh - 160px); overflow-y: auto; padding-right: .3rem; }
.editor .live { position: sticky; top: 84px; }

/* Send page */
.send-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; align-items: start; }
@media (max-width: 1060px) { .send-grid { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 84px; }
.summary .line { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.summary .line:last-of-type { border-bottom: 0; }
.summary .total { font: 700 1.6rem 'Poppins', sans-serif; }
.counter { font-size: .8rem; color: var(--muted); text-align: right; margin-top: .3rem; }
.qr-box { display: grid; place-items: center; padding: 1rem; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { width: 220px; height: 220px; }
.copy-field { display: flex; gap: .5rem; }
.copy-field .input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

.guide h3 { margin-top: 1.5rem; }
.guide ol, .guide ul { padding-left: 1.2rem; }
.guide li { margin-bottom: .4rem; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.seg button { border: 1px solid var(--line); background: var(--surface); padding: .5em 1em; border-radius: 999px; font: 600 .88rem 'Inter', sans-serif; color: var(--muted); cursor: pointer; transition: all .2s; }
.seg button.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot img { height: 48px; animation: pulseRing 1.6s infinite; border-radius: 12px; }
