/* =====================================================================
   ToolQuack — design tokens & components (light theme, QuackPath family).
   Brand: orange #FF7733 ("Tool"), purple #6A1CF6 ("Quack" + accents).
   Body surface light, controls solid, 3D shelf still works via stacked layers.
   Display headings: Plus Jakarta Sans w900. Body: Inter.
   ===================================================================== */

:root {
  color-scheme: light;

  /* Brand */
  --brand-purple: #6A1CF6;
  --brand-purple-deep: #3A0B8F;
  --brand-orange: #FF7733;
  --brand-orange-deep: #993D10;
  --beak-peach: #FFAF84;
  --lavender: #ded4ed;

  /* Surface — light, QuackPath family */
  --bg: #f8f5fb;
  --bg-2: #eef6f4;
  --bg-soft: #fbf9fd;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.74);
  --shelf: #ded4ed;                          /* lavender shelf under buttons */
  --shelf-deep: #b9a8de;
  --hairline: rgba(36, 25, 55, 0.11);

  /* Text */
  --text: #19171f;                            /* near-black with purple undertone */
  --text-dim: #6d6578;
  --text-muted: #9a93a8;
  --on-purple: #ffffff;

  /* Sizing */
  --r-card: 26px;
  --r-button: 16px;
  --r-chip: 10px;
  --r-pill: 999px;
  --shelf-depth: 6px;
  --max-w: 1100px;
  --gutter: clamp(20px, 4vw, 36px);

  /* Effects */
  --shadow-card: 0 24px 70px rgba(65, 36, 101, 0.10);
  --shadow-elev: 0 12px 34px rgba(65, 36, 101, 0.08);

  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78) 0 24%, transparent 24% 100%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(106, 28, 246, 0.08);
  color: var(--brand-purple);
}

:focus-visible {
  outline: 3px solid rgba(106, 28, 246, 0.34);
  outline-offset: 4px;
}

/* =====================================================================
   QuackPath promo bar (above the site nav)
   ===================================================================== */

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px var(--gutter);
  background: var(--brand-purple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  line-height: 1.3;
}
.promo-bar:hover { filter: brightness(1.05); }
.promo-bar .promo-text { color: rgba(255, 255, 255, 0.96); }
.promo-bar .promo-text strong { color: #fff; font-weight: 900; letter-spacing: -0.01em; }
.promo-bar .promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-orange);
  color: #1A0D05;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 0 var(--brand-orange-deep);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.promo-bar:active .promo-cta {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--brand-orange-deep);
}
.promo-bar .promo-arrow { display: inline-block; transition: transform 120ms ease-out; }
.promo-bar:hover .promo-arrow { transform: translateX(3px); }

@media (max-width: 560px) {
  .promo-bar { flex-direction: column; gap: 8px; padding: 10px 16px; font-size: 13px; }
}

/* Footer brand attribution line */
.foot-attribution {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
  margin-top: 8px;
}
.foot-attribution a {
  color: var(--brand-purple);
  font-weight: 700;
}
.foot-attribution a:hover { text-decoration: underline; }

/* =====================================================================
   Top nav
   ===================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(251, 249, 253, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.brand-mark.img-duck {
  background-image: url("/assets/logo-duck.svg");
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--brand-orange);          /* "Tool" — signature orange */
}
.brand-accent { color: var(--brand-purple); }   /* "Quack" — brand purple */

.brand-word-small { font-size: 18px; }

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 600;
  color: var(--text-dim);
  align-items: center;
}
.nav-links a:hover { color: var(--text); }

/* Tool tabs */
.tool-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tool-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dim);
  background: transparent;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.tool-tab:hover { background: rgba(106, 28, 246, 0.06); color: var(--text); }
.tool-tab[aria-current="page"] { background: var(--brand-purple); color: #fff; }
.tool-tab .tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(36, 25, 55, 0.08);
  color: var(--text-dim);
}
.tool-tab[aria-current="page"] .tag {
  background: rgba(255, 255, 255, 0.20);
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 720px) {
  .nav-links { gap: 8px; }
  .tool-tab { padding: 6px 10px; font-size: 13px; }
  .tool-tab .tag { display: none; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
}

/* Coming-soon splash */
.coming-soon { padding-top: 80px; padding-bottom: 120px; }
.coming-soon .display { margin-bottom: 28px; }
.coming-soon .lede { margin-bottom: 36px; }
.coming-soon .signup-row {
  display: flex;
  gap: 10px;
  max-width: 460px;
  flex-wrap: wrap;
}
.coming-soon input[type="email"] {
  flex: 1 1 240px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: var(--r-button);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  box-shadow: 0 var(--shelf-depth) 0 var(--shelf);
}
.coming-soon input[type="email"]:focus {
  outline: 2px solid var(--brand-purple);
  outline-offset: 2px;
}

/* =====================================================================
   Layout containers
   ===================================================================== */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: 84px 0;
  border-bottom: 1px solid var(--hairline);
}
section:last-of-type { border-bottom: none; }

@media (max-width: 720px) { section { padding: 56px 0; } }

/* =====================================================================
   Eyebrow chips
   ===================================================================== */

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-chip);
  color: #fff;
  margin-bottom: 18px;
}
.eyebrow-purple { background: var(--brand-purple); }
.eyebrow-orange { background: var(--brand-orange); color: #1A0D05; }

/* =====================================================================
   Hero
   ===================================================================== */

.hero { padding-top: 96px; padding-bottom: 96px; }

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--text);
}

.accent-purple { color: var(--brand-purple); }
.accent-orange { color: var(--brand-orange); }

.lede {
  max-width: 620px;
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-dim);
  margin: 0 0 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

