/* TaskBlink Data - shared tokens, base elements, components and the landing page.
   app.html loads this file first, then app.css. */

/* ---------- Tokens ---------- */
:root {
  --magenta: #EF06C0;
  --magenta-2: #E22EFA;
  --ink: #10142e;
  --ink-2: #414769;
  --muted: #888ea9;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --line: #e9ebf4;

  /* Derived. Buttons use a deeper magenta so small white text keeps AA contrast. */
  --card: #ffffff;
  --line-strong: #d8dbea;
  --accent-deep: #cf049d;
  --accent-deep-2: #a61fd0;
  --accent-text: #c2048f;
  --accent-soft: rgba(239, 6, 192, .07);
  --accent-soft-2: rgba(239, 6, 192, .18);
  --muted-text: #6a7090;

  --ok: #0c7f57;      --ok-soft: #e5f6ee;
  --warn: #9a5700;    --warn-soft: #fff3de;
  --bad: #c0233f;     --bad-soft: #fdebee;
  --info: #3450d0;    --info-soft: #eaeefd;
  --violet: #6a3bd6;  --violet-soft: #f0eafd;
  --neutral: #596080; --neutral-soft: #eff0f6;

  --shadow-sm: 0 1px 2px rgba(16, 20, 46, .06);
  --shadow: 0 1px 2px rgba(16, 20, 46, .05), 0 10px 30px -12px rgba(16, 20, 46, .16);
  --shadow-lg: 0 30px 80px -24px rgba(16, 20, 46, .30), 0 2px 6px rgba(16, 20, 46, .06);
  --radius: 14px;
  --radius-sm: 10px;
  --font-head: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f3fa;
    --ink-2: #c3c7de;
    --muted: #8e93b2;
    --bg: #0b0e21;
    --bg-soft: #11152d;
    --line: #232846;

    --card: #141934;
    --line-strong: #30365b;
    --accent-text: #ff5ad6;
    --accent-soft: rgba(239, 6, 192, .12);
    --accent-soft-2: rgba(239, 6, 192, .28);
    --muted-text: #a0a5c2;

    --ok: #43d69d;      --ok-soft: rgba(67, 214, 157, .13);
    --warn: #ffb44d;    --warn-soft: rgba(255, 180, 77, .13);
    --bad: #ff6f88;     --bad-soft: rgba(255, 111, 136, .13);
    --info: #93a6ff;    --info-soft: rgba(147, 166, 255, .14);
    --violet: #b89dff;  --violet-soft: rgba(184, 157, 255, .14);
    --neutral: #a4a9c6; --neutral-soft: rgba(164, 169, 198, .13);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .75), 0 2px 6px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); letter-spacing: -.018em; margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
::selection { background: var(--accent-soft-2); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55);
}
.brand-mark img { display: block; width: 84%; height: auto; }
.brand-name { font: 800 18px/1 var(--font-head); letter-spacing: -.02em; }
.brand-name span { color: var(--magenta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1.2 var(--font-body); letter-spacing: -.005em; cursor: pointer;
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s, filter .15s, transform .05s;
}
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent-deep-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 8px 20px -10px rgba(207, 4, 157, .7);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-danger { background: var(--card); color: var(--bad); border-color: var(--line-strong); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent transparent;
  animation: spin .7s linear infinite;
}
.btn-secondary.is-busy::after, .btn-ghost.is-busy::after, .btn-danger.is-busy::after { border-color: var(--ink-2) var(--ink-2) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pills and badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font: 600 12.5px/1.2 var(--font-body); color: var(--accent-text); background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
}

/* ---------- Form controls ---------- */
.field { display: grid; gap: 6px; }
.label { font: 600 13.5px/1.3 var(--font-body); color: var(--ink); }
.label .opt { font-weight: 500; color: var(--muted-text); }
.input, .select, .textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  font: 400 15px/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--accent-soft-2); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 13px; line-height: 1.45; color: var(--muted-text); }

