/* Dinophone — getdinophone.com
   Colors: only --orange and --orange-border are final. Everything else can change. */

:root {
  --orange: #F5801E;
  --orange-border: #BC7030;
  --sky-deep: #1660C4;
  --sky: #1E6FD9;
  --sky-low: #2676D2;
  --sky-glow: 168, 219, 247; /* #A8DBF7, as RGB for the horizon glow */
  --navy: #0D2A57;
  --body: #2C4A72;
  --frame: #4A6D95;
  --page: #F2F8FD;
  --card-border: #C6DDF2;
  --grass-light: #6CCB52;
  --grass-dark: #3E9E3A;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--page);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

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

/* Galmuri11 is a bitmap font drawn on a 12px grid.
   Use it only at 12, 24 or 36px so the pixels stay sharp. */
.pixel {
  font-family: 'Galmuri11', ui-monospace, monospace;
  font-weight: 700;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Sky backgrounds ---------- */

.sky {
  color: #fff;
  background:
    radial-gradient(ellipse 45% 75% at 80% 108%, rgba(var(--sky-glow), .95) 0%, rgba(var(--sky-glow), .4) 40%, rgba(var(--sky-glow), 0) 70%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, var(--sky-low) 100%);
}

.sky--center {
  background:
    radial-gradient(ellipse 60% 55% at 50% 112%, rgba(var(--sky-glow), .85) 0%, rgba(var(--sky-glow), 0) 70%),
    linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, var(--sky-low) 100%);
}

.grass {
  height: 18px;
  background: linear-gradient(180deg, var(--grass-light) 0%, var(--grass-dark) 100%);
}

/* ---------- Header ---------- */

.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 20px; padding-bottom: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: 32px; image-rendering: pixelated; }
.brand span { font-size: 36px; line-height: 1; text-shadow: 0 2px 0 rgba(13, 42, 87, .45); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  color: #fff; font-weight: 600; font-size: 17px; text-decoration: none;
  padding: 10px 18px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}
.pill:hover { background: rgba(255, 255, 255, .24); }

/* ---------- Hero ---------- */

.hero-grid {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px 56px; padding-top: 40px;
}

.hero { overflow: hidden; } /* keeps the phone shadows from spilling past the grass */

.nowrap { white-space: nowrap; }

.hero-copy {
  flex: 1 1 440px; min-width: 0; padding-bottom: 72px;
  display: flex; flex-direction: column; gap: 22px;
}

.tag {
  align-self: flex-start; margin: 0; font-size: 24px; line-height: 1;
  color: var(--navy); background: rgba(255, 255, 255, .9);
  border: 2px solid var(--frame); border-radius: 8px; padding: 8px 12px;
}

h1 {
  margin: 0; font-size: clamp(2.5rem, 1.4rem + 3.2vw, 3.75rem); line-height: 1.04;
  font-weight: 700; letter-spacing: -0.01em; text-wrap: balance;
  text-shadow: 0 2px 6px rgba(13, 42, 87, .35);
}

.lede {
  margin: 0; max-width: 520px; font-size: clamp(1.125rem, 1rem + .45vw, 1.3125rem); line-height: 1.5;
  text-shadow: 0 1px 3px rgba(13, 42, 87, .4);
}

.fine { margin: 0; font-size: 15px; }

.hero-shots {
  flex: 1.2 1 420px; min-width: 0;
  display: flex; justify-content: center; align-items: flex-end;
}

.shot {
  border: 4px solid var(--frame); border-bottom: 0; border-radius: 18px 18px 0 0;
  background: #fff; box-shadow: 0 18px 40px rgba(13, 42, 87, .35); position: relative;
}
.shot--front { width: 340px; max-width: 62%; z-index: 2; }
.shot--back { width: 280px; max-width: 50%; margin-left: -12%; z-index: 1; }

/* ---------- Signup form ---------- */

.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; margin: 6px 0 0; }

