/* ============================================================
   TK Softworks — tksoftworks.com
   Theme: TK Softworks studio system — deep ink + cyan
   ============================================================ */

:root {
  /* Base surfaces */
  --bg: #070a12;
  --bg-soft: #0c111d;
  --surface: #111827;
  --surface-2: #172033;
  --elevated: #1f2a3f;
  --border: rgba(197, 211, 255, 0.09);
  --border-strong: rgba(197, 211, 255, 0.19);

  /* Text */
  --text: #f3f7ff;
  --text-muted: #b0bad2;
  --text-dim: #74809d;

  /* Brand accents */
  --brand: #3b82f6;
  --brand-2: #22d3ee;
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);

  /* Per-product accents (set on <body data-accent>) */
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);

  /* Layout */
  --maxw: 1120px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Per-product accent themes */
body[data-accent="promptkeeper"] { --accent: #3b82f6; --accent-2: #22d3ee; --accent-soft: rgba(59,130,246,0.14); }
body[data-accent="pro"]          { --accent: #8b5cf6; --accent-2: #22d3ee; --accent-soft: rgba(139,92,246,0.15); }
body[data-accent="forkful"]      { --accent: #fb7185; --accent-2: #f59e0b; --accent-soft: rgba(251,113,133,0.14); }
body[data-accent="nudgesolo"]    { --accent: #34d399; --accent-2: #22d3ee; --accent-soft: rgba(52,211,153,0.14); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.07), transparent 310px),
    radial-gradient(820px 500px at 82% -8%, var(--accent-soft), transparent 62%),
    radial-gradient(620px 430px at 8% 8%, rgba(59, 130, 246, 0.12), transparent 58%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.55rem, 5.4vw, 4.45rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.28rem; }
p { color: var(--text-muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-grad); color: #03111b; box-shadow: 0 10px 30px rgba(59,130,246,0.28); }
.btn-primary:hover { box-shadow: 0 14px 38px rgba(59,130,246,0.4); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 9px 15px; font-size: 0.88rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 10, 18, 0.76);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; letter-spacing: 0; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; background: var(--brand-grad);
  display: grid; place-items: center; color: #04060e; font-weight: 700; font-size: 0.95rem;
}
.brand .logo-mark {
  height: 32px; width: auto; display: block; padding: 5px 7px;
  border: 1px solid var(--border-strong); border-radius: 11px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
}
.footer .brand .logo-mark { height: 26px; }
.brand small { display:block; font-family: var(--font-body); font-weight: 400; font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.04em; text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 13px; border-radius: 9px; font-size: 0.92rem; color: var(--text-muted); transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
/* Nav CTA button — override the muted .nav-links a color/hover so it stays crisp */
.nav-links a.btn-primary,
.nav-links a.btn-primary.active { color: #04060e; background: var(--accent-grad); font-weight: 600; }
.nav-links a.btn-primary:hover { color: #04060e; background: var(--accent-grad); box-shadow: 0 12px 32px rgba(59,130,246,0.42); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 9px; width: 42px; height: 38px; color: var(--text); font-size: 1.3rem; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(12, 14, 22, 0.98); border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(70px, 10vw, 126px) 0 clamp(46px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.98fr) minmax(420px, 1.02fr); gap: 58px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
  color: var(--text); background: var(--accent-soft); border: 1px solid var(--border-strong);
  font-family: var(--font-display); letter-spacing: 0.01em; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.hero p.lead { font-size: 1.17rem; margin: 22px 0 30px; max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--text-dim); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } .hero p.lead { max-width: none; } }

.hero-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  align-items: end;
}
.hero-stack .shot:first-child { transform: translateY(-10px); }
.hero-stack .phone { max-width: 190px; }
.hero-stack .mini-proof {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mini-proof span {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.045);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 10px 12px;
  font-family: var(--font-display);
}
@media (max-width: 560px) {
  .hero-stack { grid-template-columns: 1fr; }
  .hero-stack .shot:first-child { transform: none; }
  .hero-stack .phone { display: none; }
  .hero-stack .mini-proof { grid-template-columns: 1fr; }
}

/* App visual / device mock */
.app-visual {
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden;
}
.app-visual::after { content:""; position:absolute; inset:0; background: var(--accent-soft); opacity:0.5; mix-blend-mode: screen; pointer-events:none; }
.app-window { border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); display:inline-block; }
.app-body { padding: 18px; display: grid; gap: 11px; }
.app-row { height: 13px; border-radius: 6px; background: rgba(255,255,255,0.06); }
.app-row.accent { background: var(--accent-grad); opacity: 0.85; width: 58%; }
.app-row.w70 { width: 70%; } .app-row.w85 { width: 85%; } .app-row.w45 { width: 45%; } .app-row.w60 { width: 60%; }
.app-chips { display: flex; gap: 8px; margin-top: 4px; }
.app-chip { font-size: 0.72rem; padding: 4px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--text); border: 1px solid var(--border-strong); font-family: var(--font-display); }

.app-icon-tile {
  width: 84px; height: 84px; border-radius: 20px; background: var(--accent-grad);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  font-size: 2.1rem; color: #04060e; box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}

/* ---------- Real screenshots ---------- */
.shot {
  border-radius: 14px; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); overflow: hidden; background: var(--surface);
  display: block; width: 100%; position: relative;
}
.shot img { display: block; width: 100%; height: auto; }
.shot .bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.hero-shot { box-shadow: 0 34px 82px rgba(0,0,0,0.54); }

.phone {
  border-radius: 32px; border: 9px solid #14172340; background: #000;
  box-shadow: var(--shadow); overflow: hidden; max-width: 270px; margin: 0 auto;
  outline: 1px solid var(--border-strong);
}
.phone img { display: block; width: 100%; height: auto; }
.phone-row { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.phone-row .phone { max-width: 220px; margin: 0; }

.shot-caption { margin-top: 12px; font-size: 0.88rem; color: var(--text-dim); text-align: center; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.026)); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.97rem; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: grid; place-items: center; margin-bottom: 16px; font-size: 1.3rem;
  border: 1px solid var(--border-strong);
}

/* Product card (home) */
.product-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.product-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-card .mini-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #04060e; flex-shrink: 0; }
.product-card .badge { font-size: 0.72rem; color: var(--text-dim); font-family: var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.product-card .links { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display:inline-block; font-size: 0.72rem; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); margin: 2px 4px 2px 0; }

/* Section heading block */
.sec-head { max-width: 640px; margin: 0 auto 46px; }
.sec-head.left { margin-left: 0; text-align: left; }
.sec-head p { margin-top: 14px; font-size: 1.05rem; }

/* Feature list (checks) */
.checks { list-style: none; display: grid; gap: 13px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--text); }
.checks li::before {
  content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700; border: 1px solid var(--border-strong);
}

