/* tvojaprica.ba · stilovi
   Paleta: noć (evergreen), svjetlo lampe, laneni papir, mastilo, zlato */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.woff") format("woff"); font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/CrimsonPro-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/CrimsonPro-Italic.woff") format("woff"); font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --night: #15201c;
  --night-2: #1c2a25;
  --lamp: #f0c987;
  --linen: #eeeae2;
  --paper: #fbf8f1;
  --ink: #1e2925;
  --ink-soft: #4b5652;
  --muted: #7d817a;
  --gold: #c9a46a;
  --gold-deep: #9e7a43;
  --sage: #7a8f73;
  --rose: #f4e1dd;
  --wine: #5b2a36;
  --lila: #ece4ef;
  --plum: #4a3552;
  --walnut: #3a2a22;
  --forest: #1f3430;
  --line: rgba(30, 41, 37, .14);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --text: "Crimson Pro", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1.08rem, 1.02rem + .25vw, 1.22rem);
  --step-1: clamp(1.3rem, 1.2rem + .5vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.4vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.8rem + 2.8vw, 4.2rem);
  --step-4: clamp(3rem, 2rem + 5vw, 6.4rem);

  --wrap: min(1240px, 100% - 2.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
@media (min-width: 1600px) { html { font-size: 112.5%; } :root { --wrap: min(1400px, 100% - 5rem); } }
@media (min-width: 2200px) { html { font-size: 125%; } }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 46ch; }
.kicker { font-family: var(--serif); font-style: italic; font-size: var(--step-1); color: var(--gold-deep); margin-bottom: .6rem; }

