/* Alboo landing — the app's palette and Nunito, with loose photo prints as in the store screenshots. */
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --purple: #6c4df6;
  --purple-dark: #5035cf;
  --ink: #211d2b;
  --lav: #eee9ff;
  --cream: #fffdf7;
  --pink: #ffb8d0;
  --yellow: #f4d35e;
  --muted: #6f6878;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { background: var(--lav); color: var(--ink); font-family: Nunito, ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 600; line-height: 1.55; }
body { margin: 0; }
main { overflow-x: clip; }
a { color: inherit; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; border-radius: 0.4rem; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }

.top, .hero, .steps, .features, .get, .foot nav { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }

.top { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.35rem; font-weight: 900; text-decoration: none; }
.logo img { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; }

.pill { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 999px; font-weight: 800; text-decoration: none; }
.pill-ghost { border: 2px solid var(--ink); }
.pill-ghost:hover { background: var(--ink); color: var(--cream); }
.pill-light { background: var(--cream); color: var(--purple-dark); }

/* Hero: full-bleed purple band. */
main > .hero { width: 100%; background: var(--purple); color: #fff; padding: clamp(3rem, 8vw, 6rem) max(1rem, calc((100% - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); }
.lede { margin: 1.4rem 0 2rem; max-width: 30rem; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, 0.85); }
.hero-art { position: relative; padding: 2rem 0; }
.spread { margin: 0; background: var(--cream); padding: 0.6rem; border-radius: 1.2rem; box-shadow: 0 2.5rem 5rem rgba(20, 10, 60, 0.45); transform: rotate(-3deg); position: relative; z-index: 1; }
.spread img { border-radius: 0.8rem; }
.loose { position: absolute; width: 38%; background: var(--cream); padding: 0.5rem 0.5rem 1.6rem; border-radius: 0.4rem; box-shadow: 0 1.2rem 2.5rem rgba(20, 10, 60, 0.35); }
.loose-a { top: -0.5rem; right: -1rem; transform: rotate(9deg); }
.loose-b { bottom: -0.5rem; left: -1.5rem; transform: rotate(-11deg); z-index: 2; }

/* Steps */
.steps { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(4rem, 9vw, 7rem) 0; }
.steps h2, .features h2 { font-size: clamp(2.3rem, 6vw, 4rem); }
.steps ol { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; font-size: 1.1rem; color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2.5rem; height: 2.5rem; border-radius: 0.8rem; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-weight: 900; }
.steps li:nth-child(2)::before { background: var(--pink); }
.steps li:nth-child(3)::before { background: var(--purple); color: #fff; }
.steps strong { color: var(--ink); font-weight: 900; }
.phone { width: min(100%, 20rem); justify-self: center; border-radius: 2.4rem; border: 0.6rem solid #14121a; box-shadow: 0 2rem 4rem rgba(33, 29, 43, 0.25); }

/* Features */
main > .features { width: 100%; background: var(--cream); padding: clamp(4rem, 9vw, 7rem) max(1rem, calc((100% - var(--max)) / 2)); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.feature-grid .print { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; padding: 0.5rem 0.5rem 1.4rem; background: #fff; border-radius: 0.4rem; box-shadow: 0 1rem 2rem rgba(33, 29, 43, 0.15); margin-bottom: 1.4rem; }
.feature-grid article:nth-child(1) .print { transform: rotate(-2deg); }
.feature-grid article:nth-child(2) .print { transform: rotate(1.5deg); }
.feature-grid article:nth-child(3) .print { transform: rotate(-1deg); }
.feature-grid h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Closing: the finished book. */
main > .get { width: 100%; background: var(--ink); color: #fff; padding: clamp(4rem, 9vw, 7rem) max(1rem, calc((100% - var(--max)) / 2)); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.book { width: min(100%, 22rem); justify-self: center; aspect-ratio: 3 / 4; border-radius: 0.6rem 1.4rem 1.4rem 0.6rem; box-shadow: 0.6rem 0.6rem 0 #cfc7ea, 1.2rem 1.2rem 0 var(--cream), 0 2.5rem 5rem rgba(0, 0, 0, 0.5); transform: rotate(4deg); }
.cover { position: relative; height: 100%; border-radius: inherit; background: var(--pink); padding: 2rem 1.8rem; overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0.9rem; background: rgba(33, 29, 43, 0.12); }
.cover span { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; line-height: 1; text-transform: uppercase; color: var(--ink); }
.cover img { position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1.8rem; width: calc(100% - 3.6rem); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.8rem; }
.get h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.get p { margin: 1.2rem 0 2rem; max-width: 28rem; color: rgba(255, 255, 255, 0.75); font-size: 1.15rem; }

.foot { background: var(--ink); padding: 0 0 3rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.4rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 760px) {
  main > .hero, .steps, main > .get { grid-template-columns: 1fr; }
  .hero-art { margin-top: 1rem; }
  .get-copy { order: -1; }
}
