/* Paperloom — storefront styles */
:root {
  --paper: #F6F1E7;
  --paper-2: #EDE6D8;
  --white: #FFFFFF;
  --ink: #24211C;
  --muted: #5E574C;
  --muted-2: #6B6357;
  --line: #DDD3C2;
  --line-2: #CFC5B3;
  --sage: #4A6650;
  --sage-dark: #2F4434;
  --sage-light: #E3EAE1;
  --clay: #B5573A;
  --clay-dark: #9A4630;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage); }
a:hover { color: var(--sage-dark); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sage); }
.kicker.clay { color: var(--clay); }
.muted { color: var(--muted); }
.section { padding: 88px 0; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.8px; line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; color: var(--paper); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Announcement + header */
.announce { background: var(--ink); color: var(--paper); font-size: 14px; text-align: center; padding: 10px 20px; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: -0.5px; }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--clay); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.cart-link:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 48px; padding-bottom: 80px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -1.5px; margin: 18px 0 22px; }
.hero h1 em { color: var(--clay); }
.hero-copy > p { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: 14px; color: var(--muted); }
.ticks span { display: flex; align-items: center; gap: 8px; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 20px 0; }
.tablet { position: relative; width: 400px; max-width: 100%; height: 520px; background: var(--ink); border-radius: 30px; padding: 16px; transform: rotate(3deg); box-shadow: 0 30px 60px rgba(36,33,28,.22); }
.tablet-screen { display: flex; height: 100%; background: #FBF8F2; border-radius: 16px; overflow: hidden; }
.tablet-page { flex: 1; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.tablet-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; }
.tablet-days div { border: 1px solid #DDD3C2; border-radius: 6px; padding: 8px; font-size: 11px; font-weight: 700; color: var(--sage); }
.tablet-tabs { width: 26px; display: flex; flex-direction: column; gap: 3px; padding: 18px 0; }
.tablet-tabs i { flex: 1; border-radius: 4px 0 0 4px; }
.paper-sheet { position: absolute; top: 40px; left: 6%; width: 250px; height: 330px; background: #fff; border-radius: 4px; transform: rotate(-7deg); box-shadow: 0 12px 30px rgba(36,33,28,.12); padding: 22px; }
.bar { height: 10px; background: #E9E1D2; border-radius: 3px; margin-bottom: 9px; }

/* Category bar */
.cat-bar { background: var(--paper-2); }
.cat-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 40px; padding-bottom: 40px; }
.chip { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; background: var(--paper); border: 1px solid #D9CFBE; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }

/* Product grid */
.grid-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.grid-head .kicker { margin-bottom: 10px; display: block; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 26px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-art { display: flex; justify-content: center; align-items: center; height: 320px; background: var(--paper-2); border-radius: 18px; text-decoration: none; transition: transform .2s; }
.card-art:hover { transform: translateY(-3px); }
.card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--sage); background: var(--sage-light); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.price { font-family: var(--serif); font-size: 22px; white-space: nowrap; }
.card .btn { min-height: 46px; }

/* Planner cover */
.cover { position: relative; width: 190px; height: 250px; border-radius: 4px 12px 12px 4px; box-shadow: 0 16px 30px rgba(36,33,28,.18); padding: 26px 22px 22px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(0,0,0,.14); border-radius: 4px 0 0 4px; }
.cover small { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.cover strong { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.08; }
.cover.lg { width: 320px; height: 420px; padding: 36px 30px 30px 44px; border-radius: 6px 18px 18px 6px; box-shadow: 0 26px 50px rgba(36,33,28,.22); }
.cover.lg::before { width: 14px; }
.cover.lg small { font-size: 13px; }
.cover.lg strong { font-size: 46px; line-height: 1.02; }
.cover.sm { width: 128px; height: 168px; padding: 16px; justify-content: flex-end; border-radius: 4px 10px 10px 4px; }
.cover.sm::before { width: 8px; }
.cover.sm small { display: none; }
.cover.sm strong { font-size: 19px; }
.cover.xs { width: 54px; height: 70px; padding: 0; border-radius: 3px 7px 7px 3px; box-shadow: 0 8px 16px rgba(36,33,28,.16); }
.cover.xs::before { width: 5px; }
.cover.xs small, .cover.xs strong { display: none; }

/* Devices */
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.device { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid #E4DBCB; border-radius: 18px; }
.device h3 { font-size: 17px; }
.device p { font-size: 14px; color: var(--muted); }

/* Bundle band */
.band { background: var(--sage); color: var(--paper); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; justify-content: space-between; }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -1px; margin: 12px 0 16px; }
.band p { color: #E3EAE1; font-size: 18px; }
.band .kicker { color: #E3EAE1; }
.band-copy { flex: 1 1 420px; min-width: 0; }
.stack { flex: 1 1 280px; min-width: 0; height: 250px; position: relative; }
.stack div { position: absolute; width: 150px; height: 200px; border-radius: 4px 10px 10px 4px; box-shadow: 0 14px 28px rgba(0,0,0,.25); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step b { font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--clay); }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); }
.bg-white { background: var(--white); }
.bg-paper2 { background: var(--paper-2); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--clay); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* Newsletter */
.news { background: var(--paper-2); border-radius: 28px; padding: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.news form { flex: 1 1 380px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.news .field { flex: 1 1 220px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input { min-height: 50px; padding: 0 16px; border: 1.5px solid #B9AE9B; border-radius: 12px; background: var(--white); color: var(--ink); width: 100%; }
.input:focus { border-color: var(--sage); outline: none; box-shadow: 0 0 0 3px rgba(74,102,80,.2); }
.input.pill { border-radius: 999px; padding: 0 20px; }
.field-error { font-size: 13px; color: #A3331A; min-height: 0; }
.input[aria-invalid="true"] { border-color: #A3331A; }

/* Footer */
.site-footer { background: var(--ink); color: #D9D1C3; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 32px; font-size: 15px; }
.site-footer a { color: #D9D1C3; }
.site-footer a:hover { color: #fff; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col strong { color: var(--paper); }
.foot-brand { flex: 1 1 260px; }
.foot-brand div { font-family: var(--serif); font-size: 26px; color: var(--paper); margin-bottom: 10px; }
.copyright { padding: 0 24px 36px; max-width: 1200px; margin: 0 auto; font-size: 13px; color: #B3AA9A; }

/* Product (sales) page */
.breadcrumb { font-size: 14px; color: var(--muted-2); padding-bottom: 20px; }
.pdp .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-bottom: 80px; }
.pdp-art { flex: 1 1 460px; min-width: 0; height: 560px; background: var(--paper-2); border-radius: 26px; display: flex; align-items: center; justify-content: center; }
.pdp-info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pdp-info h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.04; letter-spacing: -1px; }
.pdp-info .lead { font-size: 19px; color: var(--muted); }
.big-price { font-family: var(--serif); font-size: 40px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; margin-bottom: 12px; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--white); font-weight: 500; cursor: pointer; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt-note { margin-top: 10px; font-size: 14px; color: var(--muted-2); }
.small-note { font-size: 14px; color: var(--muted-2); }
.who { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.who > div { flex: 1 1 320px; }
.who > p { flex: 2 1 480px; font-size: 21px; line-height: 1.5; }
.inside-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.inside { display: flex; flex-direction: column; gap: 8px; padding: 26px; background: var(--white); border-radius: 18px; }
.inside h3 { font-size: 18px; }
.inside p { color: var(--muted); font-size: 15px; }
.check { width: 34px; height: 34px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 26px; }
.related { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.related:hover { color: var(--ink); }
.related .art { height: 220px; background: var(--paper-2); border-radius: 18px; display: flex; align-items: center; justify-content: center; }

/* Cart / checkout / thanks */
.page-title { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 52px); letter-spacing: -1px; margin-bottom: 32px; }
.two-col { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 96px; }
.col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.col-side { flex: 1 1 340px; min-width: 0; }
.panel { background: var(--white); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; }
.line-item { background: var(--white); border-radius: 18px; padding: 20px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.line-item .li-info { flex: 1 1 220px; min-width: 0; }
.line-item h3 { font-size: 19px; margin-bottom: 2px; }
.icon-btn { min-width: 44px; min-height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--ink); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { border-top: 1px solid #E4DBCB; padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span:last-child { font-family: var(--serif); font-size: 32px; }
.mini-item { display: flex; gap: 14px; align-items: center; }
.mini-item .mi-info { flex: 1; min-width: 0; font-size: 15px; }
.mini-item .mi-info span { display: block; font-size: 13px; color: var(--muted-2); }
.empty { background: var(--white); border-radius: 18px; padding: 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.upsell { background: var(--sage); color: var(--paper); border-radius: 18px; padding: 24px 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.upsell p { font-size: 18px; flex: 1 1 300px; }
.upsell .btn { min-height: 48px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-alert { padding: 14px 16px; border-radius: 12px; background: #F6DDD3; color: #7A2E18; font-size: 15px; display: none; }
.form-alert.show { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sage); }
.thanks { max-width: 820px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.thanks h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 52px); line-height: 1.05; letter-spacing: -1px; }
.big-check { width: 60px; height: 60px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.next-steps { background: var(--paper-2); border-radius: 22px; padding: 30px 32px; }
.next-steps ol { margin: 14px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }

@media (max-width: 640px) {
  .band, .news { padding: 32px 24px; }
  .section { padding: 64px 0; }
  .pdp-art { height: 440px; }
  .cover.lg { width: 250px; height: 330px; }
  .cover.lg strong { font-size: 36px; }
  .main-nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; font-size: 14px; padding-bottom: 4px; }
  .main-nav a { white-space: nowrap; }
  .hero .wrap { padding-top: 24px; }
  .paper-sheet { display: none; }
}
