/* Studyleaf website. One calm blue accent on off-white. */
:root {
  --bg: #faf8f3;
  --card: #ffffff;
  --ink: #23272e;
  --muted: #5d6470;
  --line: #e6e1d6;
  --blue: #2f5d8a;
  --blue-soft: #e9eff6;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }

a { color: var(--blue); }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
}
.wordmark svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.nav { display: flex; gap: 24px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.97rem; padding: 6px 0; }
.nav a:hover { color: var(--blue); }

/* Sections */
section { padding: 88px 0; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 40px; }

/* Hero */
.hero { padding: 112px 0 96px; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); letter-spacing: -0.01em; }
.hero p {
  max-width: 34rem; margin: 22px auto 0;
  color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}
.badge {
  display: inline-block; margin-top: 36px; padding: 12px 22px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 0.97rem; font-weight: 500; letter-spacing: 0.01em;
  cursor: default; user-select: none;
}

/* Features */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 26px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Privacy strip */
.strip { background: var(--blue-soft); padding: 56px 0; text-align: center; }
.strip p {
  margin: 0 auto; max-width: 40rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--ink);
}

/* Pricing */
.free {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 28px; margin-bottom: 20px;
}
.free h3 { font-size: 1.4rem; margin-bottom: 8px; }
.free p { margin: 0; color: var(--muted); }
.prices { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.price {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 26px;
}
.price .name { color: var(--muted); font-size: 0.95rem; margin: 0 0 6px; }
.price .amount { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; margin: 0; color: var(--ink); }
.price .amount span { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; color: var(--muted); }

/* Contact */
.contact { text-align: center; padding: 72px 0; }
.contact p { margin: 0; font-size: 1.1rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Privacy page */
.policy { padding: 72px 0 96px; }
.policy .wrap { max-width: 720px; }
.policy h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.policy .effective { color: var(--muted); margin: 10px 0 40px; }
.policy h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.policy ul { margin: 0; padding-left: 1.2em; }
.policy li { margin-bottom: 8px; }

/* Phones and small tablets */
@media (max-width: 900px) {
  .grid, .prices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .grid, .prices { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 20px; justify-content: center; }
  .site-footer .wrap { justify-content: center; text-align: center; }
}

/* App icon */
.wordmark img { width: 30px; height: 30px; border-radius: 7px; flex: none; }
.hero-icon { display: block; width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 6px 20px rgba(47, 93, 138, 0.18); }
@media (max-width: 600px) { .hero-icon { width: 80px; height: 80px; border-radius: 18px; } }
