/* sqft social sales site. Shophouse palette, Delight + Inter, Playfair accent, Caveat notes. */

@font-face { font-family: Delight; src: url("fonts/delight-extrabold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: Delight; src: url("fonts/delight-black.otf") format("opentype"); font-weight: 900; font-display: swap; }

:root {
  --green: #2F4A3F;
  --terracotta: #B5654A;
  --ochre: #D2A35C;
  --teal: #9CC5C0;
  --cream: #F5EFE4;
  --cream-2: #EFE6D6;
  --charcoal: #26292B;
  --muted: #5d6062;
  --white: #FFFDF9;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38, 41, 43, .06), 0 10px 30px rgba(38, 41, 43, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 17px/1.6 Inter, system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.center .actions, .center .btn { margin-inline: auto; }

/* ---------- type */

h1, h2, h3 { font-family: Delight, Inter, sans-serif; font-weight: 800; letter-spacing: -.02em; line-height: 1.04; margin: 0 0 .5em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.4vw, 52px); }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.01em; }
h1.plain, h2.plain { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; }
p { margin: 0 0 1em; }

.accent {
  position: relative;
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--terracotta);
}
.hero .accent, .on-dark .accent { color: var(--ochre); }
.herringbone .accent { color: var(--cream); }
.swoosh { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .22em; overflow: visible; }
.swoosh path { fill: none; stroke: var(--terracotta); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.herringbone .swoosh path { stroke: var(--ochre); }

.label { font: 600 13px/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px; }
.label.light { color: var(--teal); }
.note { font: 600 26px/1 Caveat, cursive; color: var(--teal); margin-bottom: 10px; }
.note.dark { color: var(--terracotta); font-size: 24px; }
.lede { font-size: 19px; max-width: 34em; }
.sub { color: var(--muted); max-width: 40em; }
.small { font-size: 14px; color: var(--muted); }
.small.light { color: rgba(245, 239, 228, .75); margin-top: 14px; }

/* ---------- textures */

.mat {
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(245, 239, 228, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 228, .10) 1px, transparent 1px),
    linear-gradient(rgba(245, 239, 228, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 239, 228, .05) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--cream);
}
.paper {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(47, 74, 63, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 74, 63, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 88px 0;
}
.paper.alt { background-color: var(--cream-2); }
.herringbone {
  background-color: var(--terracotta);
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 10px, transparent 10px 20px);
  color: var(--cream);
  padding: 96px 0;
}

/* ---------- header and footer */

