/* ============================================================
   PMOS Pal — Official Website Styles
   Palette inspired by the app store market imagery:
   soft coral / blush gradients, rounded cards, deep maroon text
   ============================================================ */

:root {
  --coral: #ff8a80;
  --coral-500: #f57c74;
  --coral-600: #ee6c62;
  --coral-deep: #e35b52;
  --blush: #ffe8e4;
  --blush-soft: #fff5f3;
  --cream: #fffaf8;
  --maroon: #7a2e34;
  --maroon-soft: #9a4a4f;
  --ink: #3d2a2c;
  --muted: #8a7275;
  --line: #f3d9d4;
  --white: #ffffff;

  /* Food grade colors from the app */
  --grade-a: #e8699b;
  --grade-b: #98afe0;
  --grade-c: #e89c87;
  --grade-f: #c8745f;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 50px -20px rgba(200, 90, 82, 0.35);
  --shadow-card: 0 12px 34px -18px rgba(122, 46, 52, 0.28);
  --max: 1160px;
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--coral-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--maroon);
}

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

/* ---------------- Navigation ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 248, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--maroon);
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-card);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--maroon-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--coral-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -18px rgba(227, 91, 82, 0.6);
}

.btn-ghost {
  background: #fff;
  color: var(--maroon);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--maroon);
  border-color: var(--coral);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
      1200px 600px at 85% -10%,
      var(--blush) 0%,
      rgba(255, 232, 228, 0) 60%
    ),
    linear-gradient(180deg, var(--cream) 0%, var(--blush-soft) 100%);
  padding: 76px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--coral-deep);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.05;
  margin: 22px 0 18px;
  color: var(--maroon);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  display: block;
  color: var(--coral-deep);
}

.hero p.lead {
  font-size: 1.16rem;
  color: var(--maroon-soft);
  max-width: 520px;
  margin: 0 0 30px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--maroon-soft);
  font-size: 0.95rem;
}

.stars {
  color: #f5a623;
  letter-spacing: 2px;
  font-size: 1rem;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  width: 292px;
  background: #1c1418;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(122, 46, 52, 0.55);
  position: relative;
  z-index: 2;
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--blush-soft);
  aspect-ratio: 2010 / 4260;
  position: relative;
}

/* Carousel inside the phone */
.carousel {
  position: absolute;
  inset: 0;
}

.carousel .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel .slide.active {
  opacity: 1;
  transform: scale(1);
}

.dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 7px;
  justify-content: center;
}

.dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(122, 46, 52, 0.28);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.dots button.active {
  width: 20px;
  background: var(--coral-deep);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #1c1418;
  border-radius: 999px;
  z-index: 3;
}

.screen-h {
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.35rem;
  margin: 30px 0 4px;
}

.screen-sub {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 18px;
}

.mini-card {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.mini-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-card .cal {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--maroon);
}

.grade-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.gb {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-card);
}

.gb.a { background: var(--grade-a); }
.gb.b { background: var(--grade-b); }
.gb.c { background: var(--grade-c); }
.gb.f { background: var(--grade-f); }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.5;
  z-index: 1;
}
.blob.one {
  width: 220px; height: 220px;
  background: var(--coral);
  top: -30px; right: 10px;
  opacity: 0.28;
}
.blob.two {
  width: 160px; height: 160px;
  background: var(--grade-a);
  bottom: 10px; left: -10px;
  opacity: 0.22;
}

/* ---------------- Trust bar ---------------- */
.trust {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  padding: 34px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.trust .num {
  font-size: 1.9rem;
  font-weight: 800;
}

.trust .lbl {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ---------------- Sections ---------------- */
section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 54px;
}

.section-head .kicker {
  color: var(--coral-deep);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  color: var(--maroon);
  margin: 12px 0 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--maroon-soft);
  font-size: 1.06rem;
  margin: 0;
}

/* Features grid */
.features {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush-soft) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -22px rgba(122, 46, 52, 0.4);
}

.feature .ico {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blush) 0%, #ffd9d2 100%);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature h3 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 1.18rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Grade system */
.grades {
  background: var(--cream);
}

.grade-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