.signup input {
  flex: 1 1 200px; min-width: 0; height: 56px; padding: 0 18px;
  font: inherit; font-size: 18px; color: var(--navy);
  background: #fff; border: 2px solid var(--frame); border-radius: 12px;
}
.signup input::placeholder { color: #5E7B9E; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 26px; font-size: 24px; line-height: 1;
  color: var(--navy); background: var(--orange); text-decoration: none;
  border: 3px solid var(--orange-border); border-radius: 12px; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45);
}
.btn:hover { background: #FF9033; }
.btn:active { transform: translateY(1px); box-shadow: none; }

/* ---------- Sections ---------- */

.section { padding: 88px 0; }

.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 40px; }
.eyebrow { margin: 0; font-size: 24px; line-height: 1; color: var(--orange-border); }
h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.625rem); line-height: 1.1; font-weight: 700; text-wrap: balance; }
.section-head p { margin: 0; font-size: 19px; color: var(--body); text-wrap: balance; }

.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.screens img { width: 100%; border: 3px solid var(--frame); border-radius: 14px; }
.screens figcaption { font-size: 17px; font-weight: 600; line-height: 1.3; }

.mockup-note { margin: 28px 0 0; max-width: 640px; font-size: 16px; color: var(--body); }

.section--hardware { padding-bottom: 32px; }
.hardware { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: end; }
.hardware figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.hardware img { width: 100%; }
.hardware figcaption { font-size: 17px; font-weight: 600; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 88px; }
/* Cards styled like the Dinophone OS: glossy light-blue panels with a slate border,
   a pixel-font header over a thin rule, and a keypad number in the corner
   (like the emoji picker's 1–9 keys). */
.card {
  position: relative;
  padding: 28px 26px 28px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FE 50%, #E1EDF9 100%);
  border: 3px solid var(--frame);
  border-radius: 16px;
  box-shadow: inset 0 2px 0 #FFFFFF, 0 10px 24px rgba(13, 42, 87, .10);
}
.card .key {
  position: absolute; top: 7px; left: 10px;
  font-size: 12px; line-height: 1; color: var(--frame);
}
.card h3 {
  margin: 0 0 14px; padding-bottom: 12px;
  font-size: 24px; line-height: 1.25; color: var(--navy);
  border-bottom: 2px solid #9DBEDD;
  text-shadow: 0 1px 0 #FFFFFF;
}
.card p { margin: 0; color: var(--body); }

/* ---------- Bottom signup ---------- */

.cta { padding: 80px 0; text-align: center; }
.cta .wrap { max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta img { width: 104px; height: 64px; image-rendering: pixelated; }
.cta h2 { color: #fff; text-shadow: 0 2px 6px rgba(13, 42, 87, .35); }
.cta p { margin: 0; font-size: 19px; text-shadow: 0 1px 3px rgba(13, 42, 87, .4); }
.cta .signup { justify-content: center; width: 100%; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.footer { background: var(--navy); color: #fff; padding: 32px 0; font-size: 16px; }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer .pixel { font-size: 24px; line-height: 1; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer small { font-size: 15px; color: var(--card-border); }

/* ---------- Simple pages (thanks, 404) ---------- */

/* Short pages fill the whole window, so no page background shows under the footer */
.page-fill { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.simple { flex: 1 0 auto; display: flex; flex-direction: column; }
.simple > .wrap { width: 100%; }
.simple-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding-top: 32px; padding-bottom: 96px; text-align: center;
}
.simple-body img { width: 156px; height: 96px; image-rendering: pixelated; }
.simple-body h1 { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.simple-body p { margin: 0; max-width: 520px; font-size: 19px; text-shadow: 0 1px 3px rgba(13, 42, 87, .4); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .cards { grid-template-columns: 1fr; }
  .sky {
    background:
      radial-gradient(ellipse 90% 40% at 50% 108%, rgba(var(--sky-glow), .95) 0%, rgba(var(--sky-glow), .4) 40%, rgba(var(--sky-glow), 0) 70%),
      linear-gradient(180deg, var(--sky-deep) 0%, var(--sky) 55%, var(--sky-low) 100%);
  }
  .hero-copy { padding-bottom: 0; }
}

@media (max-width: 560px) {
  .hardware { grid-template-columns: 1fr; gap: 8px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .cards { padding-bottom: 64px; }
  .brand span { font-size: 24px; }
  .nav .pill { font-size: 15px; padding: 7px 14px; }
  .hero-grid { padding-top: 16px; gap: 40px; }
  .signup > * { flex: 1 1 100%; }
  .shot--front { width: 56%; max-width: none; }
  .shot--back { width: 46%; max-width: none; margin-left: -8%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}
