/* Pennyversity website. Plain CSS, no build step, no scripts. */

@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --navy: #1F3A5F;
  --ink: #141C28;
  --copper: #D9824B;
  --copper-soft: #F0B48C;
  --copper-dark: #8F4A22;
  --cream: #FBEEE4;
  --ground: #F6F6F1;
  --white: #FFFFFF;
  --text: #141C28;
  --muted: #4A5560;
  --on-navy: #FBEEE4;
  --on-navy-muted: #DCE4EE;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--navy); }
a:hover { color: var(--copper-dark); }
a:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--navy); padding: 12px 16px; font-weight: 800; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); color: var(--on-navy); }

h2 { font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--navy); }
.eyebrow { font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: 20px; color: var(--muted); }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 680px; margin-bottom: 36px; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-navy); font-size: 24px; font-weight: 800; }
.brand:hover { color: var(--white); }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.nav a { color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: 17px; padding: 12px 0; }
.nav a:hover { color: var(--copper-soft); }
.nav a.pill { color: var(--ink); text-decoration: none; padding: 12px 20px; }
.nav a.pill:hover { background: var(--copper-soft); color: var(--ink); }
.pill { display: inline-block; background: var(--copper); color: var(--ink); font-weight: 800; font-size: 17px; padding: 12px 20px; border-radius: 999px; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero .eyebrow { color: var(--copper-soft); }
.hero h1 { font-size: 64px; line-height: 1.05; font-weight: 800; }
.hero-lead { font-size: 22px; color: var(--on-navy-muted); max-width: 520px; }
.hero-note { font-size: 17px; color: var(--on-navy-muted); }
.store { align-self: flex-start; margin-top: 8px; display: flex; align-items: center; gap: 14px; background: var(--copper); color: var(--ink); border-radius: 16px; padding: 14px 22px; }
a.store { text-decoration: none; }
a.store:hover { background: var(--copper-soft); color: var(--ink); }
.store svg { flex: 0 0 30px; }
.store-small { display: block; font-size: 14px; font-weight: 700; line-height: 1.2; }
.store-big { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }

.hero-art { flex: 0 1 460px; width: 100%; max-width: 460px; margin: 0 auto; }
.hero-art-inner { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.hero-photo { position: absolute; right: 0; top: 0; width: 72%; aspect-ratio: 720 / 964; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3); }
.hero-art .phone { position: absolute; left: 0; bottom: 0; width: 36%; }

/* Phone frame */
.phone { position: relative; width: 248px; padding: 7px; border-radius: 40px; background: linear-gradient(150deg, #3A4558 0%, #0B0F16 45%, #1C2431 100%); box-shadow: 0 0 0 1px #56627A, 0 28px 56px rgba(20, 28, 40, 0.28); }
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: #2A3342; }
.phone::before { top: 20%; height: 8%; }
.phone::after { top: 31%; height: 13%; }
.phone-screen { position: relative; border-radius: 33px; overflow: hidden; aspect-ratio: 9 / 18.5; background: #F5F5F2; padding-top: 6.6%; }
.phone-screen.is-green { background: linear-gradient(#F5F5F2 0 50%, #E6F4E7 50% 100%); }
.phone-screen img { width: 100%; }
.phone-screen::before { content: ""; position: absolute; left: 50%; top: 1.2%; width: 4%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #0B0F16; }
.phone-screen::after { content: ""; position: absolute; left: 35%; bottom: 1.6%; width: 30%; height: 4px; border-radius: 999px; background: rgba(20, 28, 40, 0.4); }
.phone.is-small { padding: 6px; border-radius: 30px; box-shadow: 0 0 0 1px #56627A, 0 24px 48px rgba(0, 0, 0, 0.4); }
.phone.is-small .phone-screen { border-radius: 24px; }
.phone.is-small .phone-screen::after { height: 3px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stats strong { display: block; font-size: 36px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.stats span { font-size: 17px; color: var(--muted); }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.life-card { background: var(--ground); border-radius: 20px; overflow: hidden; }
.life-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.life-card div { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--navy); }
.life-card p, .topic p { color: #3D4852; }
.topic { background: var(--white); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }

/* Two-column feature rows */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-phone { flex: 0 1 290px; margin: 0 auto; display: flex; justify-content: center; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.steps .num { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.steps h3 { color: var(--text); }
.steps p { color: var(--muted); }
.ambush .eyebrow { color: var(--copper-dark); }
.ambush p { font-size: 20px; color: #3D4852; }

/* Comfortable for everyone */
.comfort { padding-top: 72px; padding-bottom: 72px; }
.comfort h2 { font-size: 34px; margin-bottom: 28px; }
.comfort-item { background: var(--white); border-radius: 20px; padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.comfort-item svg { flex: 0 0 30px; }

/* Help */
.help { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.help svg { flex: 0 0 48px; }
.help div { flex: 1 1 420px; min-width: 0; }
.help h2 { font-size: 26px; }
.help p { font-size: 19px; color: var(--muted); }

/* Closing band */
.closing .wrap { max-width: 760px; padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.closing img { width: 96px; }
.closing h2 { color: var(--on-navy); }
.closing p { font-size: 20px; color: var(--on-navy-muted); }
.closing .store { align-self: center; text-align: left; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-navy-muted); font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
.site-footer p { flex: 1 1 480px; min-width: 0; max-width: 620px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: var(--copper-soft); }

/* Smaller screens */
@media (max-width: 900px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero .wrap { gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .hero h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .split { gap: 40px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .nav a:not(.pill) { display: none; }
  .brand { font-size: 21px; }
  .brand img { width: 38px; height: 38px; }
  .nav a.pill { font-size: 15px; padding: 10px 14px; }
  .hero h1 { font-size: 40px; }
  .hero-lead { font-size: 20px; }
  h2 { font-size: 28px; }
  .comfort h2 { font-size: 28px; }
  .stats strong { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
