/* BookBadger site: the app's cream and beige with teal and coral accents. */

@font-face {
  font-family: "Lily Script One";
  src: url("fonts/LilyScriptOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --cream: #fbf6ec;
  --beige: #efe3cc;
  --pale-beige: #f5eee1;
  --light-beige: #f7f0e1;
  --ink: #3b2f2a;
  --ink-soft: #7a6a5e;
  --ink-faint: #b3a595;
  --teal: #1f8a84;
  --teal-dark: #176b66;
  --coral: #e5735a;
  --good: #2fa866;
  --small: #e0a000;
  --shelf-wall: #2a2420;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: "Lily Script One", cursive; font-size: 26px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a.active { color: var(--teal); }
/* Into the web portal (bookbadger.app/app/). */
.nav a.nav-sign-in { color: var(--teal); font-weight: 600; }
.nav a.nav-account { display: flex; align-items: center; color: var(--ink-soft); }
.nav a.nav-account:hover { color: var(--teal); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--teal); color: white; text-decoration: none; font-weight: 600;
  box-shadow: 0 6px 18px rgba(31, 138, 132, 0.25);
}
.button:hover { background: var(--teal-dark); color: white; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--ink-faint); }
.button.secondary:hover { border-color: var(--teal); color: var(--teal); }
.badge-soon {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--pale-beige); color: var(--ink-soft); font-size: 14px; font-weight: 600;
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.08; margin: 18px 0 18px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 30px; max-width: 34em; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Phone illustration */
.phone {
  justify-self: center;
  width: 300px; aspect-ratio: 9 / 19; border-radius: 42px;
  background: #1d1916; padding: 12px;
  box-shadow: 0 30px 60px rgba(59, 47, 42, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: rotate(2deg);
}
.screen {
  height: 100%; border-radius: 32px; overflow: hidden;
  background: var(--cream); display: flex; flex-direction: column;
}
.screen-bar {
  height: 44px; display: flex; align-items: center; justify-content: center;
  font-family: "Lily Script One", cursive; font-size: 20px;
}
.shelf {
  position: relative; flex: 0 0 44%; background: var(--shelf-wall);
  display: flex; align-items: flex-end; gap: 5px; padding: 0 12px 10px;
  border-bottom: 8px solid #8a6a46;
}
.counts {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55); color: white; font-size: 9.5px;
  padding: 3px 9px; border-radius: 10px; white-space: nowrap;
}
.spine {
  flex: 1; border-radius: 3px 3px 1px 1px;
  outline: 2.5px solid var(--c); outline-offset: 1px;
  background: var(--b);
  display: flex; align-items: center; justify-content: center;
}
.spine i {
  writing-mode: vertical-rl; font-style: normal; color: rgba(255, 255, 255, 0.85);
  font-size: 8px; font-weight: 700; letter-spacing: 0.08em;
}
.spine.lit { outline-width: 4px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 40%, transparent); }
.tiles { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.tiles .head { font-size: 11px; font-weight: 700; display: flex; justify-content: space-between; }
.tiles .head span { color: var(--coral); }
.tile {
  background: var(--beige); border-radius: 8px; padding: 7px 9px 7px 10px;
  border-left: 4px solid var(--c); display: flex; justify-content: space-between; gap: 6px;
}
.tile.unknown { background: var(--light-beige); }
.tile b { display: block; font-size: 11px; }
.tile small { display: block; font-size: 9.5px; color: var(--ink-soft); }
.tile .price { text-align: right; }
.tile .price b { color: var(--c); }

/* "Sign up for updates" */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 13px 16px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--beige); border-radius: 999px; background: white; color: var(--ink);
}
.signup input[type="email"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent); }
.signup button {
  padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--teal); color: white; font: inherit; font-weight: 600;
  box-shadow: 0 6px 18px rgba(31, 138, 132, 0.25);
}
.signup button:hover { background: var(--teal-dark); }
.signup button:disabled { opacity: 0.6; cursor: default; }
.signup .trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.signup-message { flex-basis: 100%; margin: 0; min-height: 1.4em; font-size: 15px; }
.signup-message.ok { color: var(--teal); font-weight: 600; }
.signup-message.error { color: var(--coral); font-weight: 600; }
.signup-note { color: var(--ink-faint); font-size: 14px; margin: 4px 0 0; }
.signup.on-dark { justify-content: center; margin-top: 6px; width: 100%; }
.signup.on-dark input[type="email"] { border-color: transparent; }
.signup.on-dark button { background: white; color: var(--teal); box-shadow: none; }
.signup.on-dark .signup-message { text-align: center; }
.signup.on-dark .signup-message.ok, .signup.on-dark .signup-message.error { color: white; }
.cta-card a { color: white; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections */
section { padding: 64px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-title h2 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.01em; }
.section-title p { color: var(--ink-soft); margin: 0; font-size: 18px; }
.alt { background: var(--pale-beige); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--cream); border: 1px solid var(--beige); border-radius: var(--radius);
  padding: 26px;
}
.alt .feature { background: var(--cream); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal);
  font-size: 22px; margin-bottom: 14px;
}
.feature.coral .icon { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.feature .soon { font-size: 12px; font-weight: 700; color: var(--coral); text-transform: uppercase; letter-spacing: 0.06em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--teal); color: white; display: grid; place-items: center; font-weight: 700;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-soft); }

.cta { text-align: center; }
.cta-card {
  background: var(--teal); color: white; border-radius: 24px; padding: 48px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.cta-card img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); }
.cta-card h2 { margin: 6px 0 0; font-size: 32px; }
.cta-card p { margin: 0; opacity: 0.9; max-width: 32em; }
.cta-card .button { background: white; color: var(--teal); box-shadow: none; }

/* Document pages (privacy, terms, support) */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 40px; margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .updated { color: var(--ink-faint); margin: 0 0 34px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 38px 0 10px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #4d413a; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout {
  background: var(--pale-beige); border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 16px 20px; margin: 22px 0;
}
.faq details {
  background: var(--pale-beige); border-radius: 12px; padding: 14px 18px; margin: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 2px; }
.contact-card {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  background: var(--beige); border-radius: var(--radius); padding: 22px 24px; margin: 8px 0 30px;
}
.contact-card div { flex: 1; min-width: 220px; }
.contact-card h2 { margin: 0 0 4px; font-size: 20px; }
.contact-card p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--beige); padding: 30px 0 40px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .features, .steps { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a.hide-small { display: none; }
}
