/* Accent Tap site — dark theme drawn from the app icon
   (neon pink → blue gradient on near-black). */

:root {
  --bg: #0b0b10;
  --bg-raised: #14141c;
  --bg-card: #171721;
  --border: #262633;
  --text: #f2f2f7;
  --text-dim: #9a9aad;
  --pink: #e93d9b;
  --blue: #2f8dff;
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, var(--pink), var(--violet) 55%, var(--blue));
  --radius: 14px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { 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-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

a { color: inherit; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-icon { width: 34px; height: 34px; border-radius: 8px; }

.nav-wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Glow colors are overridable per page (product pages set their accent). */
  background:
    radial-gradient(55rem 32rem at 18% 15%, var(--glow-a, rgba(233, 61, 155, 0.22)), transparent 70%),
    radial-gradient(60rem 36rem at 85% 25%, var(--glow-b, rgba(47, 141, 255, 0.20)), transparent 70%),
    radial-gradient(45rem 30rem at 55% 95%, var(--glow-c, rgba(139, 92, 246, 0.16)), transparent 70%);
  /* Dissolve into the page background instead of ending at the section edge. */
  mask-image: linear-gradient(to bottom, #000 40%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 98%);
}

.hero-content { position: relative; max-width: 820px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-wrap: balance;
}

.hero-sub {
  margin: 1.2rem auto 2rem;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note { margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px rgba(233, 61, 155, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(233, 61, 155, 0.5);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- products ---------- */

.products { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem); }

.section-head { max-width: 1080px; margin: 0 auto 2.2rem; }

.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }

.section-head p { color: var(--text-dim); margin-top: 0.4rem; }

.product-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.4rem;
}

.product-status { color: var(--text-dim); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-accent, var(--violet));
}

.product-media {
  aspect-ratio: 16 / 10;
  position: relative;
  background:
    radial-gradient(60% 80% at 50% 45%, color-mix(in srgb, var(--card-accent, #30304a) 22%, transparent), transparent),
    var(--bg-raised);
  border-bottom: 2px solid var(--card-accent, var(--border));
}

/* Product art is a square app icon — always show the whole shape.
   Absolutely positioned: Safari mis-sizes percentage-height images
   inside aspect-ratio flex containers. */
.product-media img {
  position: absolute;
  inset: 1.1rem;
  width: calc(100% - 2.2rem);
  height: calc(100% - 2.2rem);
  object-fit: contain;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.1rem 1.2rem 1.3rem;
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.product-body h3 { font-size: 1.15rem; }

.product-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
}

.product-desc { color: var(--text-dim); font-size: 0.93rem; flex: 1; }

.product-meta { font-size: 0.8rem; color: var(--text-dim); }

.product-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.product-price { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }

.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.85rem; }

/* ---------- hub ---------- */

.hub {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hub-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}

.hub-icon {
  width: clamp(110px, 18vw, 170px);
  border-radius: 26%;
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.35);
}

.hub-copy { flex: 1; min-width: 260px; }

.hub-copy h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.7rem; }

.hub-copy > p { color: var(--text-dim); }

.hub-points {
  margin: 1.1rem 0 1.6rem;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.hub-points li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--grad);
}

/* ---------- product pages ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 3rem);
}

.page-hero-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
}

.page-hero-icon {
  width: clamp(120px, 18vw, 190px);
  border-radius: 22%;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.page-hero-info { flex: 1; min-width: 280px; }

.page-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.page-hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0.2rem 0 0.4rem; }

.page-tagline { color: var(--text-dim); font-size: 1.1rem; }

.page-buy {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.page-price { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1rem, 4vw, 3rem);
}

.shot img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.feature-showcase {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 2rem);
}

.feature-row {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  flex-wrap: wrap;
}

/* Alternate image side on every other row. */
.feature-row:nth-child(even) { flex-direction: row-reverse; }

/* Image dominates the row; note rides alongside. */
.feature-shot {
  flex: 999 1 560px;
  min-width: 300px;
}

.feature-shot img { width: 100%; display: block; }

.feature-note { flex: 1 1 240px; min-width: 240px; }

.feature-note h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.feature-note p { color: var(--text-dim); font-size: 0.97rem; }

.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pill-list li {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.feature-card p { color: var(--text-dim); font-size: 0.93rem; }

.spec-list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  color: var(--text-dim);
}

.spec-list.two-col {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
}

@media (max-width: 640px) {
  .spec-list.two-col { grid-template-columns: 1fr; }
}

.spec-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--bullet, var(--grad));
}

.page-cta { text-align: center; padding-bottom: clamp(3rem, 7vw, 5rem); }

.page-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.4rem; }

/* Card title/image links to the product page when one exists. */
.product-title-link { text-decoration: none; }
.product-title-link:hover { text-decoration: underline; }
.product-media-link { display: block; position: absolute; inset: 0; }

/* ---------- account ---------- */

.account-main {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.account-panel {
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.account-panel-wide { max-width: 900px; }

.account-panel h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }

.account-sub { color: var(--text-dim); margin: 0.5rem 0 1.6rem; }

.account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.account-card h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }

.account-card label {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.account-card input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}

.account-card input:focus { border-color: var(--violet); }

.account-card textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}

.account-card textarea:focus { border-color: var(--violet); }

.account-card select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a9aad' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.account-card select:focus { border-color: var(--violet); }

.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  cursor: pointer;
}

.check-row input[type="checkbox"] {
  width: auto;
  accent-color: var(--violet);
  cursor: pointer;
}

.sys-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.7rem;
  word-break: break-word;
}

.account-card .btn { margin-top: 1rem; border: none; cursor: pointer; }

.card-hint { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.4rem; }

.form-msg {
  font-size: 0.88rem;
  color: #ff7597;
  margin-top: 0.6rem;
}

.form-msg.ok { color: #5ecf87; }

.link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 0.8rem;
  text-decoration: underline;
}

.link-btn:hover { color: var(--text); }

.owned-list, .device-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.owned-list li, .device-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.93rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.owned-list strong, .device-list strong { color: var(--text); font-weight: 600; }

.owned-list li.muted, .device-list li.muted { border: none; padding: 0; }

.device-list .btn { margin: 0; white-space: nowrap; cursor: pointer; }

.slot-badge {
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  white-space: nowrap;
}

.slot-badge.full { color: #ffb35c; border-color: rgba(255, 179, 92, 0.4); }

/* One group per machine, its activations nested inside. */
.device-list li.device-group {
  display: block;
  padding: 0.8rem 0.9rem;
}

.device-name { margin-bottom: 0.55rem; }

.device-name strong { color: var(--text); font-weight: 600; }

.device-products {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.device-products li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

.account-foot {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1.6rem;
}

.account-foot a { color: var(--text); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.6rem clamp(1rem, 4vw, 3rem);
  color: var(--text-dim);
  font-size: 0.87rem;
}

.footer nav { display: flex; gap: 1.4rem; }

.footer a { color: var(--text-dim); text-decoration: none; }

.footer a:hover { color: var(--text); }
