/* StudyJournal — Warm Paper. One stylesheet for landing + privacy. */

:root {
  --paper: #f7f3ec;
  --paper-deep: #ece3d3;
  --page: #fdfbf7;
  --ink: #3d362e;
  --ink-soft: #6b6153;
  --rose: #ba685e;          /* the ruled margin */
  --rose-deep: #9a4f46;
  --sage: #86965b;          /* the starred annotation */
  --sage-deep: #6b7a48;
  --slate: #6c7a79;
  --sand: #c4a87c;
  --sand-deep: #96794c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 76% -12%, rgba(196,168,124,.20), transparent 62%),
    radial-gradient(880px 480px at 2% 26%, rgba(134,150,91,.10), transparent 58%),
    var(--paper);
  font-size: 18px;
  line-height: 1.65;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 28px; }

a { color: var(--rose-deep); }

/* ---------------- header ---------------- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid rgba(107,97,83,.16);
  background: rgba(247,243,236,.88);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 2px 6px rgba(61,54,46,.20); }
.brand b { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: .2px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav .link { text-decoration: none; color: var(--ink-soft); font-size: 16px; letter-spacing: .3px; }
.nav .link:hover { color: var(--rose-deep); }
.btn-primary {
  text-decoration: none;
  background: var(--ink); color: var(--paper);
  padding: 9px 20px; border-radius: 999px;
  font-size: 15px; letter-spacing: .4px;
  box-shadow: 0 2px 8px rgba(61,54,46,.28);
}
.btn-primary:hover { background: #2c261f; }

/* ---------------- hero ---------------- */
.hero { padding: 80px 0 58px; }
.hero .wrap { display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--sand-deep);
  border: 1px solid rgba(196,168,124,.55);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 500; font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.13; letter-spacing: .2px;
}
.hero h1 em { color: var(--rose-deep); font-style: italic; }
.hero .lede { margin-top: 22px; font-size: 20px; color: var(--ink-soft); max-width: 34em; }
.cta-row { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* not on the App Store yet — a stated fact, not a dead button */
.badge-soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 13px 24px; border-radius: 999px;
  font-size: 16px; letter-spacing: .4px;
  box-shadow: 0 3px 10px rgba(61,54,46,.28);
}
.badge-soon svg { width: 20px; height: 20px; }
.btn-ghost {
  text-decoration: none; color: var(--ink-soft);
  font-size: 16px; letter-spacing: .3px;
  border-bottom: 1px solid rgba(107,97,83,.4);
  padding-bottom: 2px;
}
.btn-ghost:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.meta { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); }
.meta b { color: var(--ink); }

/* the page illustration — the app icon, told at a larger size */
.page-stage { display: flex; justify-content: center; }
.journal { position: relative; width: 300px; height: 392px; }
.journal .sheet {
  position: absolute; inset: 0;
  background: var(--page);
  border: 1px solid rgba(107,97,83,.16);
  border-radius: 14px;
  box-shadow: 0 22px 46px rgba(61,54,46,.20);
}
.journal .sheet.back {
  transform: rotate(4deg) translate(16px, -12px);
  background: #f4ede2;
  box-shadow: 0 14px 30px rgba(61,54,46,.14);
}
.journal .sheet.front { transform: rotate(-2deg); }
.journal .rule {
  position: absolute; left: 74px; top: 40px; bottom: 40px;
  width: 3px; background: var(--rose); border-radius: 2px;
}
.journal .star {
  position: absolute; left: 32px; top: 74px;
  font-size: 26px; color: var(--sage); line-height: 1;
}
.journal .lines { position: absolute; left: 100px; right: 40px; top: 78px; }
.journal .lines i {
  display: block; height: 11px; border-radius: 6px;
  background: var(--slate); opacity: .82; margin-bottom: 26px;
}
.journal .lines i:nth-child(3) { width: 82%; }
.journal .lines i:nth-child(4) { width: 55%; }
.journal .lines i.ink { background: var(--sage); opacity: .55; width: 68%; }
.journal .tab {
  position: absolute; right: -9px; top: 56px;
  width: 18px; height: 84px; border-radius: 4px;
  background: linear-gradient(180deg, #d3ba92, var(--sand) 55%, var(--sand-deep));
  box-shadow: 0 3px 8px rgba(61,54,46,.28);
}

/* ---------------- spec strip ---------------- */
.specs { border-block: 1px solid rgba(107,97,83,.16); padding: 16px 0; background: rgba(236,227,211,.55); }
.specs .wrap { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 15px; color: var(--ink-soft); letter-spacing: .3px; }
.specs b { color: var(--ink); }
.specs .sd { width: 1px; background: rgba(107,97,83,.25); }

/* ---------------- sections ---------------- */
.block { padding: 78px 0; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(29px, 3.9vw, 41px); letter-spacing: .2px;
  margin-top: 14px;
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: rgba(253,251,247,.72);
  border: 1px solid rgba(107,97,83,.15);
  border-radius: 14px; padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(61,54,46,.05);
}
.feature.span-2 { grid-column: span 2; }
.feature h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin-bottom: 8px; letter-spacing: .1px; }
.feature p { font-size: 16.5px; color: var(--ink-soft); }
.feature .glyph { font-size: 24px; color: var(--sage-deep); margin-bottom: 12px; display: block; line-height: 1; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: stretch; max-width: 760px; margin: 0 auto; }
.plan {
  border: 1px solid rgba(107,97,83,.2); border-radius: 16px;
  padding: 30px 28px; background: rgba(253,251,247,.72);
  display: flex; flex-direction: column;
}
.plan.deep { border-color: rgba(134,150,91,.5); background: rgba(134,150,91,.07); }
.plan h3 { font-family: var(--display); font-weight: 600; font-size: 23px; letter-spacing: .2px; }
.plan .price { margin: 12px 0 4px; font-size: 19px; }
.plan .price b { font-size: 26px; font-family: var(--display); }
.plan ul { list-style: none; margin-top: 12px; }
.plan li { padding: 6px 0; font-size: 16px; color: var(--ink-soft); }
.plan li::before { content: "· "; color: var(--sage-deep); }
.plan .note { margin-top: auto; padding-top: 16px; font-size: 13.5px; font-style: italic; color: var(--ink-soft); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(107,97,83,.2); padding: 18px 4px; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: .1px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .qi::after { content: "+"; color: var(--sand-deep); font-size: 24px; }
.faq details[open] summary .qi::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); font-size: 17px; }

