/* ArcherWorks — shared styles */
:root {
  --navy: #12224D;
  --navy-deep: #0B1736;
  --ink: #17203A;
  --slate: #515B76;
  --mist: #EEF1F7;
  --line: #DCE1EC;
  --white: #FFFFFF;
  --amber: #F4B223;
  --amber-deep: #D99A0B;
  --teal: #0E5F66;
  --cobalt: #2747C7;
  --plum: #5B2B6E;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; color: var(--navy); }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .97rem; font-weight: 500; }
.nav a:hover { color: var(--cobalt); }
.nav .btn { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; padding: 0; cursor: pointer; color: var(--navy); }
.nav-toggle svg { margin: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 22px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--buy { background: var(--amber); color: var(--navy-deep); }
.btn--buy:hover { background: var(--amber-deep); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-deep); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: 11px 16px; font-size: .93rem; }
.btn--block { width: 100%; }

/* Hero */
.hero { background: var(--mist); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-top: 76px; padding-bottom: 84px; }
.hero__lede { font-size: 1.2rem; color: var(--slate); max-width: 33em; margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: .93rem; color: var(--slate); }

/* PDF covers — the signature element */
.cover {
  --c: var(--navy);
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--c);
  color: var(--white);
  border-radius: 4px 10px 10px 4px;
  padding: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 18px 34px -14px rgba(11,23,54,.55);
  container-type: inline-size;
  overflow: hidden;
}
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5%; background: rgba(0,0,0,.22); }
.cover::after { content: ""; position: absolute; right: -22%; bottom: -16%; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 7cqw rgba(255,255,255,.04), 0 0 0 14cqw rgba(255,255,255,.03); }
.cover--product { --c: var(--navy); }
.cover--shopify { --c: var(--teal); }
.cover--meta { --c: var(--cobalt); }
.cover--google { --c: var(--plum); }
.cover > * { margin-left: 13cqw; margin-right: 8cqw; }
.cover__brand { font-family: var(--display); font-size: 5.2cqw; letter-spacing: -0.01em; opacity: .8; margin-top: 9cqw; }
.cover__icon { width: 19cqw; height: 19cqw; margin-top: 13cqw; color: var(--amber); }
.cover__title { font-family: var(--display); font-weight: 700; font-size: 10cqw; line-height: 1.04; letter-spacing: -0.02em; margin-top: 6cqw; position: relative; z-index: 1; }
.cover__kind { margin-top: auto; margin-bottom: 9cqw; font-size: 4.6cqw; opacity: .8; position: relative; z-index: 1; }

.stack { display: grid; place-items: center; padding: 40px 0; }
.stack .cover { grid-area: 1 / 1; width: clamp(84px, 11.6vw, 146px); transform: translate(var(--x), var(--y)) rotate(var(--r)); animation: fan .9s cubic-bezier(.2,.8,.2,1) both; }
.stack .cover:nth-child(1) { --x: -135%; --y: 7%; --r: -7deg; }
.stack .cover:nth-child(2) { --x: -45%; --y: -4%; --r: -2.5deg; }
.stack .cover:nth-child(3) { --x: 45%; --y: -4%; --r: 2.5deg; }
.stack .cover:nth-child(4) { --x: 135%; --y: 7%; --r: 7deg; }
@keyframes fan { from { transform: translate(0, 6%) rotate(0); } }

/* Facts strip */
.facts { border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--slate); line-height: 1.45; }
.facts svg { flex: none; width: 24px; height: 24px; color: var(--navy); margin-top: 1px; }
.facts strong { display: block; color: var(--navy); font-weight: 600; }

/* Sections */
.section { padding: 92px 0; }
.section--mist { background: var(--mist); }
.section__head { max-width: 40em; margin-bottom: 52px; }
.section__head p { margin-top: 16px; color: var(--slate); font-size: 1.1rem; }