/* ---------- Landing page ---------- */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-nav.is-scrolled { border-bottom-color: var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font: 500 14.5px/1 var(--font-body); padding: 10px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
@media (max-width: 820px) { .nav-links { display: none; } }
@media (max-width: 400px) { .nav-cta .btn-ghost { display: none; } }

.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 640px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(239, 6, 192, .10), transparent 70%),
    radial-gradient(520px 280px at 85% 20%, rgba(226, 46, 250, .10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin: 20px 0 18px; }
.grad { background: linear-gradient(90deg, var(--magenta), var(--magenta-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--muted-text); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero-points .icon { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.5; }
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* Product mock in the hero */
.mock {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 13px; min-width: 0;
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-title { font: 700 13.5px/1.2 var(--font-head); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-status { margin-left: auto; }
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mock-stats div { padding: 12px 16px; border-right: 1px solid var(--line); }
.mock-stats div:last-child { border-right: 0; }
.mock-stats b { display: block; font: 800 18px/1.1 var(--font-head); color: var(--ink); }
.mock-stats span { font-size: 11.5px; color: var(--muted-text); }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { text-align: left; font: 600 11px/1 var(--font-body); color: var(--muted-text); text-transform: uppercase; letter-spacing: .04em; padding: 11px 16px; }
.mock-table td { padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.mock-table td:first-child { color: var(--ink); font-weight: 500; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.mock-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.mock-note { font-size: 12px; color: var(--muted-text); }
.mock-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-body); color: #fff; padding: 8px 12px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-deep), var(--accent-deep-2)); }
.mock-btn .icon { width: 13px; height: 13px; }
@media (max-width: 560px) {
  .mock-table .lt-free { display: none; }
  .mock-stats div { padding: 10px 10px; }
  .mock-stats b { font-size: 15px; }
  .mock-table { font-size: 12px; }
  .mock-table th, .mock-table td { padding-left: 10px; padding-right: 10px; }
  .mock-table td:first-child { max-width: 108px; }
  .mock-note { display: none; }
  .mock-foot { justify-content: flex-end; }
}

/* Line type badges (shared with the app) */
.lt { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 600 12px/1.3 var(--font-body); white-space: nowrap; }
.lt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lt-mobile { color: var(--ok); background: var(--ok-soft); }
.lt-voip { color: var(--violet); background: var(--violet-soft); }
.lt-landline { color: var(--neutral); background: var(--neutral-soft); }
.lt-free { font: 600 11px/1 var(--font-body); color: var(--muted-text); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* Sections */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow { display: inline-block; font: 700 12.5px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.section-head p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 640px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; box-shadow: var(--shadow-sm); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 800 15px/1 var(--font-head); color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-soft-2); }
.step h3 { font-size: 20px; margin: 18px 0 8px; }
.step p { color: var(--ink-2); line-height: 1.6; }
.step-arrow { position: absolute; right: -16px; top: 42px; width: 12px; height: 12px; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.step:last-child .step-arrow { display: none; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } .step-arrow { display: none; } }

.credit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.credit-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.credit-card .lt { font-size: 12.5px; }
.credit-price { font: 800 40px/1 var(--font-head); letter-spacing: -.03em; margin: 18px 0 4px; color: var(--ink); }
.credit-price small { font: 600 15px/1 var(--font-body); color: var(--muted-text); letter-spacing: 0; margin-left: 4px; }
.credit-card p { color: var(--ink-2); line-height: 1.6; margin-top: 10px; }
.credit-card.is-free { background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--card); border-color: var(--accent-soft-2); }
.credit-note { margin-top: 24px; text-align: center; color: var(--muted-text); font-size: 14.5px; }
@media (max-width: 860px) { .credit-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pricing */
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); gap: 2px; }
.toggle button {
  border: 0; background: transparent; padding: 9px 16px; border-radius: 9px; cursor: pointer;
  font: 600 14px/1 var(--font-body); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
}
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle .save { font-size: 11.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 3px 7px; border-radius: 999px; }
.pricing-toggle { display: flex; justify-content: center; margin: -16px 0 36px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 22px 24px; box-shadow: var(--shadow-sm); min-width: 0;
}
.plan.is-featured { border-color: var(--magenta); box-shadow: 0 0 0 1px var(--magenta), var(--shadow); }
.plan-flag { position: absolute; top: -11px; left: 22px; font: 700 11.5px/1 var(--font-body); color: #fff; padding: 6px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--accent-deep), var(--accent-deep-2)); letter-spacing: .02em; }
.plan h3 { font-size: 18px; font-weight: 700; }
.plan-desc { color: var(--muted-text); font-size: 13.5px; margin-top: 6px; min-height: 40px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 2px; }
.plan-price b { font: 800 40px/1 var(--font-head); letter-spacing: -.035em; color: var(--ink); }
.plan-price span { font-size: 14px; color: var(--muted-text); }
.plan-bill { font-size: 13px; color: var(--muted-text); min-height: 20px; }
.plan .btn { margin: 20px 0 22px; white-space: normal; text-align: center; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.plan li .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-text); stroke-width: 2.5; }
.plan li b { color: var(--ink); font-weight: 600; }
.plan li.soon { color: var(--muted-text); }
.plan li.soon .icon { color: var(--muted); }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 600px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.topup-strip {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius); border: 1px dashed var(--line-strong); background: var(--card);
}
.topup-strip h3 { font-size: 16px; }
.topup-strip p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.topup-price { font: 800 22px/1 var(--font-head); color: var(--ink); white-space: nowrap; }
.topup-price small { font: 500 13px/1 var(--font-body); color: var(--muted-text); }
.pricing-fine { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted-text); line-height: 1.6; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font: 600 16px/1.4 var(--font-head); color: var(--ink); border-radius: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); line-height: 1.65; }
.faq .answer p + p { margin-top: 10px; }

/* Closing band + footer */
.cta-band {
  position: relative; overflow: hidden; text-align: center; border-radius: 22px; padding: 56px 24px;
  background: radial-gradient(500px 220px at 50% 0%, rgba(239, 6, 192, .16), transparent 70%), var(--bg-soft);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.cta-band p { margin: 12px auto 0; max-width: 520px; color: var(--ink-2); font-size: 16.5px; }
.cta-band .hero-cta { justify-content: center; }

.site-footer { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer p, .site-footer a { font-size: 13.5px; color: var(--muted-text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* Simple centered pages (404) */
.center-page { min-height: 100vh; display: flex; flex-direction: column; }
.center-page main { flex: 1; display: grid; place-items: center; padding: 48px 16px; text-align: center; }
.center-page h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 18px 0 12px; }
.center-page p { color: var(--ink-2); font-size: 17px; }
.center-page .hero-cta { justify-content: center; }
.big-code { font: 800 15px/1 var(--font-head); letter-spacing: .12em; color: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