.grade-card {
  border-radius: var(--radius-md);
  padding: 28px 24px;
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.grade-card .big {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.grade-card .tag {
  font-weight: 700;
  margin: 6px 0 8px;
  font-size: 1.1rem;
}

.grade-card p {
  margin: 0;
  font-size: 0.92rem;
  opacity: 0.94;
}

.grade-card.a { background: linear-gradient(135deg, #ee7ba8, var(--grade-a)); }
.grade-card.b { background: linear-gradient(135deg, #a9bde8, var(--grade-b)); }
.grade-card.c { background: linear-gradient(135deg, #eeae99, var(--grade-c)); }
.grade-card.f { background: linear-gradient(135deg, #d3866f, var(--grade-f)); }

.dimensions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.dim {
  text-align: center;
  background: var(--blush-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 16px;
}

.dim .e { font-size: 1.7rem; }
.dim h4 { margin: 10px 0 4px; color: var(--maroon); font-size: 1rem; }
.dim p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* How it works */
.how {
  background: linear-gradient(180deg, var(--blush-soft) 0%, var(--cream) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 26px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
}

.step h3 { color: var(--maroon); margin: 10px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Testimonials */
.testimonials { background: var(--cream); }

.tgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.tcard .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blush), #ffd0c8);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--coral-deep);
}

.tcard .who strong { color: var(--maroon); display: block; font-size: 0.98rem; }
.tcard .who span { color: var(--muted); font-size: 0.82rem; }
.tcard p { margin: 0; color: var(--ink); font-size: 0.97rem; }
.tcard .stars { margin-bottom: 10px; }

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 64px 30px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.cta h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 28px;
}

.cta .btn-ghost {
  background: #fff;
  color: var(--coral-deep);
}

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1c1418;
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
}

.store-badge:hover { color: #fff; transform: translateY(-2px); }
.store-badge small { display: block; font-size: 0.68rem; opacity: 0.7; font-weight: 400; }

/* Disclaimer band */
.disclaimer {
  background: var(--blush-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}

.disclaimer .wrap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.disclaimer .ico {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.disclaimer p {
  margin: 0;
  color: var(--maroon-soft);
  font-size: 0.95rem;
}

/* ---------------- Footer ---------------- */
.footer {
  background: #2a1c1e;
  color: #e7d6d6;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer .brand { color: #fff; margin-bottom: 14px; }
.footer p { color: #b79a9a; font-size: 0.92rem; max-width: 300px; }
.footer h5 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #c9adad; font-size: 0.92rem; }
.footer ul a:hover { color: var(--coral); }

.footer-bottom {
  border-top: 1px solid #3d2c2e;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #9a8080;
  font-size: 0.85rem;
}

/* ---------------- Legal / document pages ---------------- */
.doc-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush-soft) 100%);
  padding: 60px 0 46px;
  border-bottom: 1px solid var(--line);
}

.doc-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--maroon);
  margin: 8px 0 10px;
  font-weight: 800;
}

.doc-hero .updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-body {
  padding: 56px 0 80px;
  background: var(--cream);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.toc h4 {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  color: var(--maroon-soft);
}

.toc ol li { margin-bottom: 8px; font-size: 0.9rem; }

.doc-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 46px 50px;
  box-shadow: var(--shadow-card);
}

.doc-content h2 {
  color: var(--maroon);
  font-size: 1.45rem;
  margin: 40px 0 14px;
  font-weight: 700;
  scroll-margin-top: 90px;
}

.doc-content h2:first-child { margin-top: 0; }

.doc-content h3 {
  color: var(--maroon-soft);
  font-size: 1.1rem;
  margin: 24px 0 10px;
}

.doc-content p,
.doc-content li {
  color: var(--ink);
  font-size: 1rem;
}

.doc-content ul,
.doc-content ol { padding-left: 22px; }

.doc-content li { margin-bottom: 8px; }

.callout {
  background: var(--blush-soft);
  border-left: 4px solid var(--coral);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
}

.callout p { margin: 0; color: var(--maroon-soft); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid,
  .grade-row,
  .dimensions,
  .steps,
  .tgrid,
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .doc-content { padding: 30px 24px; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .feature-grid,
  .grade-row,
  .dimensions,
  .steps,
  .tgrid,
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .disclaimer .wrap { flex-direction: column; }
}
