/* Spirisensa — light lilac background, deep plum headings, dark-gold accents,
   gold buttons, Cormorant Garamond headings, DM Sans body. */

:root {
  --bg: #fefaed;
  --card: #cec8e2;            /* boxes: the former page lilac */
  --card-strong: #cec8e2;
  --line: rgba(108, 99, 78, .38);
  --line-soft: rgba(42, 26, 71, .14);
  --accent: #684b0f;      /* dark gold: icons, borders */
  --yellow: #fdbb31;      /* italic words in headings and photo borders */
  --photo-border: 4px solid var(--yellow);
  --gold-btn: #f1c96a;    /* buttons stay gold */
  --ink: #2a1a47;         /* headings and emphasis */
  --text: #2e2840;        /* body text */
  --muted: #4f4862;       /* secondary text */
  --lead: #635f6e;
  --eyebrow: #6c634e;
  --heading-shadow: #858585 1px 1px 1px;
  --shadow: rgba(42, 26, 71, .22);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); text-shadow: var(--heading-shadow); margin: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.05; letter-spacing: -.01em; }
h1 em, h2 em { color: var(--yellow); font-style: italic; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; color: var(--accent); }

.eyebrow {
  font-family: var(--serif);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 14px;
}

.lead { font-size: 1.15rem; color: var(--lead); max-width: 34em; }
.muted { color: var(--muted); }
.gold-italic { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent); }