/* ------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .95rem; letter-spacing: .01em;
  padding: .9rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.gold { --bg: var(--lamp); --fg: var(--night); }
.btn.ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn.small { padding: .6rem 1rem; font-size: .85rem; }

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--paper);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.site-header.solid { background: rgba(238, 234, 226, .92); color: var(--ink); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { font-family: var(--serif); font-size: 1.6rem; text-decoration: none; display: flex; align-items: center; gap: .55rem; }
.logo img { width: 15px; }
.logo em { font-style: italic; }
.nav { display: flex; gap: 1.6rem; font-family: var(--sans); font-size: .92rem; align-items: center; }
.nav a { text-decoration: none; opacity: .86; }
.nav a:hover { opacity: 1; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font-family: var(--sans); font-size: .95rem; cursor: pointer; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .site-header.open .nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.25rem 1.8rem; background: var(--linen); color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background:
    radial-gradient(60% 55% at 70% 18%, rgba(240, 201, 135, .32), rgba(240, 201, 135, 0) 70%),
    radial-gradient(40% 40% at 72% 70%, rgba(240, 201, 135, .10), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #101916 0%, var(--night) 55%, #0f1714 100%);
  color: var(--paper);
  display: grid; align-items: center;
  padding: calc(72px + clamp(1.5rem, 5vh, 4rem)) 0 clamp(2.5rem, 7vh, 5rem);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 1.6rem + 4.2vw, 6.4rem); }
.hero h1 span { display: block; font-style: italic; color: var(--lamp); }
.hero .lede { color: rgba(251, 248, 241, .78); margin-top: 1.6rem; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }
.hero .note { font-family: var(--sans); font-size: .85rem; color: rgba(251,248,241,.55); margin-top: 1.4rem; }
.lamp-cord { display: none; }
@media (max-width: 980px) {
  .hero { min-height: auto; padding: calc(72px + 2rem) 0 3rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero h1 { font-size: clamp(2.6rem, 1.4rem + 5.5vw, 4.4rem); }
  .hero .lede { max-width: 52ch; }
}
@media (max-width: 520px) {
  .hero { padding: calc(72px + 1.25rem) 0 2.25rem; }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.2rem); }
  .hero .lede { font-size: 1.1rem; margin-top: 1.1rem; }
  .hero .actions { margin-top: 1.5rem; }
  .hero .actions .btn { flex: 1 1 0; justify-content: center; padding-inline: 1rem; white-space: nowrap; }
  .hero .note { margin-top: 1.1rem; }
}

/* ------------------------------------------------------------ 3D book (shared) */
.book3d {
  --w: 200px; --h: calc(var(--w) * 1.419); --d: calc(var(--w) * .085);
  --c: #1f3430;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
}
.book3d .face { position: absolute; backface-visibility: hidden; }
.book3d .cover {
  position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d;
  transform: translateZ(calc(var(--d) / 2)) rotateY(var(--open, 0deg));
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.book3d .cover .front, .book3d .cover .inside { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 2px 5px 5px 2px; overflow: hidden; }
.book3d .cover .front img, .book3d .cover .inside img, .book3d .back img, .book3d .first img { width: 100%; height: 100%; object-fit: cover; }
.book3d .cover .front::after { /* sjaj i hrbat-žlijeb */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.12) 2.2%, rgba(0,0,0,.08) 4%, rgba(255,255,255,0) 9%),
              linear-gradient(115deg, rgba(255,255,255,.10), rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.book3d .cover .inside { transform: rotateY(180deg); }
.book3d .first { position: absolute; inset: 1px 1px 1px 0; transform: translateZ(calc(var(--d) / 2 - 1px)); background: var(--paper); overflow: hidden; border-radius: 0 3px 3px 0; }
.book3d .back { position: absolute; inset: 0; transform: translateZ(calc(var(--d) / -2)) rotateY(180deg); border-radius: 5px 2px 2px 5px; overflow: hidden; background: var(--c); }
.book3d .spine {
  position: absolute; top: 0; height: 100%; width: var(--d); left: calc(var(--d) / -2);
  transform: rotateY(-90deg); background: var(--c);
  background-image: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.08) 40%, rgba(0,0,0,.2));
  display: flex; align-items: center; justify-content: center;
}
.book3d .spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--serif); font-size: calc(var(--w) * .06); color: var(--spine-ink, #e9d9b8); white-space: nowrap; letter-spacing: .04em; }
.book3d .edge-r, .book3d .edge-t, .book3d .edge-b {
  position: absolute; background:
    repeating-linear-gradient(90deg, #f3eee3 0 1px, #e3dccd 1px 2px);
}
.book3d .edge-r { top: 3px; height: calc(100% - 6px); width: calc(var(--d) - 2px); left: calc(var(--w) - var(--d) / 2 - 3px); transform: rotateY(90deg); }
.book3d .edge-t, .book3d .edge-b { left: 0; width: calc(100% - 3px); height: calc(var(--d) - 2px); background: repeating-linear-gradient(0deg, #f3eee3 0 1px, #e3dccd 1px 2px); }
.book3d .edge-t { top: calc(var(--d) / -2 + 3px); transform: rotateX(90deg); }
.book3d .edge-b { bottom: calc(var(--d) / -2 + 3px); transform: rotateX(-90deg); }
.book-shadow { position: absolute; left: 6%; right: -8%; bottom: -14px; height: 22px; background: radial-gradient(closest-side, rgba(0,0,0,.45), rgba(0,0,0,0)); filter: blur(4px); transform: translateZ(-40px); }

/* ------------------------------------------------------------ hero shelf */
/* Dvije police po dvije knjige. Širina knjige prati širinu police (cqi), a na desktopu
   i visinu prozora (svh), da obje police stanu u prvi ekran bez preklapanja s tekstom. */
.shelf { position: relative; perspective: 1600px; container-type: inline-size; min-width: 0; width: 100%; max-width: 720px; margin-inline: auto; display: grid; gap: 1.2rem; }
.shelf-row { padding-bottom: 2.4rem; }
.shelf-items { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-end; gap: 10cqi; transform-style: preserve-3d; }
.shelf-plank { position: relative; height: 14px; border-radius: 3px;
  background: linear-gradient(180deg, #5a4232, #3a2a20); box-shadow: 0 24px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); }
.shelf .item { display: block; position: relative; transform-style: preserve-3d; perspective: 1100px; cursor: pointer; text-decoration: none; color: inherit;
  opacity: 0; transform: translateY(30px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.shelf-row:nth-child(1) .item:nth-child(1) { animation-delay: .15s; } .shelf-row:nth-child(1) .item:nth-child(2) { animation-delay: .3s; }
.shelf-row:nth-child(2) .item:nth-child(1) { animation-delay: .45s; } .shelf-row:nth-child(2) .item:nth-child(2) { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.shelf .book3d { --w: max(120px, min(240px, calc(90cqi / 2.7), calc((100svh - 320px) / 2.95))); transform: rotateY(-24deg) rotateX(2deg); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.shelf .item:hover .book3d, .shelf .item:focus-visible .book3d { transform: translateY(-16px) translateZ(60px) rotateY(-6deg); --open: -38deg; }
.shelf .tag { position: absolute; left: 50%; top: calc(100% + 14px + .8rem); transform: translateX(-50%); white-space: nowrap; font-family: var(--sans); font-size: .82rem; color: rgba(251,248,241,.6); transition: color .3s; }
.shelf .item:hover .tag { color: var(--lamp); }
@media (max-width: 980px) {
  .shelf { max-width: 520px; gap: .8rem; }
  .shelf .book3d { --w: min(190px, calc(90cqi / 2.7)); }
}
@media (max-width: 520px) {
  .shelf-row { padding-bottom: 2rem; }
  .shelf .tag { font-size: .75rem; top: calc(100% + 14px + .6rem); }
}

/* ------------------------------------------------------------ look inside (scroll) */
.inside-section { position: relative; height: 620vh; background: var(--linen); }
.inside-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; align-items: center; width: var(--wrap); margin-inline: auto; gap: 2rem; }
.inside-copy { position: relative; min-height: 15rem; }
.inside-copy .step { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease; }
.inside-copy .step.on { opacity: 1; transform: none; transition: opacity .45s ease .2s, transform .45s ease .2s; }
.inside-copy h2 { font-size: var(--step-2); margin-bottom: .8rem; }
.inside-copy p { color: var(--ink-soft); }
.progress { display: flex; gap: .45rem; margin-top: 12rem; }
.progress i { width: 26px; height: 2px; background: var(--line); }
.progress i.on { background: var(--ink); }
.stage { position: relative; height: 100%; display: grid; place-items: center; perspective: 2200px; }
.bigbook { --w: min(29vw, 40vh); --h: calc(var(--w) * 1.419); --d: calc(var(--w) * .07); position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d;
  transform: translateX(var(--tx, 0px)) rotateX(var(--rx, 10deg)) rotateY(var(--ry, -30deg)); }
.bigbook .leaf, .bigbook .bcover { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; }
.bigbook .side { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; background: var(--paper); }
.bigbook .side img { width: 100%; height: 100%; object-fit: cover; }
.bigbook .side.b { transform: rotateY(180deg); }
.bigbook .bcover .side { border-radius: 2px 6px 6px 2px; }
.bigbook .bcover .side.b { border-radius: 6px 2px 2px 6px; }
.bigbook .leaf .side::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,0) 8%, rgba(0,0,0,0) 92%, rgba(0,0,0,.05)); }
.bigbook .leaf .side.b::after { background: linear-gradient(270deg, rgba(0,0,0,.12), rgba(0,0,0,0) 8%); }
.bigbook .base { position: absolute; inset: 0; background: var(--paper); overflow: hidden; transform: translateZ(0px); box-shadow: 0 40px 60px -20px rgba(30,41,37,.35); }
.bigbook .base img { width: 100%; height: 100%; object-fit: cover; }
.bigbook .block { position: absolute; inset: 2px 0 2px 0; transform: translateZ(calc(var(--d) * -1)); background: var(--c, #1f3430); border-radius: 4px; box-shadow: 0 50px 80px -30px rgba(30,41,37,.55); }
.bigbook .bspine { position: absolute; top: 0; height: 100%; width: var(--d); left: calc(var(--d) / -2); transform: translateZ(calc(var(--d) / -2)) rotateY(-90deg); background: #1f3430; background-image: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.08) 45%, rgba(0,0,0,.25)); }
.bigbook .bedge { position: absolute; top: 3px; height: calc(100% - 6px); width: var(--d); right: calc(var(--d) / -2); transform: translateZ(calc(var(--d) / -2)) rotateY(90deg); background: repeating-linear-gradient(90deg, #f3eee3 0 1px, #e0d8c8 1px 2px); }
@media (max-width: 860px) {
  .inside-section { height: 560vh; }
  .inside-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; padding-top: 92px; gap: .5rem; }
  .inside-copy { min-height: 9.5rem; }
  .inside-copy h2 { font-size: var(--step-2); }
  .inside-copy p { font-size: 1rem; }
  .progress { display: none; }
  .bigbook { --w: min(44vw, 34vh); }
  .stage { align-items: start; padding-top: 4vh; }
}

/* ------------------------------------------------------------ section basics */
section { position: relative; }
.pad { padding: clamp(5rem, 9vw, 9rem) 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3.4rem; }
.head p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ products */
.products { background: var(--paper); }
.edition { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--linen); font-family: var(--sans); font-size: .92rem; margin-bottom: 2.6rem; }
.edition button { border: 0; background: none; padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer; font: inherit; color: var(--ink-soft); }
.edition button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.edition-note { font-family: var(--sans); font-size: .88rem; color: var(--muted); margin: -1.8rem 0 2.6rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem 1.6rem; }
@media (max-width: 1040px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr 1fr; gap: 2rem .9rem; } .prod .pstage { height: 210px; } .prod .book3d { --w: 112px; } .prod h3 { font-size: 1.15rem; } .prod .for { font-size: .95rem; margin-bottom: .5rem; } .prod ul { font-size: .74rem; } .prod ul li:nth-child(n+3) { display: none; } .prod .buy { flex-direction: column; align-items: flex-start; gap: .5rem; } .prod .buy .btn { width: 100%; justify-content: center; } }
.prod { display: flex; flex-direction: column; }
.prod .pstage { height: clamp(250px, 24vw, 360px); display: grid; place-items: center; perspective: 1400px; border-radius: var(--radius); margin-bottom: 1.3rem; }
.prod .book3d { --w: clamp(130px, 12.5vw, 190px); transform: rotateY(-18deg) rotateX(4deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.prod:hover .book3d, .prod:focus-within .book3d { transform: rotateY(-4deg) rotateX(2deg) translateZ(30px); --open: -125deg; }
.prod h3 { margin-bottom: .3rem; }
.prod .for { font-style: italic; color: var(--ink-soft); margin-bottom: .8rem; }
.prod ul { list-style: none; padding: 0; margin: 0 0 1.2rem; font-family: var(--sans); font-size: .86rem; color: var(--ink-soft); }
.prod ul li { padding: .3rem 0; border-top: 1px solid var(--line); }
.prod .buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.price { font-family: var(--serif); font-size: 1.5rem; }
.price.soon { font-family: var(--sans); font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------------------ how */
.how { background: var(--linen); }
.how .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem 1fr; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: .9; color: var(--gold-deep); }
.steps h3 { margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--ink-soft); }
.photo { border-radius: 18px; overflow: hidden; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; font-family: var(--serif); font-style: italic; color: #fff; font-size: 1.15rem; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.how .photo { aspect-ratio: 4 / 5; margin: 0; }
@media (max-width: 860px) { .how .cols { grid-template-columns: 1fr; } .how .photo { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------ voice */
.voice { background: var(--night); color: var(--paper); overflow: hidden; }
.voice .cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.voice .lede { color: rgba(251,248,241,.75); }
.voice .kicker { color: var(--lamp); }
.voice .points { margin: 2rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.voice .points li { padding-left: 1.6rem; position: relative; color: rgba(251,248,241,.82); }
.voice .points li::before { content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--lamp); }
.phone-wrap { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { position: relative; width: 270px; aspect-ratio: 9 / 19; border-radius: 42px; background: #0c1210; padding: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 90px rgba(0,0,0,.5); z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 32px; background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; padding: 2.4rem 1.2rem 1.4rem; }
.screen .app-top { font-family: var(--sans); font-size: .72rem; color: var(--muted); }
.screen .app-book { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; margin: .3rem 0 1.2rem; }
.screen .q { font-family: var(--text); font-size: 1rem; line-height: 1.3; padding: .9rem; background: var(--linen); border-radius: 12px; }
.screen .q b { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-deep); font-size: 1.2rem; margin-right: .3rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 70px; margin: auto 0 1rem; justify-content: center; }
.wave i { width: 4px; border-radius: 3px; background: var(--wine); height: 12%; animation: wv 1.1s ease-in-out infinite; }
@keyframes wv { 50% { height: var(--h, 70%); } }
.rec { display: flex; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: .8rem; }
.rec .dot { width: 54px; height: 54px; border-radius: 50%; background: #c0392b; box-shadow: 0 0 0 6px rgba(192,57,43,.18); display: grid; place-items: center; }
.rec .dot::after { content: ""; width: 18px; height: 18px; border-radius: 4px; background: #fff; }
.qr-float { position: absolute; left: -10px; bottom: 30px; width: 170px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: .8rem; transform: rotate(-6deg); box-shadow: 0 30px 60px rgba(0,0,0,.4); z-index: 3; font-family: var(--sans); font-size: .74rem; }
.qr-float svg { width: 100%; height: auto; display: block; margin-bottom: .5rem; }
.vphoto { aspect-ratio: 16 / 10; margin: 2.4rem 0 0; max-width: 520px; }
.voice-art { position: absolute; right: -40px; top: 10px; width: 300px; opacity: .9; z-index: 1; }
@media (max-width: 900px) { .voice .cols { grid-template-columns: 1fr; } .vphoto { max-width: none; aspect-ratio: 16 / 9; } .voice-art { display: none; } .qr-float { left: 0; } .phone-wrap { min-height: 0; padding: 1rem 0 2rem; } }
@media (max-width: 420px) { .phone { width: 230px; } .qr-float { width: 128px; bottom: 10px; font-size: .66rem; } }

/* ------------------------------------------------------------ digital */
.digital { background: var(--paper); }
.digital .cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.tablet { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; background: #1b1d1c; padding: 16px; box-shadow: 0 50px 80px -30px rgba(30,41,37,.45); }
.tablet .t-screen { width: 100%; height: 100%; border-radius: 14px; background: #d9d6cf; display: flex; align-items: center; justify-content: center; gap: 0; overflow: hidden; padding: 4%; }
.tablet .t-screen img { height: 100%; width: auto; box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.tablet .t-screen img + img { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.ticks li { padding: .75rem 0 .75rem 2rem; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: 1.25rem; width: .9rem; height: .45rem; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
@media (max-width: 900px) { .digital .cols { grid-template-columns: 1fr; } .tablet { max-width: 620px; border-radius: 20px; padding: 10px; } }

/* ------------------------------------------------------------ pages strip */
.pages { background: var(--linen); overflow: hidden; }
.strip { display: flex; gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(50% - 50vw); padding: .5rem max(1.25rem, calc(50vw - 590px)) 2rem; scroll-padding-inline: max(1.25rem, calc(50vw - 590px)); scrollbar-width: thin; }
.strip figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 320px); scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 148 / 210; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 20px 40px -18px rgba(30,41,37,.35); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.strip figure:hover img { transform: translateY(-6px) rotate(-.6deg); }
.strip figcaption { font-family: var(--sans); font-size: .86rem; color: var(--ink-soft); margin-top: .9rem; }
.strip figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); margin-bottom: .15rem; }

/* ------------------------------------------------------------ quote band */
.band { background: var(--forest); color: var(--paper); text-align: center; }
.band blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.12; }
.band cite { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-size: .9rem; color: rgba(251,248,241,.6); }
.band img { width: min(320px, 70%); height: auto; margin: 3rem auto 0; opacity: .9; }

/* ------------------------------------------------------------ faq */
.faq { background: var(--paper); }
.faq .cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
details { border-top: 1px solid var(--line); padding: 1.2rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: var(--step-1); display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; line-height: 1; color: var(--gold-deep); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); margin: .8rem 0 0; }
.faq .photo { aspect-ratio: 4 / 3; margin: 2rem 0 0; max-width: 460px; }
@media (max-width: 860px) { .faq .cols { grid-template-columns: 1fr; } .faq .photo { max-width: 420px; } }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--night); color: rgba(251,248,241,.7); padding: 4rem 0 2.4rem; font-family: var(--sans); font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .logo { color: var(--paper); margin-bottom: .8rem; }
.site-footer a { text-decoration: none; display: block; padding: .25rem 0; }
.site-footer a:hover { color: var(--lamp); }
.site-footer .legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(251,248,241,.45); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ order dialog */
dialog.order { border: 0; border-radius: 20px; padding: 0; width: min(520px, 100% - 2rem); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.35); }
dialog.order::backdrop { background: rgba(15, 23, 20, .6); backdrop-filter: blur(3px); }
.order .in { padding: 2rem; display: grid; grid-template-columns: 96px 1fr; gap: 1.4rem; }
.order .in img { width: 96px; border-radius: 3px; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.order h3 { font-size: 1.7rem; }
.order .meta { font-family: var(--sans); font-size: .88rem; color: var(--ink-soft); margin: .4rem 0 1rem; }
.order label { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); margin-bottom: .35rem; }
.order input { width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.order .row { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.order .fine { grid-column: 1 / -1; font-family: var(--sans); font-size: .78rem; color: var(--muted); margin: 0; }
.order .x { position: absolute; top: .8rem; right: 1rem; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .shelf .item { opacity: 1; transform: none; }
}