/* Guides */
.guide { display: grid; grid-template-columns: 220px 1fr auto; gap: 44px; align-items: start; padding: 44px 0; border-top: 1px solid var(--line); }
.guide:last-child { border-bottom: 1px solid var(--line); }
.guide__body p { color: var(--slate); margin-top: 10px; max-width: 34em; }
.guide__list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; font-size: .96rem; }
.guide__list li { padding-left: 24px; position: relative; }
.guide__list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.guide__buy { text-align: right; min-width: 150px; }
.price { font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--navy); line-height: 1; letter-spacing: -0.02em; }
.guide__buy .btn { margin-top: 16px; }
.guide__buy small { display: block; margin-top: 10px; color: var(--slate); font-size: .85rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 22px; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); margin-bottom: 16px; }
.steps p { color: var(--slate); margin-top: 8px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; }
.plan--bundle { background: var(--navy); border-color: var(--navy); color: #D8DEEE; }
.plan--bundle h3, .plan--bundle .price { color: var(--white); }
.plan__sub { color: var(--slate); margin-top: 8px; }
.plan--bundle .plan__sub { color: #B9C2DB; }
.plan__rows { list-style: none; margin: 26px 0 0; padding: 0; }
.plan__rows li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.plan__rows li span:first-child { flex: 1; font-weight: 500; }
.plan__rows .amt { font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.plan__price { display: flex; align-items: baseline; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.plan__price .price { font-size: 3.4rem; }
.plan__price s { color: #9AA6C6; font-size: 1.15rem; }
.save { background: var(--amber); color: var(--navy-deep); font-weight: 600; font-size: .88rem; padding: 4px 10px; border-radius: 99px; }
.plan__incl { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 10px; }
.plan__incl li { padding-left: 26px; position: relative; }
.plan__incl li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 6px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg); }
.plan .btn--block { margin-top: auto; }
.plan__foot { margin-top: 14px; font-size: .88rem; text-align: center; color: #B9C2DB; }

/* Fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fit > div { border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.fit ul { margin: 16px 0 0; padding-left: 20px; color: var(--slate); display: grid; gap: 8px; }
.disclaimer { margin-top: 28px; color: var(--slate); font-size: .95rem; max-width: 62em; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--slate); padding: 0 40px 24px 0; }

/* Closing CTA */
.closing { background: var(--navy); color: #C9D1E6; padding: 80px 0; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing h2 { color: var(--white); max-width: 16em; }
.closing p { margin-top: 12px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #AEB8D3; padding: 56px 0 32px; font-size: .95rem; }
.site-footer .brand { color: var(--white); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__grid p { margin-top: 14px; max-width: 26em; }
.site-footer h4 { font-family: var(--display); color: var(--white); font-size: 1rem; margin: 0 0 14px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #AEB8D3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; line-height: 1.6; display: grid; gap: 10px; }

/* Legal + contact pages */
.page-head { background: var(--mist); padding: 64px 0 56px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.page-head p { margin-top: 14px; color: var(--slate); }
.prose { max-width: 740px; padding: 56px 24px 96px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { color: #3B4560; margin: 0 0 16px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }

.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding-top: 56px; padding-bottom: 96px; }
.contact__info h2 { font-size: 1.5rem; }
.contact__info dl { margin: 24px 0 0; display: grid; gap: 22px; }
.contact__info dt { font-weight: 600; color: var(--navy); }
.contact__info dd { margin: 4px 0 0; color: var(--slate); }
.form { display: grid; gap: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.form label { display: grid; gap: 7px; font-weight: 600; font-size: .95rem; color: var(--navy); }
.form label span { font-weight: 400; color: var(--slate); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1px solid #C5CCDB; border-radius: 9px; background: var(--white); width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(39,71,199,.3); border-color: var(--cobalt); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__note { font-size: .88rem; color: var(--slate); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy-deep); color: var(--white); padding: 14px 20px; border-radius: 10px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; }
  .stack .cover { width: clamp(84px, 19vw, 160px); }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .guide { grid-template-columns: 160px 1fr; gap: 28px; }
  .guide__buy { grid-column: 2; text-align: left; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
  .guide__buy .btn { margin-top: 0; }
  .guide__buy small { margin: 0; flex-basis: 100%; }
  .pricing, .fit, .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 18px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; }
  .nav .btn { margin-top: 8px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 36px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .guide { grid-template-columns: 1fr; gap: 22px; padding: 36px 0; }
  .guide .cover { width: 150px; }
  .guide__buy { grid-column: 1; }
  .guide__list { grid-template-columns: 1fr; }
  .plan, .form, .fit > div { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .prose { padding: 40px 18px 72px; }
  .closing { padding: 60px 0; }
}
@media (max-width: 460px) {
  .facts ul { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack .cover { animation: none; }
  * { transition: none !important; }
}