.num { font-family: var(--serif); color: var(--accent); font-size: .95em; margin-right: .45em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-gold { background: var(--gold-btn); color: #1b1430; box-shadow: 0 6px 20px rgba(138, 101, 22, .25); border: 0; cursor: pointer; }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(138, 101, 22, .35); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav .btn { padding: 11px 20px; font-size: .92rem; white-space: nowrap; }

/* ---------- Hero ---------- */

.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding: 48px 0 72px; }
.hero h1 { margin-bottom: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .reassure { margin-top: 18px; font-size: .92rem; color: var(--muted); }

.arch {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  border: var(--photo-border);
  box-shadow: 0 0 0 6px rgba(138, 101, 22, .1), 0 24px 60px var(--shadow);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* gold divider with a little star, as in the cheatsheet */
.divider { display: flex; align-items: center; gap: 16px; color: var(--accent); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Sections ---------- */

.section { padding: 76px 0; }
.section-head { max-width: 46em; margin-bottom: 34px; }
.section-head p { margin: 14px 0 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}
.card p { margin: 8px 0 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* five forms: name left, description right (as in the cheatsheet) */
.forms { display: grid; gap: 12px; }
.forms .card { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 18px 24px; }
.forms h3 { font-size: 1.3rem; }
.forms p { margin: 0; }

/* signs checklist */
.checklist { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: .38em;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}
/* recognition list: gold tick instead of an empty box */
.checklist-ticked li::before {
  content: "✓";
  display: grid;
  place-items: center;
  font-size: .72rem;
  line-height: 1;
  color: var(--accent);
}
.note { display: flex; gap: 16px; align-items: flex-start; }
.note .star { color: var(--accent); font-size: 1.5rem; line-height: 1.2; }
.note p { margin: 0; }

/* first steps */
.steps { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.round-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: var(--photo-border); box-shadow: 0 0 0 6px rgba(138, 101, 22, .1), 0 18px 44px var(--shadow); }
.round-photo img { width: 100%; height: 100%; object-fit: cover; }
.step-list { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.step .badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--accent);
}
.step h3 { font-size: 1.25rem; color: var(--ink); }
.step p { margin: 2px 0 0; }

/* doubts */
.doubts { display: grid; gap: 12px; }
.doubts .card { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; padding: 18px 24px; }
.doubts q { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--accent); quotes: "“" "”"; }
.doubts p { margin: 0; }

/* offers */
.offer { display: flex; flex-direction: column; gap: 14px; padding: 34px; }
.offer h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); }
.offer ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.offer li { display: flex; gap: 12px; }
.offer li::before { content: "✦"; color: var(--accent); font-size: .85em; line-height: 1.9; }
.offer .btn { align-self: flex-start; margin-top: auto; }
.offer-featured { border-color: var(--accent); background: var(--card-strong); box-shadow: 0 18px 50px var(--shadow); }
.offer-wide { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding: 40px; }
.offer-wide > div:last-child { display: flex; flex-direction: column; gap: 14px; }
.offer .reassure { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Subscribe page ---------- */

.signup { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 40px 0 80px; }
.signup-card { padding: 34px; }
.signup-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.signup-card form p { margin: 0 0 14px; }
.signup-card label { display: block; font-size: .92rem; color: var(--text); margin-bottom: 8px; }
.signup-card input[type="email"] {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
}
.signup-card input[type="email"]::placeholder { color: var(--muted); }
.signup-card input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
/* the signup form's button has no class (form markup comes from the mail tool), so style it here */
.signup-card button[type="submit"] {
  width: 100%;
  padding: 17px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gold-btn);
  color: #1b1430;
  font: 600 1.05rem/1 var(--sans);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(138, 101, 22, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.signup-card button[type="submit"]:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(138, 101, 22, .35); }
.signup-card button[type="submit"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.signup-card small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.55; }
.ic-signup-msg { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--accent); color: var(--ink); background: rgba(241, 201, 106, .3); }
.signup .points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.signup .points li { display: flex; gap: 12px; }
.signup .points li::before { content: "✦"; color: var(--accent); font-size: .85em; line-height: 1.9; }
#signup-form { scroll-margin-top: 24px; }
.for-you { padding: 0 0 40px; }
.for-you .card { padding: 34px; }
.for-you h2 { margin-bottom: 22px; }
.for-you .checklist { margin: 0; gap: 14px 28px; }
.for-you-cta { margin: 32px 0 0; text-align: center; }

/* ---------- Thank-you page ---------- */

.thanks { max-width: 680px; text-align: center; padding: 56px 0 80px; }
.thanks h1 { margin-bottom: 22px; }
.thanks .lead { margin-inline: auto; }
.thanks .card { text-align: left; margin-top: 40px; padding: 30px 34px; }
.thanks .card h2 { font-size: 1.7rem; }
.thanks .card p { margin: 12px 0 0; }

/* ---------- eBook sales page ---------- */

/* each section is a full-width colour band, all within the night/plum/gold palette */
.band { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.band:first-child { border-top: 0; padding-top: 48px; }
.narrow { max-width: 780px; }
.sales h2 { margin-bottom: 20px; }
.sales .band p { max-width: 40em; }
.sales .closing { margin: 36px 0 0; font-size: 1.45rem; line-height: 1.4; }
.sales .closing.center { text-align: center; margin-inline: auto; }

/* text + image side by side, alternating left/right per section */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split.img-left { grid-template-columns: .9fr 1.1fr; }
.split.img-left > .media { order: -1; }
.split-faq { align-items: start; }
.split-faq > .media { position: sticky; top: 32px; }
.media { margin: 0; }
.media img { width: 100%; height: auto; border-radius: 18px; border: var(--photo-border); box-shadow: 0 0 0 6px rgba(104, 75, 15, .08), 0 24px 56px var(--shadow); }
/* solution: notebook photo with the eBook cover laid over its corner */
.collage { position: relative; margin: 0; }
.collage-photo { width: 82%; height: auto; margin-left: auto; border-radius: 18px; border: var(--photo-border); box-shadow: 0 24px 56px var(--shadow); }
.collage-cover { position: absolute; left: 0; bottom: 44px; width: 46%; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 24px 56px rgba(42, 26, 71, .45); }
.collage-cover { height: auto; }
.collage figcaption { margin-top: 18px; font-size: .92rem; color: var(--muted); text-align: right; }

/* 1 problem: the night sky itself */
.band-problem h1 { font-size: clamp(2.4rem, 4.4vw, 3.3rem); margin-bottom: 22px; }
.problem-list { margin: 30px 0 0; gap: 14px; }

/* 2 agitate: darker, colder */
.band-agitate { background: #c4bed6; } /* cooler, greyer lilac */
.band-agitate h2 em { color: var(--yellow); }
.future { margin-top: 36px; }
.future .card { border-color: rgba(42, 26, 71, .2); }
.future h3 { color: var(--ink); font-size: 1.25rem; }
.band-agitate .closing { color: var(--text); }

/* 3 solution: violet light breaking through */
.band-solution { background: linear-gradient(160deg, #e2d8f4, #d3c6ec); } /* soft violet light */
.solution { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.inside-title { margin: 34px 0 14px; }
.inside { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.inside li, .buy-points li { display: flex; gap: 12px; }
.inside li::before, .buy-points li::before { content: "✦"; color: var(--accent); font-size: .85em; line-height: 1.9; }
.cover { margin: 0; text-align: center; }
.cover img, .buy-cover { border-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 24px 56px rgba(42, 26, 71, .4); }
.cover figcaption { margin-top: 18px; font-size: .92rem; color: var(--muted); }

/* 4 outcome: dawn, a warm golden glow */
.band-outcome {
  background:
    radial-gradient(900px 420px at 50% 100%, rgba(241, 201, 106, .45), transparent 70%),
    linear-gradient(180deg, #e6dcea, #efe2cf); /* dawn: warm cream with a golden glow */
}
.outcomes { margin-top: 40px; }
.outcomes .card { border-color: var(--line); }

/* testimonials between the sections */
.testimonial { padding: 64px 0; }
.jump-cta { margin: 48px 0 0; text-align: center; max-width: none !important; }
#buy { scroll-margin-top: 0; }
.testimonial blockquote { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial blockquote::before { content: "“"; display: block; font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--accent); }
.testimonial p { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.45; color: var(--ink); margin: 14px 0 12px; }
.testimonial footer { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

/* 5 call to action */
.band-cta { background: radial-gradient(800px 500px at 50% 50%, rgba(241, 201, 106, .25), transparent 70%); }
.buy-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
  padding: 52px;
  border: 2px solid var(--accent);
  background: var(--card-strong);
  box-shadow: 0 0 0 6px rgba(138, 101, 22, .1), 0 24px 60px var(--shadow);
}
.buy-card h2 { font-size: clamp(2.2rem, 4vw, 3rem); }
.buy-points { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
/* autoflowr offer box: markup comes from the mail tool, so style it by its classes */
#ic-offer p { margin: 0; }
.ic-offer-price { font-family: var(--serif); color: var(--ink); line-height: 1; }
.ic-offer-now { font-size: 3.4rem; font-weight: 600; color: var(--accent); }
.ic-offer-was { font-size: 1.8rem; color: var(--muted); margin-right: .3em; }
.ic-offer-timer { margin-top: 10px !important; color: var(--ink); }
.ic-offer-timer strong { color: var(--accent); font-variant-numeric: tabular-nums; }
.ic-offer-buy {
  display: inline-flex;
  justify-content: center;
  min-width: 340px;
  margin-top: 26px;
  padding: 28px 72px;
  border-radius: 999px;
  background: var(--gold-btn);
  color: #1b1430;
  font: 600 1.5rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(138, 101, 22, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ic-offer-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(138, 101, 22, .4); }
.ic-offer-buy:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.buy-note { margin: 18px 0 0; color: var(--text); }

/* FAQ */
.band-faq { background: #c5bedb; }
.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { background: var(--card-strong); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-size: 1.4rem; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); margin-top: 40px; padding: 30px 0 44px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--accent); }
.site-footer small { color: var(--muted); font-family: var(--serif); letter-spacing: .2em; text-transform: uppercase; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; }
  .hero .arch { width: 100%; max-width: 320px; margin-inline: auto; }
  .forms .card, .doubts .card { grid-template-columns: 1fr; gap: 6px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .round-photo { max-width: 220px; }
  .offer-wide { grid-template-columns: 1fr; gap: 26px; padding: 30px; }
  .offer-wide .offer-photo { width: 100%; max-width: 180px; margin-inline: auto; }
  .signup { grid-template-columns: 1fr; gap: 32px; padding-top: 16px; }
  .solution, .split, .split.img-left { grid-template-columns: 1fr; gap: 36px; }
  .split > .media, .solution > .collage { order: -1; width: 100%; max-width: 520px; margin-inline: auto; }
  .split-faq > .media { position: static; }
  .cover img { max-width: 260px; margin-inline: auto; }
  .buy-card { grid-template-columns: 1fr; gap: 32px; padding: 34px; text-align: center; }
  .buy-cover { max-width: 200px; margin-inline: auto; }
  .buy-points { justify-items: center; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav a:not(.btn) { display: none; }
  .site-header { gap: 12px; }
  .brand { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand span { font-size: .95rem; letter-spacing: .16em; }
  .site-nav .btn { padding: 10px 16px; font-size: .88rem; }
  .round-photo { margin-inline: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .offer { padding: 26px; }
  .band { padding: 64px 0; }
  .buy-card { padding: 28px 22px; }
  .ic-offer-buy { display: flex; min-width: 0; padding: 24px; font-size: 1.35rem; }
  .testimonial { padding: 48px 0; }
  .testimonial p { font-size: 1.3rem; }
}

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