.topbar { background: var(--green); color: var(--cream); border-bottom: 1px solid rgba(245, 239, 228, .12); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.topbar nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.topbar nav a { text-decoration: none; opacity: .85; }
.topbar nav a:hover { opacity: 1; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 Delight, Inter, sans-serif; letter-spacing: -.02em; }
.wordmark b { color: var(--terracotta); font-weight: 800; }
.topbar .wordmark b { color: var(--ochre); }

.footer { background: var(--charcoal); color: var(--cream); padding: 48px 0; }
.footer .wrap { display: grid; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.footer .small { color: rgba(245, 239, 228, .6); margin: 0; }
.footer .wordmark b { color: var(--ochre); }

/* ---------- hero */

.hero { padding: 96px 0 104px; }
.hero-inner > * { max-width: 860px; }
.hero-title { color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumbs { font-size: 14px; opacity: .7; margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.product-hero { padding: 64px 0 80px; }
.product-hero .hero-title { font-size: clamp(38px, 5vw, 62px); }
.cover-wrap { display: flex; justify-content: center; }
.cover { width: min(380px, 100%); border-radius: 6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* ---------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 16px/1 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.btn-primary { background: var(--terracotta); color: var(--cream); box-shadow: 0 6px 16px rgba(181, 101, 74, .35); }
.btn-primary:hover { background: #a45940; }
.btn-ghost { color: var(--cream); box-shadow: inset 0 0 0 2px rgba(245, 239, 228, .5); }
.btn-cream { background: var(--cream); color: var(--green); }
.textlink { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--terracotta); text-decoration: none; }
.textlink:hover { text-decoration: underline; }

.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }
.buybox .small { flex-basis: 100%; color: rgba(245, 239, 228, .75); margin: 0; }
.price { font: 800 18px/1 Delight, Inter, sans-serif; color: var(--terracotta); }
.price.big { font-size: 40px; color: var(--cream); }

/* ---------- layout blocks */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.pain-q { font: 800 21px/1.2 Delight, Inter, sans-serif; letter-spacing: -.01em; color: var(--green); }
.pain p:last-child { margin: 0; color: var(--muted); }

.plan { counter-reset: step; list-style: none; margin: 0; padding: 32px; }
.plan li { counter-increment: step; position: relative; padding-left: 58px; margin-bottom: 22px; }
.plan li:last-child { margin-bottom: 0; }
.plan li::before {
  content: "0" counter(step); position: absolute; left: 0; top: -4px;
  font: 800 30px/1 Delight, Inter, sans-serif; color: var(--terracotta);
}

.group { margin-top: 56px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border-bottom: 2px solid var(--green); padding-bottom: 12px; margin-bottom: 24px; }
.group-title { font-size: 26px; margin: 0; color: var(--green); }
.group-head p { margin: 0; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { padding: 0; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(38, 41, 43, .06), 0 18px 40px rgba(38, 41, 43, .16); }
.card-cover { height: 270px; overflow: hidden; padding: 28px 0 0; display: flex; justify-content: center; align-items: flex-start; background: var(--green); background-image: linear-gradient(rgba(245, 239, 228, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 239, 228, .07) 1px, transparent 1px); background-size: 24px 24px; }
.card-cover img { width: 66%; height: auto; border-radius: 4px 4px 0 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.product-card:hover .card-cover img { transform: translateY(-6px); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: 15.5px; }
.price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; }
.pages { font-size: 14px; color: var(--muted); }
.kit-note { margin-top: 56px; background: var(--green); color: var(--cream); }
.kit-note .note.dark { color: var(--teal); }
.kit-note p:last-child { margin: 0; max-width: 46em; }
.kit-note h3 { color: var(--cream); font-size: 28px; margin: 0 0 8px; }
.kit-note s { opacity: .7; }
.kit-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px !important; }
.textlink.light { color: var(--cream); margin-top: 0; }
.was { color: rgba(245, 239, 228, .75); text-decoration: line-through; font-size: 15px; }
.cover-stack { position: relative; height: 420px; }
.cover-stack .cover { position: absolute; width: 58%; height: auto; border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.cover-stack .cover:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.cover-stack .cover:nth-child(2) { left: 21%; top: 10px; z-index: 1; }
.cover-stack .cover:nth-child(3) { right: 0; top: 40px; transform: rotate(6deg); }
.dl-list { list-style: none; margin: 0 0 28px; padding: 0; }
.dl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(47, 74, 63, .15); }
.dl-row b { display: block; font-family: Delight, Inter, sans-serif; font-size: 19px; color: var(--green); }
.dl-row .btn { flex-shrink: 0; }
@media (max-width: 900px) { .cover-stack { height: 300px; max-width: 420px; } }

.crosses { list-style: none; margin: 0; padding: 0; }
.crosses li { position: relative; padding-left: 36px; margin-bottom: 14px; }
.crosses li:last-child { margin-bottom: 0; }
.crosses li::before {
  content: "✕"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--terracotta); color: var(--terracotta); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

.previews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.preview img { border-radius: 6px; box-shadow: var(--shadow); transition: transform .18s ease; }
.preview:hover img { transform: translateY(-3px); }

.inside { list-style: none; margin: 0; padding: 0; }
.inside li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid rgba(47, 74, 63, .15); }
.inside b { font-family: Delight, Inter, sans-serif; font-size: 19px; color: var(--green); letter-spacing: -.01em; }
.inside span { color: var(--muted); font-size: 15.5px; }
.steps { margin: 0; padding: 28px 28px 28px 52px; }
.steps li { margin-bottom: 12px; }
.steps li:last-child { margin-bottom: 0; }
.steps li::marker { font-weight: 700; color: var(--terracotta); }

.bonus h3 { color: var(--green); }
.bonus p:last-of-type { color: var(--muted); }
.bonus .btn { margin-right: 14px; }

.faq details { border-bottom: 1px solid rgba(47, 74, 63, .18); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; position: relative; padding-right: 36px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -4px; font: 400 28px/1 Inter, sans-serif; color: var(--terracotta); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

.signup { display: grid; gap: 8px; }
.signup label { font-weight: 600; font-size: 14px; }
.signup input {
  min-height: 50px; padding: 0 16px; border-radius: 10px; border: 1.5px solid rgba(47, 74, 63, .25);
  font: inherit; background: var(--cream); color: var(--charcoal); margin-bottom: 8px;
}
.signup .btn { margin-top: 6px; }
.signup .small { margin: 8px 0 0; }

.cta p { max-width: 34em; margin-inline: auto; }
.cta .btn { margin-top: 12px; }
.cta .note { color: var(--cream); opacity: .9; }

.prose h2 { font-size: 26px; margin-top: 40px; }
.prose p { color: #3a3d3f; }

/* ---------- small screens */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .grid, .three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar nav a:not(:first-child) { display: none; }
  .hero { padding: 64px 0 72px; }
  .paper { padding: 64px 0; }
  .grid, .three { grid-template-columns: 1fr; }
  .previews { grid-template-columns: 1fr 1fr; gap: 12px; }
  .previews .preview:nth-child(3) { display: none; }
  .card { padding: 22px; }
  .buybox .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- lead magnet, downsell and upsell */

.ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--terracotta); font-weight: 700; }
.free-grid { margin-top: 32px; }
.free-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.free-card .card-cover { height: 230px; }
.free-card h3 { margin: 0 0 8px; }
.free-card .ticks { margin-bottom: 18px; font-size: 15px; }
.free-card .pick { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.free-card .pick input { width: 20px; height: 20px; accent-color: var(--terracotta); }
.signup-box { margin-top: 28px; padding: 28px; }
.signup-row { grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; }
.signup-row input { width: 100%; margin-bottom: 0; }
.signup-row label { display: block; margin-bottom: 8px; }
@media (max-width: 760px) { .signup-row { grid-template-columns: 1fr; } }
.free-note { margin: 16px 0 0; color: var(--muted); }
.signup .note { margin-bottom: 4px; }
.downsell { flex-basis: 100%; font-size: 15px; color: var(--teal); text-decoration: none; }
.downsell:hover { text-decoration: underline; }
.downsell-light { margin-top: 18px; font-size: 15px; }
.downsell-light a { color: var(--cream); opacity: .85; }
.center-sub { margin-inline: auto; }
.upsell { margin-top: 40px; max-width: 860px; }
.upsell .product-card { max-width: 340px; justify-self: end; width: 100%; }
.upsell h3 { font-size: 28px; color: var(--green); }
.price.big-dark { font-size: 32px; }
.textlink.block { display: block; }
@media (max-width: 900px) { .upsell .product-card { justify-self: start; } }
.signup-done { margin-top: auto; padding: 16px 18px; border-radius: 10px; background: var(--cream); color: var(--charcoal); }
.signup[hidden] { display: none; }
