/* Paperful AI - shared styles. Editorial serif wordmark, no JavaScript. */

:root {
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --soft: #f7f7f5;
  --bg: #ffffff;
  --accent: #9a3412;
  --link: #1a4d8f;
  --serif: "NYT Cheltenham", "Cheltenham", Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-text: 760px;
  --max-wide: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.container { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.wrap { max-width: var(--max-text); margin: 0 auto; padding: 48px 24px 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; border: 1px solid var(--line); z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.site-header__inner { max-width: var(--max-wide); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; display: block; }
.site-nav { display: flex; gap: 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--muted); font-size: 15px; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.lang-switch { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch .is-active { color: var(--ink); font-weight: 600; }
.lang-switch span.sep { color: var(--line); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 18px; font-size: 15px; font-weight: 600; border: 1px solid var(--ink); }
.btn:hover { text-decoration: none; opacity: 0.9; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; flex-direction: column; justify-content: center; min-width: 196px; padding: 10px 18px; border-radius: 10px; background: var(--ink); color: #fff; border: 1px solid var(--ink); line-height: 1.2; }
.store-btn:hover { text-decoration: none; opacity: 0.92; }
.store-btn small { font-size: 11px; font-weight: 400; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.06em; }
.store-btn strong { font-size: 17px; font-weight: 600; }
.store-btn--soon { background: #fff; color: var(--muted); border: 1px dashed #c9c9c9; cursor: default; }
.store-btn--soon strong { color: var(--ink); }
.store-btn--soon:hover { opacity: 1; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 48px; text-align: center; }
.hero__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0,0,0,0.14); margin-bottom: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 16px; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; margin: 0 auto 20px; max-width: 880px; }
.hero__lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 700px; margin: 0 auto 30px; }
.hero__cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero__trust { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 60px 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 38px; }
.section h2 { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; }
.section__head p { color: var(--muted); font-size: 18px; margin: 0; }

/* ---------- CSS-only image carousel ---------- */
.carousel { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0b0c; border: 1px solid var(--line); box-shadow: 0 22px 55px rgba(0,0,0,0.2); }
.carousel__slide { position: absolute; inset: 0; margin: 0; opacity: 0; animation: paperful-slide 30s infinite; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; color: #fff; font-size: 14px; background: linear-gradient(to top, rgba(0,0,0,0.78), transparent); }
.carousel__slide:nth-child(1) { animation-delay: 0s; }
.carousel__slide:nth-child(2) { animation-delay: 6s; }
.carousel__slide:nth-child(3) { animation-delay: 12s; }
.carousel__slide:nth-child(4) { animation-delay: 18s; }
.carousel__slide:nth-child(5) { animation-delay: 24s; }
@keyframes paperful-slide {
  0% { opacity: 0; transform: translateX(2.5%); }
  4% { opacity: 1; transform: translateX(0); }
  18% { opacity: 1; transform: translateX(0); }
  22% { opacity: 0; transform: translateX(-2.5%); }
  100% { opacity: 0; transform: translateX(2.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: auto; }
  .carousel__slide { position: relative; flex: 0 0 82%; opacity: 1; animation: none; scroll-snap-align: center; margin-right: 10px; }
  .carousel__slide img { height: auto; }
}

/* ---------- Source-aware gallery ---------- */
.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px rgba(0,0,0,0.06); }
.gallery img { display: block; width: 100%; height: auto; background: #0b0b0c; }
.gallery figcaption { padding: 15px 18px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; border-top: 3px solid var(--ink); }
.card__index { font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; display: block; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.step { position: relative; padding: 24px 24px 24px 66px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 22px; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Video ---------- */
.video-frame { max-width: 960px; margin: 0 auto; }
.video-placeholder { aspect-ratio: 16 / 9; border: 1px dashed #c9c9c9; border-radius: 16px; background: var(--soft); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); }
.video-placeholder strong { color: var(--ink); font-family: var(--serif); font-size: 22px; display: block; margin-bottom: 8px; }
video, iframe.video-embed { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); background: #000; display: block; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.placeholder { background: #fef3c7; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.notice { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 20px 0; font-size: 15px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 8px 0 24px; }
.contact-card a { font-weight: 600; }

/* ---------- Long-form text pages ---------- */
.lede { font-size: 21px; line-height: 1.45; color: var(--muted); margin: 0 0 28px; font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.wrap h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 12px; }
.wrap h2 { font-family: var(--serif); font-size: 25px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 80px; }
.wrap h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.wrap p { margin: 0 0 16px; }
.wrap ul { margin: 0 0 16px; padding-left: 22px; }
.wrap li { margin: 6px 0; }
.callout { background: var(--soft); border-radius: 14px; padding: 24px 26px; margin: 0 0 8px; }
.callout h2 { margin-top: 0; font-size: 21px; }
.callout ul { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
.no { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; background: var(--soft); }
.site-footer__inner { max-width: var(--max-wide); margin: 0 auto; padding: 36px 24px 48px; color: var(--muted); font-size: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 16px; }
.site-footer__links a { color: var(--ink); font-weight: 500; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 14px; }
  .lang-switch { margin-left: auto; }
  .hero { padding-top: 48px; }
  .gallery { grid-template-columns: 1fr; }
  th, td { padding: 10px 8px; }
  table { font-size: 14px; }
}
@media print {
  .site-header, .site-footer { display: none; }
  a { color: var(--ink); }
}
