/* Howlwind Extensions — store styles */

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Italic.woff") format("woff");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #F3EFE6;
  --bg-warm: #E8E2D4;
  --paper: #FFFCF7;
  --ink: #1A1814;
  --ink-2: #3F3B35;
  --muted: #6A645A;
  --line: #DDD6C8;
  --line-strong: #C9C1B0;
  --accent: #1F4F40;
  --accent-hover: #163B30;
  --accent-soft: #E4EEE9;
  --max: 1120px;
  --header: 4.15rem;
  --radius: 1.15rem;
  --radius-sm: 0.8rem;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --teal: #1F4F40;
  --violet: #5B35D5;
  --mint: #0E6E5C;
  --orange: #C44B12;
  --shadow: 0 1px 2px rgba(26, 24, 20, 0.04), 0 12px 32px rgba(26, 24, 20, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
  color: var(--bg);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 28px;
  height: 28px;
  align-self: center;
  flex-shrink: 0;
  border-radius: 7px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-suffix {
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  top: -0.08em;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.nav-desktop a,
.nav-mobile-panel a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-desktop a:hover,
.nav-mobile-panel a:hover,
.nav-desktop a[aria-current="page"],
.nav-mobile-panel a[aria-current="page"] {
  color: var(--ink);
}

.nav-mobile {
  position: relative;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.4rem 0.2rem 0.4rem 0.7rem;
  user-select: none;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.1rem) rotate(45deg);
  vertical-align: middle;
}

.nav-mobile[open] summary::after {
  transform: translateY(0.08rem) rotate(-135deg);
}

.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  min-width: 12.5rem;
  display: flex;
  flex-direction: column;
}

.nav-mobile-panel a {
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
}

.nav-mobile-panel a:hover {
  background: var(--bg);
}

@media (min-width: 820px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 3.25rem 0 3rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 6.4vw, 4.65rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.hero-apps {
  list-style: none;
  margin: 2.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
}

.hero-apps a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.95rem;
}

.hero-apps a:hover {
  color: var(--accent);
}

.hero-apps img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(26, 24, 20, 0.12);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  border: 1.5px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #F7F3EA;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #F7F3EA;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-download {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-download:hover {
  background: var(--bg);
  color: var(--ink);
}

.btn-buy {
  background: var(--p, var(--accent));
  color: #fff;
}

.btn-buy:hover {
  filter: brightness(0.92);
  color: #fff;
}

.product[data-accent="teal"] { --p: var(--teal); }
.product[data-accent="violet"] { --p: var(--violet); }
.product[data-accent="mint"] { --p: var(--mint); }
.product[data-accent="orange"] { --p: var(--orange); }

/* Extensions */

.extensions {
  padding: 0 0 2rem;
}

.section-head {
  margin-bottom: 1.6rem;
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lede {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.product {
  --p: var(--accent);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 0 1.35rem;
  box-shadow: var(--shadow);
}

.product-media {
  background: #e8e4da;
}

.product-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 16 / 9;
}

.product-body {
  padding: 1.35rem 1.2rem 1.45rem;
  display: flex;
  flex-direction: column;
}

.product-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.product-title img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.product-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.tagline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pitch {
  margin: 0 0 1.1rem;
  color: var(--ink-2);
}

.tiers {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.tiers h4 {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier-pro h4 {
  color: var(--p);
}

.tiers ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiers li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.tiers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 0.28rem;
  border-left: 1.6px solid var(--p);
  border-bottom: 1.6px solid var(--p);
  transform: rotate(-45deg);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1 1 12rem;
}

.pay-note {
  margin: 0.7rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (min-width: 640px) {
  .tiers {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4.5rem 0 4rem;
  }

  .product-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas:
      "title title"
      "pitch tiers"
      "actions actions"
      "note note";
    column-gap: 2rem;
    row-gap: 0.35rem;
    padding: 1.7rem 2rem 1.85rem;
    align-items: start;
  }

  .product-title { grid-area: title; }
  .pitch { grid-area: pitch; margin-bottom: 0.6rem; }
  .tiers { grid-area: tiers; margin-bottom: 0.4rem; }
  .product-actions { grid-area: actions; }
  .product-actions .btn {
    flex: 0 1 auto;
    min-width: 16rem;
  }
  .pay-note { grid-area: note; }
}

/* Guides */

.guides {
  padding: 2.5rem 0 1rem;
}

.guides-grid {
  display: grid;
  gap: 1.35rem;
}

.guide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.7rem;
  box-shadow: var(--shadow);
}

.steps {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.steps li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.steps li > div > strong {
  display: block;
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.steps strong {
  font-weight: 650;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

code {
  font-family: ui-monospace, "Geist Mono", "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--bg-warm);
  color: var(--ink);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .guides {
    padding: 3rem 0 1.25rem;
  }

  .guides-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }

  .guide {
    padding: 1.8rem 1.7rem 1.9rem;
  }
}

/* FAQ */

.faq {
  padding: 2.5rem 0 4rem;
}

.faq-wrap {
  max-width: 760px;
}

.faq h2 {
  margin-bottom: 1.1rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  flex-shrink: 0;
  border-right: 1.7px solid var(--ink);
  border-bottom: 1.7px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -0.15rem;
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.2rem;
}

.faq details p {
  margin: 0 0 1.15rem;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: #EDE8DC;
  padding: 2.4rem 0 1.6rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.footer-brand p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 28rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.footer-base {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-base p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-links {
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* Privacy / legal */

.legal {
  padding: 3rem 0 4.5rem;
}

.legal-wrap {
  max-width: 40rem;
}

.legal h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.legal h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.55rem;
}

.legal h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
}

.legal p {
  margin: 0.7rem 0 0;
  color: var(--ink-2);
}

.legal .lede {
  color: var(--ink-2);
}

.legal-updated {
  margin-top: 2.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .faq summary::after,
  .nav-mobile summary::after {
    transition: none;
  }
}