/* Store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: flex; align-items: center; gap: 12px; padding: 11px 18px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong);
  transition: transform 0.15s, border-color 0.15s, background 0.15s; min-width: 188px;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--elevated); }
.store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-btn .st { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .st small { font-size: 0.68rem; color: var(--text-dim); }
.store-btn .st span { font-family: var(--font-display); font-weight: 500; font-size: 0.98rem; }

/* Pricing / compare table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 460px; }
table.compare th, table.compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.97rem; }
table.compare thead th { font-family: var(--font-display); color: var(--text); background: var(--surface-2); }
table.compare td.c { text-align: center; }
table.compare .yes { color: var(--accent-2); font-weight: 700; }
table.compare .no { color: var(--text-dim); }
table.compare tbody tr:last-child td { border-bottom: none; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 4px 6px; transition: border-color 0.15s;
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px; font-family: var(--font-display);
  font-weight: 500; font-size: 1.04rem; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 18px; color: var(--text-muted); font-size: 0.98rem; }

/* CTA band */
.cta-band {
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  padding: clamp(34px, 6vw, 60px); text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content:""; position:absolute; inset:0; background: var(--accent-soft); opacity: 0.4; pointer-events:none; }
.cta-band > * { position: relative; }
.cta-band p { max-width: 52ch; margin: 14px auto 26px; font-size: 1.08rem; }

/* Banner / note */
.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--border-strong);
  font-size: 0.95rem; color: var(--text);
}
.banner .b-ic { font-size: 1.2rem; }

/* Stats */
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stat { flex: 1; min-width: 130px; }
.stat .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--text); }
.stat .l { font-size: 0.85rem; color: var(--text-dim); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 36px; margin-top: 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); margin-bottom: 14px; font-family: var(--font-display); font-weight: 500; }
.footer a { display: block; color: var(--text-muted); font-size: 0.94rem; padding: 5px 0; transition: color 0.15s; }
.footer a:hover { color: var(--text); }
.footer .about p { font-size: 0.94rem; margin: 14px 0; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-dim); font-size: 0.85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utility spacing */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .card:hover, .store-btn:hover { transform: none; } }
