/* ============================================================
   7daily landing page — paper-feel front door for the brand.
   The aesthetic mirrors the app: cream paper, red margin line,
   ruled rhythm, Caveat handwriting for headings.
   ============================================================ */

@font-face {
  font-family: "Caveat";
  src: url("assets/caveat.ttf") format("truetype");
  font-display: swap;
  font-weight: 400 700;
}

:root {
  --paper:        #F4EFE4;
  --paper-shadow: #E6DFCE;
  --ink:          #2A2622;
  --ink-soft:     #6B6358;
  --ink-faded:    #908778;
  --margin-red:   #B85450;
  --rule:         #D9CBB0;
  --hero-bg:      #ADBA9F;  /* sage, a touch deeper — still calm, more presence */
  --hero-ink:     #1E2218;  /* near-black on sage so headings + lede stay strong, not airy */
  --hero-red:     #973A36;  /* the brand red, deepened for legibility on sage */
  --max:          1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

/* The red notebook margin runs full-height on the left edge — same trick
   PaperBackground.kt uses inside the app. Drawn with a pseudo-element so
   content layout doesn't have to care about it. */
body::before {
  content: "";
  position: fixed;
  top: 0; bottom: 0;
  left: 56px;
  width: 2px;
  background: var(--margin-red);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 720px) {
  body::before { left: 22px; }
}

/* Faint horizontal rule lines as a subtle texture behind content. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 35px,
    rgba(217, 203, 176, 0.5) 35px,
    rgba(217, 203, 176, 0.5) 36px
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 80ms ease, opacity 80ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { cursor: not-allowed; opacity: 0.55; }
.btn[disabled]:hover { transform: none; }

/* Official store badges. A live badge is rendered as `<a class="store-
   badge">` (full opacity, pointer cursor); a "coming soon" placeholder is
   `<span class="store-badge">` (dimmed, not-allowed cursor). The fixed
   bounding box keeps both visually the same size despite slightly
   different intrinsic aspect ratios. */
.store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
span.store-badge {
  opacity: 0.55;
  cursor: not-allowed;
}
a.store-badge {
  cursor: pointer;
}
a.store-badge:hover {
  opacity: 0.85;
}
.store-badge img {
  display: block;
  width: 180px;
  height: 60px;
  /* Both source images are now padded to the same aspect ratio (~2.99:1),
     so object-fit:contain produces visually identical bounding boxes. */
  object-fit: contain;
}

/* ---------- hero ------------------------------------------------- */
/* Wrapper carries the sage tint and sits above the body's red margin +
   ruled-line backdrops, so the hero reads as its own coloured page tile
   instead of inheriting them. */
.hero-wrap {
  position: relative;
  z-index: 2;
  background: var(--hero-bg);
  color: var(--hero-ink);
  padding: 0 0 64px;
  margin-bottom: 0;
}
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 40px 0 40px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .hero-wrap { padding: 0 0 64px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 22px 0 22px;
  }
}

.wordmark {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(72px, 12vw, 132px);
  line-height: 0.95;
  margin: 0;
  letter-spacing: -0.01em;
  transform: rotate(-1deg);
  position: relative;
}
.wordmark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 18%;
  bottom: 4px;
  height: 14px;
  background: var(--margin-red);
  opacity: 0.30;
  border-radius: 3px;
  z-index: -1;
}
.tagline {
  font-family: "Caveat", cursive;
  font-size: 38px;
  font-weight: 700;
  color: var(--hero-ink);
  margin: 12px 0 28px;
}
.lede {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--hero-ink);
  margin: 0 0 36px;
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 28px;
}

.price {
  font-family: "Caveat", cursive;
  font-size: 24px;
  font-weight: 700;
  color: var(--hero-ink);
  margin: 0;
}
.price strong {
  color: var(--hero-red);
  font-weight: 700;
}

/* Phone frame for the hero screenshot */
.hero-phone {
  display: flex;
  justify-content: center;
}
.phone-frame {
  background: #1A1A1A;
  border-radius: 32px;
  padding: 8px;
  box-shadow:
    0 24px 60px -20px rgba(42, 38, 34, 0.35),
    0 8px 24px -12px rgba(42, 38, 34, 0.25);
  max-width: 240px;
  width: 100%;
}
.phone-frame img { border-radius: 24px; }
.phone-frame img {
  border-radius: 28px;
  display: block;
  width: 100%;
}

/* ---------- features --------------------------------------------- */
.features {
  max-width: var(--max);
  margin: 0 auto 100px;
  padding: 40px 32px 0 84px;
}
@media (max-width: 720px) {
  .features { padding: 28px 18px 0 42px; }
}

.features h2 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 56px;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
  transform: rotate(-0.6deg);
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 760px) {
  .features-list { grid-template-columns: 1fr 1fr; column-gap: 56px; }
}

.features-list > li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.features-list .num {
  font-family: "Caveat", cursive;
  font-size: 72px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--margin-red);
  transform: rotate(-2deg);
}
.features-list h3 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.features-list p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- faq -------------------------------------------------- */
.faq {
  max-width: var(--max);
  margin: 0 auto 100px;
  padding: 40px 32px 0 84px;
}
@media (max-width: 720px) {
  .faq { padding: 28px 18px 0 42px; }
}

.faq h2 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 56px;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
  transform: rotate(-0.6deg);
}

.faq-list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 760px;
}

.faq-item dt {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink);
}
.faq-item dd {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 42em;
}
.faq-item dd em {
  font-style: italic;
  color: var(--ink);
}

/* ---------- legal pages (privacy, terms) ------------------------- */
/* Long-form text needs different rules than the marketing page:
   we keep the paper backdrop + red margin, but headings move to the
   body sans-serif (Caveat at H2 size is hard to skim through 13
   sections) and the column is narrowed for readability. */
.legal {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 56px 32px 0 84px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
@media (max-width: 720px) {
  .legal { padding: 36px 18px 0 42px; }
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 38, 34, 0.3);
}
.legal-back:hover {
  color: var(--margin-red);
  border-color: var(--margin-red);
}

.legal h1 {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(56px, 10vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  transform: rotate(-1deg);
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--ink);
}
.legal-updated {
  color: var(--ink-faded);
  font-size: 14px;
  margin: 0 0 32px;
}
.legal p { margin: 0 0 16px; }
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 38, 34, 0.4);
}
.legal a:hover {
  color: var(--margin-red);
  border-color: var(--margin-red);
}
.legal strong {
  font-weight: 700;
  color: var(--ink);
}
.legal code {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.92em;
  background: rgba(42, 38, 34, 0.06);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---------- footer ----------------------------------------------- */
footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 32px 60px 84px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink);
}
@media (max-width: 720px) {
  footer { padding: 30px 18px 50px 42px; }
}

footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 38, 34, 0.5);
}
footer a:hover { color: var(--margin-red); border-color: var(--margin-red); }

.dot { color: var(--ink-soft); }

.contact, .legal-links, .copyright {
  margin: 0;
}
.copyright {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 14px;
}
@media (max-width: 720px) {
  .copyright { margin-left: 0; }
}
