:root {
  --bg-cream: #fff3df;
  --bg-yellow: #ffd58a;
  --bg-yellow-deep: #ffc46c;
  --bg-blue: #4ac3ea;
  --bg-pink: #ff7c96;

  --choco-brown: #7b3b17;
  --choco-dark: #5b2a11;
  --text-main: #4b2612;
  --text-soft: #6b3b1e;
  --text-muted: #947056;

  --accent-orange: #f9a54e;
  --accent-pink: #ff7aa2;
  --accent-green: #3ddc84;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 16px rgba(179, 119, 63, 0.35);
  --shadow-strong: 0 16px 32px rgba(153, 93, 44, 0.4);

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Rounded", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at top, #ffe8d3 0, #fff4e3 40%, #ffe3b4 100%);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(255, 245, 227, 0.96),
    rgba(255, 241, 219, 0.9)
  );
  border-bottom: 1px solid rgba(255, 205, 141, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 20%, #ffe8c7 0, #ffbb68 55%, #ff86a3 100%);
  box-shadow: 0 6px 14px rgba(220, 143, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark-inner {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  background: #fff7e4;
  border: 2px solid #ffdba0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--choco-brown);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

nav {
  display: none;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  nav a {
    position: relative;
    padding-bottom: 0.18rem;
  }

  nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f9a54e, #ff7aa2);
    transition: width 0.18s ease-out;
  }

  nav a:hover::after,
  nav a:focus-visible::after {
    width: 100%;
  }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pill-tag {
  display: none;
}

@media (min-width: 768px) {
  .pill-tag {
    display: inline-flex;
  }
}

.pill-tag {
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: #fff7e4;
  border: 1px solid #ffdba0;
  color: var(--text-soft);
}

/* LIVE green dot next to "Open testing" */

.pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #3ddc84 70%);
  box-shadow: 0 0 6px rgba(61, 220, 132, 0.9);
  animation: livePulse 1.4s ease-out infinite;
}

.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(61, 220, 132, 0.5);
  opacity: 0;
  animation: liveRing 1.4s ease-out infinite;
}

@keyframes livePulse {
  0%   { transform: scale(1);   box-shadow: 0 0 6px rgba(61,220,132,0.9); }
  50%  { transform: scale(1.15); box-shadow: 0 0 10px rgba(61,220,132,1); }
  100% { transform: scale(1);   box-shadow: 0 0 6px rgba(61,220,132,0.9); }
}

@keyframes liveRing {
  0%   { opacity: 0.6; transform: scale(0.7); }
  100% { opacity: 0;   transform: scale(1.3); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  background: transparent;
  color: var(--choco-dark);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s ease-out;
}

.btn-primary {
  background: linear-gradient(180deg, #ffe3aa 0, #ffc66f 55%, #f9a54e 100%);
  box-shadow: 0 4px 0 #e49a4b, 0 10px 18px rgba(192, 126, 63, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #dd9143, var(--shadow-strong);
  filter: brightness(1.02);
}

/* CLEAN Google Play icon */

.btn-waffle-icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fffdf7;
  box-shadow: 0 2px 0 #f1cf96;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-waffle-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #ff8c58;
}

.btn-waffle-icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(249, 165, 78, 0.25);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.3rem;
}

/* Hero layered background */

.hero-bg-layer {
  position: absolute;
  left: 0;
  right: 0;
  z-index: -2;
}

.hero-bg-layer-top {
  top: 0;
  height: 190px;
  background: #ff7c96;
}

.hero-bg-layer-middle {
  top: 150px;
  height: 260px;
  background: linear-gradient(180deg, #ff7c96 0, #ffd58a 48%, #ffc46c 100%);
}

.hero-bg-layer-bottom {
  top: 330px;
  bottom: 0;
  background: linear-gradient(180deg, #ffc46c 0, #ffd58a 40%, #ffe6c2 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.9rem;
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
}

.hero-content {
  flex: 1.1;
  min-width: 0;
  color: var(--choco-dark);
}

/* NEW hero pill styles */

.hero-label {
  margin-bottom: 1rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #fff7e4;
  border: 1px solid #ffdba0;
  box-shadow: 0 6px 12px rgba(201, 141, 74, 0.35);
}

.hero-pill-badge {
  padding: 0.16rem 0.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #ffe3aa 0, #ffc66f 60%, #f9a54e 100%);
  box-shadow: 0 2px 0 #e49a4b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--choco-dark);
}

.hero-pill-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .hero-pill-text {
    font-size: 0.86rem;
  }
}

.hero-title {
  margin: 0 0 0.7rem;
  font-size: 2.2rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Better contrast for "soft candy playground." */
.hero-title-highlight {
  color: #b64d1b;
  font-weight: 800;
  text-shadow: 0 2px 0 #ffe6c4;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
}

.hero-subtitle {
  font-size: 0.97rem;
  color: var(--text-soft);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.google-play-labels {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.google-play-overline {
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.google-play-text {
  font-size: 0.97rem;
  font-weight: 800;
}

.hero-subnote {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-subnote strong {
  color: var(--choco-dark);
}

.hero-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Phone mock */

.phone-frame {
  position: relative;
  width: min(330px, 80vw);
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  background: radial-gradient(circle at top, #2a262e 0, #141318 45%, #111015 100%);
  padding: 10px;
  box-shadow: var(--shadow-strong);
}

/* Entire phone interior is screenshot */

.phone-gradient {
  position: absolute;
  inset: 10px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections */

main {
  padding-bottom: 3.7rem;
}

.section {
  padding: 2.8rem 0;
}

.section-soft {
  background: #fff8eb;
}

@media (min-width: 900px) {
  .section {
    padding: 3.2rem 0;
  }
}

.section-header {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section-title {
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
}

.section-subtitle {
  font-size: 0.93rem;
  color: var(--text-soft);
  max-width: 34rem;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-card {
  position: relative;
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: #fff9ec;
  border: 1px solid #ffdba0;
  box-shadow: 0 10px 18px rgba(207, 143, 70, 0.3);
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(186, 126, 60, 0.35);
}

.feature-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f9a54e;
  box-shadow: 0 4px 0 #e08835;
  position: relative;
}

/* Small icon variations */

.feature-icon-cookie {
  background: radial-gradient(circle at 30% 25%, #ffcf6f 0, #ffb13b 55%, #f09b2e 100%);
}

.feature-icon-cookie::before,
.feature-icon-cookie::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b3b17;
}

.feature-icon-cookie::before {
  top: 9px;
  left: 9px;
}

.feature-icon-cookie::after {
  bottom: 8px;
  right: 9px;
}

.feature-icon-waffle {
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 199, 120, 0.95) 0,
      rgba(255, 199, 120, 0.95) 7px,
      rgba(255, 181, 88, 0.95) 7px,
      rgba(255, 181, 88, 0.95) 14px
    );
}

.feature-icon-marshmallow {
  border-radius: 14px;
  background: radial-gradient(circle at 30% 25%, #fff8e9 0, #ffe3bf 55%, #ffd4a0 100%);
}

.feature-icon-sprinkle {
  background: linear-gradient(90deg, #ff7c96, #ffe06a, #4ac3ea);
}

.feature-icon-timer {
  background: radial-gradient(circle at 30% 25%, #fff8e3 0, #ffc45a 60%, #ffab4b 100%);
}

.feature-icon-timer::before,
.feature-icon-timer::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #7b3b17;
}

.feature-icon-timer::before {
  width: 16px;
  height: 16px;
  top: 8px;
  left: 8px;
  border: 3px solid #7b3b17;
  background: transparent;
}

.feature-icon-timer::after {
  width: 2px;
  height: 7px;
  top: 12px;
  left: 16px;
}

.feature-icon-heart {
  background: linear-gradient(135deg, #ff89ac, #ff6f8f);
}

.feature-icon-heart::before {
  content: "♥";
  position: absolute;
  top: 7px;
  left: 8px;
  font-size: 14px;
  color: #ffe6f3;
}

.feature-tag {
  font-size: 0.74rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #fff1df;
  border: 1px solid #ffdba0;
  color: var(--text-muted);
}

.feature-title {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.feature-description {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.feature-meta {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Screenshots */

.screenshots-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .screenshots-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.screenshot-card {
  border-radius: 18px;
  background: #fff5e0;
  border: 1px solid #ffdba0;
  box-shadow: 0 10px 18px rgba(197, 132, 61, 0.35);
  overflow: hidden;
  transition: transform 0.14s ease-out, box-shadow 0.14s ease-out;
}

.screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 22px rgba(183, 119, 51, 0.4);
}

.screenshot-inner {
  padding: 0.6rem;
}

.screenshot-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #f4d49e;
}

.screenshot-card img {
  width: 100%;
  height: auto;
}

.screenshot-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.screenshot-label span:first-child {
  font-weight: 600;
}

.screenshot-pill {
  font-size: 0.75rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  background: #fff1df;
  border: 1px solid #ffdba0;
}

/* FAQ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.faq-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  background: #fff9ec;
  border: 1px solid #ffdba0;
  box-shadow: 0 9px 16px rgba(204, 135, 63, 0.3);
}

.faq-question {
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}

.faq-answer {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Footer */

footer {
  border-top: 1px solid #ffcf88;
  background: #ffe9c6;
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--choco-dark);
}

.footer-note span {
  color: var(--choco-dark);
  font-weight: 700;
}

/* Utility */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid #ff7aa2;
  outline-offset: 2px;
}
