@font-face { font-family: "DM Serif Display"; src: url("/fonts/DMSerifDisplay-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/DMSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

/* Same tokens as the app (Resources/Styles/Colors.xaml) */
:root {
  --bg: #F6F3EE; --card: #FFFFFF; --text: #1A1714; --muted: #787060; --faint: #9E958A;
  --accent: #B5622B; --accent-soft: #F2E6DC; --line: #E8E3DC; --wood: #8B5E3C; --wood-edge: #6E4A2F;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 8px 24px rgba(60, 40, 20, .08);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F18; --card: #181824; --text: #F0EDE8; --muted: #A89E94; --faint: #6A6260;
    --accent: #D07840; --accent-soft: #2E1E10; --line: #2A2A3A; --wood: #5A3D27; --wood-edge: #3F2A1B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: "DM Serif Display", Georgia, serif; font-size: 1.5rem; }
.brand img { width: 36px; height: 36px; }
.lang { font-size: .95rem; color: var(--muted); text-decoration: none; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
.hero h1 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 12px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn small { display: block; font-size: .7rem; font-weight: 400; opacity: .75; line-height: 1.1; }
.btn span { line-height: 1.2; }
.btn[aria-disabled="true"] { background: transparent; color: var(--text); border: 1px solid var(--line); cursor: default; }
.soon { font-size: .9rem; color: var(--faint); margin: 14px 0 0; }

/* Shelf illustration (echoes the app's shelf view) */
.shelf { position: relative; padding: 0 12px; }
.row { display: flex; align-items: flex-end; gap: 3px; height: 190px; padding: 0 10px; }
.row + .plank + .row { margin-top: 26px; }
.spine {
  width: var(--w, 26px); height: var(--h, 150px); background: var(--c); border-radius: 3px 3px 1px 1px;
  position: relative; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .12), inset 2px 0 0 rgba(255, 255, 255, .12);
  transform-origin: bottom center;
}
.spine::before, .spine::after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--b, rgba(255, 255, 255, .35)); }
.spine::before { top: 12px; }
.spine::after { bottom: 14px; }
.spine.cover { width: 104px; height: 156px; border-radius: 4px; display: grid; place-items: center; padding: 10px; text-align: center; box-shadow: var(--shadow); }
.spine.cover::before, .spine.cover::after { display: none; }
.spine.cover b { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; color: #F6E7DA; font-size: .95rem; line-height: 1.15; }
.spine.lean { transform: rotate(-9deg) translateX(6px); }
.box { width: 96px; height: 142px; background: #2F4858; border-radius: 4px; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px; gap: 5px; box-shadow: var(--shadow); }
.box i { display: block; height: 4px; border-radius: 2px; background: rgba(230, 238, 242, .85); }
.box i.gap { background: transparent; border: 1px dashed rgba(230, 238, 242, .6); }
.box em { font-style: normal; font-size: .7rem; color: #E6EEF2; letter-spacing: .02em; margin-bottom: auto; }
.plank { height: 14px; background: var(--wood); border-radius: 3px; box-shadow: 0 6px 0 var(--wood-edge), 0 14px 22px rgba(60, 40, 20, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spine, :root:not([data-theme="light"]) .box { outline: 1px solid rgba(240, 237, 232, .12); outline-offset: -1px; } }

@media (prefers-reduced-motion: no-preference) {
  .row .spine, .row .box { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
  .row:nth-of-type(3) .spine, .row:nth-of-type(3) .box { animation-delay: calc(300ms + var(--i, 0) * 45ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* Features */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.15; margin: 0 0 32px; max-width: 22ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feat h3 { font-size: 1.05rem; font-weight: 500; margin: 12px 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: .98rem; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.feat .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy band */
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.band ul { margin: 0; padding: 0; list-style: none; }
.band li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.band li:first-child { padding-top: 0; }
.band p { color: var(--muted); margin: 0 0 16px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-block: 24px 56px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .band { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .row { height: 160px; gap: 2px; padding: 0 4px; overflow: hidden; }
  .shelf { padding: 0; }
  .spine.cover { width: 84px; height: 128px; }
  .box { width: 78px; height: 118px; }
  .hide-sm { display: none; }
  .section { padding: 48px 0; }
}
