/* =========================================================
   Quietlight — product site
   Warm, calm, premium. Parchment ground, brass accent,
   serif display type. Static: no build step, no framework.
   ========================================================= */

:root {
  /* Ground */
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --paper-3: #ece5d8;
  --ink: #2a251e;
  --ink-2: #4a4239;
  --ink-soft: #766c5f;

  /* Brass / accents, pulled from the app's own palette */
  --brass: #a97a35;
  --brass-deep: #8a6027;
  --brass-wash: #f0e3cd;
  --sage: #7c8c82;

  --line: rgba(42, 37, 30, 0.12);
  --line-soft: rgba(42, 37, 30, 0.07);

  --shadow-sm: 0 1px 2px rgba(42, 37, 30, 0.06);
  --shadow: 0 10px 30px rgba(42, 37, 30, 0.08);
  --shadow-lg: 0 28px 70px rgba(42, 37, 30, 0.14);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Anchored sections land below the sticky header, not under it. */
section[id] {
  scroll-margin-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brass-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
}

h1,
h2 {
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

h3 {
  font-size: 1.32rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1em;
  color: var(--ink-2);
}

.lede {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 40em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 1rem;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 1.42rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, #d3a75d, var(--brass));
  flex: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--brass-deep);
  text-decoration: none;
}

/* The one action the header carries as a button: the download. */
.nav a.nav-cta {
  color: #fff;
  background: var(--brass);
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(169, 122, 53, 0.22);
}

.nav a.nav-cta:hover {
  color: #fff;
  background: var(--brass-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn-primary {
  background: var(--brass);
  color: #fff;
  box-shadow: 0 8px 20px rgba(169, 122, 53, 0.24);
}

.btn-primary:hover {
  background: var(--brass-deep);
  box-shadow: 0 12px 26px rgba(169, 122, 53, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 40px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 12% 0%,
      rgba(211, 167, 93, 0.2),
      transparent 58%
    ),
    radial-gradient(ellipse at 92% 20%, rgba(124, 140, 130, 0.16), transparent 55%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  max-width: 15ch;
}

.hero .lede {
  margin-bottom: 2rem;
}

.hero-meta {
  margin-top: 22px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.shot {
  margin: 56px auto 0;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #16130f;
}

.shot img {
  width: 100%;
}

.shot-caption {
  text-align: center;
  margin: 18px auto 0;
  max-width: 46em;
}

/* ---------- Sections ---------- */

section {
  padding: 82px 0;
}

.section-soft {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head {
  max-width: 46em;
  margin-bottom: 46px;
}

.section-head p {
  font-size: 1.08rem;
}

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.section-soft .card {
  background: #fffdf9;
}

.card h3 {
  margin-bottom: 0.4em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--brass);
  display: block;
  margin-bottom: 12px;
}

/* Style figures (Photo Wall / Memory Table / Classic) */

.style-fig {
  height: 118px;
  border-radius: var(--radius-sm);
  background: #1c1813;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.style-fig svg {
  width: 100%;
  height: 100%;
}

/* Feature list */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 46px;
}

.feature h3 {
  font-family: var(--sans);
  font-size: 1.03rem;
  font-weight: 650;
  margin-bottom: 0.3em;
}

.feature p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Split panel ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Pricing ---------- */

.price-card {
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
  max-width: 560px;
}

.price-card.center {
  margin: 0 auto;
  text-align: center;
}

.price {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--ink);
  display: block;
  margin: 6px 0 4px;
  font-variant-numeric: lining-nums;
}

.price-unit {
  color: var(--ink-soft);
  font-size: 1rem;
}

.ticks {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  text-align: left;
}

.ticks li {
  position: relative;
  padding: 7px 0 7px 30px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
}

.ticks li:last-child {
  border-bottom: 0;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.85;
}

/* ---------- Callout ---------- */

.callout {
  background: var(--brass-wash);
  border: 1px solid rgba(169, 122, 53, 0.25);
  border-radius: var(--radius);
  padding: 24px 26px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Legal pages ---------- */

.legal h2 {
  font-size: 1.45rem;
  margin: 2em 0 0.5em;
}

.legal ul {
  margin: 0 0 1.1em;
  padding-left: 24px;
  color: var(--ink-2);
}

.legal li {
  margin-bottom: 0.55em;
}

.legal li::marker {
  color: var(--brass);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  color: var(--ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brass);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 40px 22px 0;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Page header (subpages) ---------- */

.page-head {
  padding: 76px 0 8px;
  position: relative;
  overflow: hidden;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 20% 0%,
    rgba(211, 167, 93, 0.16),
    transparent 60%
  );
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
}

.page-head h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 52px;
  color: var(--ink-2);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(169, 122, 53, 0.4);
  background: var(--brass-wash);
  color: var(--brass-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong {
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 46px 0 54px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: baseline;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a,
.site-footer p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.site-footer p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .features,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 34px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 62px 0 30px;
  }
}

/* The nav links plus the Download button stop fitting beside the wordmark
   around 800px, so the header stacks on its own breakpoint. Once it stacks it
   is two rows tall — too much of a phone screen to hold sticky — so it scrolls
   away instead. */
@media (max-width: 800px) {
  .site-header {
    position: static;
  }

  section[id] {
    scroll-margin-top: 16px;
  }

  .site-header .wrap {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .nav {
    margin-left: 0;
    width: 100%;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  /* Tap targets: each link is a single line of small text, well under the
     comfortable minimum without padding of its own. */
  .nav a {
    padding: 9px 0;
  }

  .nav a.nav-cta {
    padding: 9px 18px;
    margin: 6px 0;
  }

  .footer-nav {
    gap: 0 22px;
  }

  .footer-nav a {
    padding: 7px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  /* Display type keeps scaling below 640px. The desktop clamps floor out at
     this width, so the values below meet them exactly at the breakpoint. */
  h1 {
    font-size: clamp(1.9rem, 1.15rem + 3.63vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.5rem, 1.1rem + 2vw, 1.9rem);
  }

  h3 {
    font-size: 1.22rem;
  }

  .page-head h1 {
    font-size: clamp(1.69rem, 1.175rem + 2.56vw, 2.2rem);
  }

  .lede {
    font-size: 1.14rem;
  }

  /* The 15ch measure is a desktop nicety; on a phone it just wastes the
     right-hand third of the line. */
  .hero h1 {
    max-width: none;
  }

  .brand {
    font-size: 1.3rem;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .btn {
    padding: 14px 24px;
  }

  .btn-sm {
    padding: 11px 18px;
  }

  section {
    padding: 52px 0;
  }

  .hero {
    padding: 44px 0 24px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .shot {
    margin-top: 34px;
  }

  .card {
    padding: 24px 22px;
  }

  .price-card {
    padding: 32px 24px;
  }

  .price {
    font-size: 3.1rem;
  }

  .callout {
    padding: 20px 20px;
  }

  .steps li {
    padding-left: 46px;
  }

  .faq summary {
    padding: 17px 34px 17px 0;
  }

  .faq .answer {
    padding-right: 0;
  }

  .site-footer {
    padding: 36px 0 42px;
  }

  .footer-inner {
    gap: 16px 28px;
  }
}
