/* Build IT Now — shared styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --fg: #111111;
  --fg-muted: #5b5b57;
  --line: #e4e4e0;
  --accent: #1d5cff;
  --accent-2: #00c2d1;
  --accent-ink: #ffffff;
  --glow: rgba(29, 92, 255, 0.14);
  --glow-2: rgba(0, 194, 209, 0.12);
  --radius: 10px;
  --max: 1040px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0f;
    --bg-soft: #161617;
    --fg: #f3f3f1;
    --fg-muted: #a3a39d;
    --line: #27272a;
    --accent: #5b8cff;
    --accent-2: #2dd4e6;
    --accent-ink: #0e0e0f;
    --glow: rgba(91, 140, 255, 0.18);
    --glow-2: rgba(45, 212, 230, 0.14);
  }
}

:root[data-theme="dark"] {
  --bg: #0e0e0f;
  --bg-soft: #161617;
  --fg: #f3f3f1;
  --fg-muted: #a3a39d;
  --line: #27272a;
  --accent: #5b8cff;
  --accent-2: #2dd4e6;
  --accent-ink: #0e0e0f;
  --glow: rgba(91, 140, 255, 0.18);
  --glow-2: rgba(45, 212, 230, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.accent,
.tagline em {
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */

.site-header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: inherit; }

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

/* Main */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.hero {
  position: relative;
  padding: 10vh 0 8vh;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -10% auto;
  height: 420px;
  background:
    radial-gradient(ellipse at 18% 30%, var(--glow), transparent 60%),
    radial-gradient(ellipse at 70% 10%, var(--glow-2), transparent 55%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.wordmark {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.tagline {
  margin: 28px 0 0;
  max-width: 22ch;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.tagline em { font-style: normal; }

.lead {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: 1.1rem;
  color: var(--fg-muted);
}

.actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 600;
  transition: transform 120ms ease, opacity 120ms ease;
}
.button:hover {
  color: var(--accent-ink);
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px 0 72px;
}
.pillars > div {
  padding: 22px 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pillars h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}
.pillars p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}

@media (max-width: 680px) {
  .pillars { grid-template-columns: 1fr; }
}

/* Simple page (used by /products) */

.page {
  padding: 8vh 0 10vh;
}
.page h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page .lead { margin-top: 0; }

/* Contact */

.contact {
  padding: 8px 0 80px;
  scroll-margin-top: 24px;
}
.contact h2 {
  margin: 0 0 24px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.contact-card:hover {
  color: inherit;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -22px var(--accent);
}
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.contact-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.contact-mail {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Products page */

.products-intro { padding-bottom: 0; }
.products-intro h1 { max-width: 18ch; }

.features {
  display: grid;
  gap: 24px;
  padding: 48px 0 24px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature:nth-child(even) .feature-media { order: 1; }

.feature-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.feature-title:hover { color: inherit; }
.feature-title:hover .feature-name { color: var(--accent); }
.feature-title > span { display: flex; flex-direction: column; }
.feature-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.feature-audience {
  margin-top: 3px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex: none;
}

.feature h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.feature p {
  margin: 0;
  color: var(--fg-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
}

.feature .actions {
  margin-top: 28px;
  align-items: center;
  gap: 16px;
}
.status {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.feature-media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.45);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.feature-media:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -28px var(--accent);
}
.feature-media img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px;
  }
  .feature:nth-child(even) .feature-text { order: 1; }
  .feature:nth-child(even) .feature-media { order: 2; }
}

.more {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 72px;
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.more h2 {
  margin: 0 0 2px;
  font-size: 1.05rem;
}
.more p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg-muted);
}
.more .product-badge {
  margin: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg-muted);
}

.product-badge {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 800;
  font-size: 1.2rem;
}

/* Footer */

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--fg-muted);
}
.site-footer p { margin: 0; }

/* A product's own page (/products/fretboardvisualizer) */

.product-intro { padding-bottom: 24px; }
.product-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.product-head .eyebrow { margin-bottom: 6px; }
.product-head h1 { margin: 0; }
.product-intro .tagline { max-width: none; }

.product-shot {
  margin: 44px 0 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.55);
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* A tall picture shows its top, no taller than the text beside it needs. */
.feature-media.tall img {
  max-height: 460px;
  object-fit: cover;
  object-position: top;
}

.link {
  color: var(--accent);
  font-weight: 600;
}

.notice {
  display: inline-block;
  margin: 18px 0 0;
  padding: 6px 12px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* Plans (/products/fretboardvisualizer/buy) */

.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 40px 0 0;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 40px -26px var(--accent);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 22px;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.plan h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.price {
  margin: 14px 0 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.per-month {
  margin: 4px 0 22px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.plan .button {
  margin-top: auto;
  border: 1px solid transparent;
  text-align: center;
}
.button.quiet {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
}
.button.quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.included { margin: 26px 0 0; }

.steps { padding-top: 48px; }
.step {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-size: 0.8rem;
}

@media (max-width: 820px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .plans { grid-template-columns: 1fr; }
  /* The icon over the name, the name as large as the phone's width allows. */
  .product-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .product-head h1 {
    font-size: 8.4vw;
    overflow-wrap: anywhere;
  }
}

/* The header on a phone: the name on one line, the links closer. */
.brand { white-space: nowrap; }
@media (max-width: 520px) {
  .site-nav { gap: 14px; }
}