/* cta band */
.cta-band {
  text-align: center;
  border: 1px solid rgba(196,168,124,.45);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(196,168,124,.18), transparent 70%),
    rgba(253,251,247,.62);
  border-radius: 20px; padding: 58px 40px;
}
.cta-band .cta-icon { border-radius: 19px; box-shadow: 0 6px 18px rgba(61,54,46,.24); }
.cta-band h2 { font-family: var(--display); font-weight: 500; font-size: clamp(27px, 3.5vw, 38px); margin: 22px 0 10px; }
.cta-band p { color: var(--ink-soft); max-width: 34em; margin: 0 auto 26px; }
.cta-band .cta-row { justify-content: center; }

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid rgba(107,97,83,.2); padding: 48px 0 30px; background: rgba(236,227,211,.5); }
.site-footer .wrap:first-child { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer .about p { margin-top: 12px; font-size: 15.5px; color: var(--ink-soft); max-width: 26em; }
.site-footer h4 { font-family: var(--display); font-size: 17px; letter-spacing: .6px; margin-bottom: 12px; }
.site-footer .fl { display: block; text-decoration: none; color: var(--ink-soft); font-size: 15.5px; padding: 4px 0; }
.site-footer .fl:hover { color: var(--rose-deep); }
.legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(107,97,83,.15); display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); flex-wrap: wrap; gap: 8px; }

/* ---------------- legal page ---------------- */
.legal-page { padding: 58px 0 88px; }
.legal-page .wrap { max-width: 780px; }
.legal-page .back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; margin-bottom: 28px; color: var(--ink-soft); }
.legal-page .back:hover { color: var(--rose-deep); }
.legal-page h1 { font-family: var(--display); font-weight: 500; font-size: 42px; }
.legal-page .updated { color: var(--ink-soft); font-style: italic; margin: 8px 0 26px; }
.legal-page .summary {
  border-left: 3px solid var(--sage);
  background: rgba(134,150,91,.10);
  padding: 18px 22px; border-radius: 0 10px 10px 0;
  margin-bottom: 34px; font-size: 17px;
}
.legal-page h2 { font-family: var(--display); font-weight: 600; font-size: 26px; margin: 36px 0 12px; letter-spacing: .1px; }
.legal-page p { margin-bottom: 14px; color: #453d33; }
.legal-page ul { margin: 0 0 16px 22px; color: #453d33; }
.legal-page li { margin-bottom: 8px; }
.legal-page a.inline { color: var(--rose-deep); }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .cta-row, .meta { justify-content: center; }
  .page-stage { order: -1; }
  .journal { width: 246px; height: 322px; }
  .features, .plans { grid-template-columns: 1fr; }
  .feature.span-2 { grid-column: auto; }
  .site-footer .wrap:first-child { grid-template-columns: 1fr; }
  .nav .link { display: none; }
}