/* Plus subscribers badge (umbrella hero) */
.hero-plus {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  margin: 0 0 26px;
  background: var(--surface);
  border: 1px solid rgba(106, 28, 246, 0.22);
  border-radius: var(--r-pill);
  box-shadow: 0 6px 18px rgba(65, 36, 101, 0.06);
  font-size: 14px;
  color: var(--text-dim);
  max-width: 100%;
}
.hero-plus strong { color: var(--text); font-weight: 800; }
.plus-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-purple);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .hero-plus { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
}

.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  color: var(--text-dim);
  font-weight: 500;
}
.hero-bullets li { display: inline-flex; align-items: center; gap: 8px; }

.bullet-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-purple { background: var(--brand-purple); }
.dot-orange { background: var(--brand-orange); }

/* =====================================================================
   Buttons — Pressable3D pattern (lavender shelf, not black)
   ===================================================================== */

.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  border-radius: var(--r-button);
  padding: 14px 22px;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
  cursor: pointer;
  user-select: none;
  border: none;
  line-height: 1.2;
}

.btn-primary {
  color: #ffffff;
  background: var(--brand-orange);
  box-shadow: 0 var(--shelf-depth) 0 var(--brand-orange-deep);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active {
  transform: translateY(var(--shelf-depth));
  box-shadow: 0 0 0 var(--brand-orange-deep);
}

.btn-label { display: block; font-weight: 900; font-size: 16px; }
.btn-sub   { display: block; font-size: 11px; font-weight: 700; opacity: 0.86; margin-top: 2px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Buttons that lead with a brand icon (Apple, Windows). */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  text-align: left;
}
.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
}
.btn-with-icon .btn-text { display: inline-flex; flex-direction: column; line-height: 1.15; }

/* Platform-detected emphasis on hero CTAs */
:root[data-platform="mac"] .btn-mac,
:root[data-platform="win"] .btn-win {
  outline: 3px solid rgba(255, 119, 51, 0.34);
  outline-offset: 3px;
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 var(--shelf-depth) 0 var(--shelf);
}
.btn-ghost:hover { transform: translateY(-1px); }
.btn-ghost:active {
  transform: translateY(var(--shelf-depth));
  box-shadow: 0 0 0 var(--shelf);
}

.btn-purple {
  color: #ffffff;
  background: var(--brand-purple);
  box-shadow: 0 var(--shelf-depth) 0 var(--brand-purple-deep);
}
.btn-purple:hover { transform: translateY(-1px); }
.btn-purple:active {
  transform: translateY(var(--shelf-depth));
  box-shadow: 0 0 0 var(--brand-purple-deep);
}

/* =====================================================================
   Tools row
   ===================================================================== */

.tools-row { padding-top: 60px; }

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.tool-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--hairline);
}
.tool-card header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tool-card p { color: var(--text-dim); margin: 0; }

.tool-card-featured {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(106, 28, 246, 0.06), transparent 50%),
    var(--surface);
  border-color: rgba(106, 28, 246, 0.18);
}

.tool-card-soon { opacity: 0.78; }

.card-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 800;
  color: var(--brand-orange);
}

.chip {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-chip);
  color: #fff;
}
.chip-purple { background: var(--brand-purple); }
.chip-orange { background: var(--brand-orange); color: #1A0D05; }
.chip-dim    { background: rgba(36, 25, 55, 0.08); color: var(--text-dim); }

/* =====================================================================
   Section headings
   ===================================================================== */

.section-h {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.5vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 28px;
  max-width: 780px;
  color: var(--text);
}

/* =====================================================================
   How it works — numbered steps
   ===================================================================== */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.step {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  line-height: 1;
  color: var(--brand-purple);
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 6px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.step p { color: var(--text-dim); margin: 0; }

/* =====================================================================
   Features grid
   ===================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  margin: 12px 0 6px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.feature p { color: var(--text-dim); margin: 0; font-size: 14px; }

.feat-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 12px;
  color: #fff;
  line-height: 1;
}
.feat-icon-orange { background: var(--brand-orange); color: #1A0D05; }
.feat-icon-purple { background: var(--brand-purple); }

/* =====================================================================
   Download cards
   ===================================================================== */

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.dl-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out;
}
.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elev), var(--shadow-card);
}

.dl-card header { display: flex; align-items: center; gap: 14px; }
.dl-icon { width: 32px; height: 32px; flex-shrink: 0; }
.dl-icon-mono { color: var(--brand-purple); }
.dl-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-platform {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dl-version { font-size: 11px; color: var(--text-muted); }

.dl-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}
.dl-card p { color: var(--text-dim); margin: 0; }

.dl-action { margin-top: auto; font-weight: 800; color: var(--brand-orange); }

.dl-card-mac::before, .dl-card-win::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.dl-card-mac::before { background: var(--brand-purple); }
.dl-card-win::before { background: var(--brand-orange); }

:root[data-platform="mac"] .dl-card-mac,
:root[data-platform="win"] .dl-card-win {
  outline: 2px solid var(--brand-orange);
  outline-offset: -2px;
}

.dl-fine { color: var(--text-muted); font-size: 13px; max-width: 640px; margin-top: 22px; }

/* =====================================================================
   FAQ
   ===================================================================== */

.faq details {
  background: var(--surface);
  border-radius: var(--r-button);
  padding: 18px 22px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--brand-purple);
  transition: transform 150ms ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--text-dim); margin: 12px 0 4px; }

/* =====================================================================
   Footer
   ===================================================================== */

.site-foot {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding: 44px var(--gutter) 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 30px;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 14px;
}

.foot-left p { margin: 6px 0 0; max-width: 360px; }
.foot-right {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  font-weight: 600;
}
.foot-right a:hover { color: var(--text); }
.foot-copy {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 600px) {
  .site-foot { grid-template-columns: 1fr; }
}
