/* Orjin marketing page — same tokens as the app (app/web/src/app/globals.css) */
:root { --paper: #F7F6F2; --panel: #EFEDE7; --card: #FFFFFF; --ink: #0F0F10; --ink2: #4B4A47; --ink3: #8A8884; --line: #DDD9D0; --signal: #E8431F;
  --dark: #0F0F10; --dark2: #1C1C1E; --darkline: #3A3A3D; --on1: #D3D1CB; --on2: #A9A7A2; --on3: #9A9893; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(247,246,242,0.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color 160ms; }
.top-in { height: 68px; display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: 4px; }
.dot { width: 7px; height: 7px; border-radius: 4px; background: var(--signal); }
.top-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink2); }
.top-nav a:hover { color: var(--ink); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background 120ms, transform 120ms, border-color 120ms; }
.pill:active { transform: scale(0.98); }
.pill:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pill-ink { background: var(--ink); color: #fff; } .pill-ink:hover { background: #26262A; }
.pill-line { border: 1.5px solid var(--ink); } .pill-line:hover { background: #fff; }
.pill-white { background: #fff; color: var(--ink); } .pill-white:hover { background: #ECEAE4; }
.pill-lg { height: 46px; padding: 0 22px; font-size: 14px; }
.pill-xl { height: 52px; padding: 0 24px; font-size: 15px; }
.play { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }

.eyebrow { font-size: 12px; font-weight: 500; color: var(--ink3); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.on-dark, .meta.on-dark { color: var(--on3); }
.live { width: 7px; height: 7px; border-radius: 4px; background: var(--signal); box-shadow: 0 0 0 0 rgba(232,67,31,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(232,67,31,0); } 100% { box-shadow: 0 0 0 0 rgba(232,67,31,0); } }
.h2 { font-weight: 600; font-size: 34px; line-height: 40px; letter-spacing: -0.8px; margin-top: 10px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-weight: 600; font-size: 54px; line-height: 60px; letter-spacing: -1.6px; margin-top: 18px; }
.hero h1 .soft { color: var(--ink3); }
.lede { font-size: 18px; line-height: 29px; color: var(--ink2); margin-top: 22px; max-width: 560px; }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.fine { font-size: 13px; font-weight: 500; color: var(--ink3); margin-top: 16px; }
.hero-stack { position: relative; height: 440px; }
.hero-stack .cover { position: absolute; width: 230px; box-shadow: 0 24px 50px rgba(17,17,17,0.20); transition: transform 300ms ease; }
.hero-stack .cover:nth-child(1) { left: 0; top: 70px; transform: rotate(-7deg); }
.hero-stack .cover:nth-child(2) { left: 120px; top: 10px; transform: rotate(2deg); z-index: 2; }
.hero-stack .cover:nth-child(3) { left: 230px; top: 110px; transform: rotate(9deg); }
.hero-stack:hover .cover:nth-child(1) { transform: rotate(-10deg) translate(-12px, 4px); }
.hero-stack:hover .cover:nth-child(3) { transform: rotate(12deg) translate(12px, 4px); }

/* the book cover (same construction as the app's Cover) */
.cover { aspect-ratio: 3 / 4; border-radius: 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 10%; padding-left: calc(10% + 8px); }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--spine, rgba(255,255,255,0.22)); }
.cover::after { content: ""; position: absolute; width: 80%; aspect-ratio: 1; right: -25%; top: -25%; border-radius: 50%; border: 12px solid currentColor; opacity: 0.12; }
.cover-eye { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.75; position: relative; z-index: 1; }
.cover-text { font-weight: 700; font-size: 30px; line-height: 33px; letter-spacing: -0.5px; position: relative; z-index: 1; }

.today { padding: 8px 0 24px; }
.today-card { background: var(--dark); color: #fff; border-radius: 24px; padding: 32px 34px; }
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.today-head h2 { font-weight: 600; font-size: 30px; line-height: 36px; letter-spacing: -0.7px; margin-top: 8px; }
.meta { font-size: 13px; font-weight: 500; }
.spectrum { display: flex; gap: 3px; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 22px; }
.spectrum span { height: 6px; }
.queue { list-style: none; margin: 18px 0 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.queue li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #2A2A2C; }
.q-n { font-size: 12px; font-weight: 600; color: var(--on3); text-align: center; }
.q-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 500; }
.q-t i { width: 7px; height: 7px; border-radius: 4px; flex-shrink: 0; }
.q-t span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-m { font-size: 12px; font-weight: 500; color: var(--on3); }

.how { padding-top: 88px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.how-n { font-weight: 700; font-size: 13px; color: var(--signal); letter-spacing: 1px; }
.how-card h3 { font-weight: 600; font-size: 22px; letter-spacing: -0.3px; margin-top: 14px; }
.how-card p { font-size: 15px; line-height: 24px; color: var(--ink2); margin-top: 10px; }

.library { padding-top: 88px; }
.lib-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.more { font-size: 14px; font-weight: 600; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.lib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.lib-item .cover { box-shadow: 0 14px 30px rgba(17,17,17,0.15); transition: transform 160ms ease; }
.lib-item:hover .cover { transform: translateY(-3px); }
.lib-item h4 { font-size: 16px; line-height: 22px; font-weight: 600; margin-top: 14px; }
.lib-item p { font-size: 14px; line-height: 21px; color: var(--ink2); margin-top: 6px; }
.lib-item .meta { color: var(--ink3); margin-top: 8px; }

.honest { padding-top: 88px; }
.honest-card { display: flex; gap: 24px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; }
.honest-mark { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: 1px; flex-shrink: 0; }
.honest-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.honest-card p { font-size: 16px; line-height: 26px; color: var(--ink2); margin-top: 8px; max-width: 760px; }

.faq { padding-top: 88px; max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 18px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 500; color: var(--ink3); transition: transform 160ms; }
details[open] summary::after { transform: rotate(45deg); }
details p { font-size: 15px; line-height: 24px; color: var(--ink2); margin-top: 10px; }
details a { text-decoration: underline; text-underline-offset: 3px; }

.final { padding: 96px 28px 100px; text-align: center; }
.final h2 { font-weight: 600; font-size: 38px; line-height: 44px; letter-spacing: -1px; max-width: 640px; margin: 0 auto 26px; }

.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot-in { display: flex; justify-content: space-between; gap: 40px; padding-top: 40px; padding-bottom: 28px; flex-wrap: wrap; }
.foot-tag { font-size: 13px; color: var(--ink3); margin-top: 10px; }
.foot-cols { display: flex; gap: 48px; flex-wrap: wrap; font-size: 13px; }
.foot-cols div { display: flex; flex-direction: column; gap: 8px; color: var(--ink2); }
.foot-cols b { color: var(--ink); font-weight: 600; font-size: 13px; }
.foot-cols a:hover { color: var(--ink); }
.addr { max-width: 280px; }
.foot-bottom { font-size: 12px; color: var(--ink3); padding-top: 14px; padding-bottom: 28px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 20px; }
  .hero-stack { height: 330px; max-width: 440px; }
  .hero-stack .cover { width: 180px; }
  .hero-stack .cover:nth-child(2) { left: 100px; } .hero-stack .cover:nth-child(3) { left: 190px; }
  .queue { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .top-nav { display: none; }
  .top-in { justify-content: space-between; }
  .hero h1 { font-size: 36px; line-height: 42px; letter-spacing: -1px; }
  .lede { font-size: 16px; line-height: 26px; }
  .hero-stack { height: 270px; }
  .hero-stack .cover { width: 150px; } .hero-stack .cover:nth-child(2) { left: 80px; } .hero-stack .cover:nth-child(3) { left: 160px; }
  .cover-text { font-size: 22px; line-height: 25px; }
  .today-card { padding: 24px 20px; border-radius: 20px; }
  .today-head h2 { font-size: 24px; line-height: 29px; }
  .h2 { font-size: 27px; line-height: 33px; }
  .lib-head { flex-direction: column; align-items: flex-start; }
  .lib-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .lib-item:nth-child(3) { display: none; }
  .honest-card { flex-direction: column; }
  .final h2 { font-size: 29px; line-height: 35px; }
  .foot-cols { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* hero covers: smaller cover line so it fits the 3:4 book; no overlap with the next section on small screens */
.hero-stack .cover-text { font-size: 23px; line-height: 26px; overflow-wrap: anywhere; }
.hero-stack .cover-eye { font-size: 10px; }
@media (max-width: 960px) { .hero-stack .cover-text { font-size: 19px; line-height: 22px; } .hero { padding-bottom: 40px; } }
@media (max-width: 640px) {
  .hero-stack { height: 300px; margin: 10px auto 0; width: 330px; }
  .hero-stack .cover { width: 150px; }
  .hero-stack .cover-text { font-size: 16px; line-height: 19px; }
  .hero-stack .cover:nth-child(1) { left: 0; top: 60px; } .hero-stack .cover:nth-child(2) { left: 90px; top: 0; } .hero-stack .cover:nth-child(3) { left: 175px; top: 80px; }
  .today { padding-top: 24px; }
}

/* pricing section + legal pages (Pricing · Terms · Privacy · Refund · Contact) */
.pricing { padding-top: 88px; max-width: 820px; }
.legal-wrap { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.legal .eyebrow { margin-bottom: 8px; }
.legal h1 { font-weight: 600; font-size: 40px; line-height: 44px; letter-spacing: -1px; }
.legal .stand { font-size: 18px; line-height: 27px; color: var(--ink2); margin: 14px 0 26px; }
.legal h2 { font-weight: 600; font-size: 19px; line-height: 25px; margin: 30px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 26px; color: var(--ink); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; list-style: disc; }
.legal a, .plans-note a { text-decoration: underline; text-underline-offset: 2px; }
.mor { margin-top: 18px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 22px; color: var(--ink2); }
table.plans { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 22px 0 6px; }
table.plans td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.plans tr:last-child td { border-bottom: 0; }
table.plans td b { display: block; font-size: 16px; font-weight: 600; }
table.plans td span { display: block; font-size: 13px; color: var(--ink3); margin-top: 3px; }
table.plans td.price { text-align: right; white-space: nowrap; font-weight: 700; font-size: 20px; }
table.plans td.price small { font-weight: 500; font-size: 12px; color: var(--ink3); }
.plans-note { font-size: 13px; line-height: 21px; color: var(--ink3); margin-top: 10px; }
.paywith { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.paywith b { font-size: 10px; letter-spacing: 1.4px; color: var(--ink3); margin-right: 4px; font-weight: 600; }
.paywith span { height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: #1a1f71; }
.foot-mor { font-size: 12px; line-height: 19px; color: var(--ink3); padding-bottom: 14px; max-width: 900px; }
@media (max-width: 767px) { .legal h1 { font-size: 30px; line-height: 35px; } table.plans td.price { font-size: 17px; } }
