/* PackPitara public website. Same palette as the app and admin panel (client palette, 2026-10-13). Font: Geist. */
:root {
  --ink: #053b47;      /* dark teal: headings, story section, footer */
  --teal: #007481;     /* links, main buttons */
  --teal-soft: #e3f1f2;
  --orange: #d95f2c;   /* bakery, focus ring */
  --paper: #f6f6f6;
  --white: #ffffff;
  --text: #19333a;
  --muted: #5a6d72;
  --line: #e4e9ea;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.015em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }

/* ---------- Floating nav ---------- */
.site-header { position: fixed; inset: 12px 0 auto; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  max-width: 880px; margin: 0 auto; padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 2px rgba(5, 59, 71, 0.06), 0 8px 28px rgba(5, 59, 71, 0.08);
}
.brand { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.main-nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: var(--white);
  font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--teal); color: var(--white); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; background: var(--teal); }
.btn-small:hover { background: var(--ink); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--teal-soft); color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--teal-soft); color: var(--ink); }
.btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }
.soon {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 500;
}

/* ---------- Phone mockup ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 684;
  padding: 9px; border-radius: 52px; background: #07262e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 30px 70px -20px rgba(5, 59, 71, 0.45);
}
.phone::after { /* camera island */
  content: ""; position: absolute; z-index: 3; top: 18px; left: 50%; width: 84px; height: 24px;
  transform: translateX(-50%); border-radius: 999px; background: #07262e;
}
.screen { position: absolute; inset: 9px; overflow: hidden; border-radius: 43px; padding: 40px 0 16px; }
.screen img { width: 100%; }
/* Top strip matches the app header of each screenshot; bottom strip matches its bottom bar. */
.screen-dark { background: linear-gradient(#1a3d49 50%, var(--white) 50%); }
.screen-light { background: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 140px 0 40px; text-align: center; }
.hero-copy { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 36em; margin: 22px auto 30px; }
.hero-pin { margin-top: 56px; padding-bottom: 40px; }
/* The tall wrapper holds the page still while the stage is stuck: products leave the phone during this scroll. */
.motion .hero-pin { height: calc(100vh + 900px); }
.hero-stage { position: relative; display: flex; justify-content: center; }
.motion .hero-stage { position: sticky; top: 88px; }
.phone-hero { z-index: 2; transform-origin: center top; width: min(300px, calc((100vh - 112px) * 0.4386)); }
.float { position: absolute; left: 50%; top: 22%; width: 130px; margin-left: -65px; z-index: 1; filter: drop-shadow(0 18px 24px rgba(5, 59, 71, 0.18)); }
.float-pouch { width: 140px; }
.float-box { width: 170px; margin-left: -85px; }
.float-roll { width: 120px; }

/* Load-in, once: the headline block rises, then the phone. Scroll effects take over after that. */
.motion .hero-copy > * { animation: rise 0.8s var(--ease) both; }
.motion .hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.motion .hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.motion .float { opacity: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Statement ---------- */
.statement { padding: 120px 0 140px; }
.statement p { margin: 0 auto; text-align: center; text-wrap: balance; font-size: clamp(1.75rem, 4vw, 2.85rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; color: var(--ink); }
.motion .statement span { color: #c3cfd2; transition: color 0.25s; }
.motion .statement span.lit { color: var(--ink); }

/* ---------- Story: sticky phone, screens change with the steps ---------- */
.story { background: var(--ink); color: #c9dbde; padding: 110px 0 90px; border-radius: 40px 40px 0 0; }
.story h2 { color: var(--white); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 30em; }
.motion .step { opacity: 0.35; transition: opacity 0.35s; }
.motion .step.on { opacity: 1; }
.step h3 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; }
.step p { margin: 12px 0 0; font-size: 1.125rem; }
.story-phone { position: sticky; top: calc(50vh - 331px); padding: 0 20px; }
.story-phone .screen { opacity: 0; transition: opacity 0.45s; }
.story-phone .screen.on, .story-phone .screen:first-child { opacity: 1; }
.phone-inline { display: none; }
.story-note { margin: 24px 0 0; font-size: 0.875rem; color: #8fb0b6; }

/* ---------- What we sell ---------- */
.sell { background: var(--white); padding: 110px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 14px 0 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; min-height: 280px; padding: 26px;
  border-radius: 28px; background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.tile p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.tile img { align-self: flex-end; width: 56%; max-height: 170px; object-fit: contain; margin: 0 -6px -6px 0; transition: transform 0.45s var(--ease); }
.tile:hover img { transform: translateY(-6px) rotate(-3deg); }
.tile-wide { grid-column: span 2; background: var(--teal-soft); flex-direction: row; align-items: center; }
.tile-wide img { width: 44%; max-height: none; margin: 0; }

.industries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.industry { padding: 32px 30px; border-radius: 28px; color: rgba(255, 255, 255, 0.88); }
.industry h3 { color: var(--white); font-size: 1.5rem; letter-spacing: -0.025em; }
.industry p { margin: 8px 0 0; }
.industry-teal { background: var(--teal); }
.industry-orange { background: #b84c20; }  /* a shade darker than the accent so white text stays readable */

.motion [data-reveal] { opacity: 0; transform: translateY(20px) scale(0.985); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.motion [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Perks ---------- */
.perks { padding: 110px 0; }
.perk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.perk-grid li { background: var(--white); border-radius: 22px; padding: 24px; }
.perk-grid p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }

/* ---------- About ---------- */
.about { background: var(--white); padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.about img { width: min(100%, 340px); justify-self: center; }
.about h2 { margin-bottom: 18px; }
.about p { max-width: 34em; color: var(--text); font-size: 1.15rem; }
.about em { font-style: italic; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { padding: 110px 0; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid #dfe5e6; }
.faq details:last-child { border-bottom: 1px solid #dfe5e6; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; color: var(--ink); font-size: 1.125rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.5rem; line-height: 1; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 36em; }

/* ---------- Closing ---------- */
.closing { background: var(--teal); color: #e3f1f2; text-align: center; padding: 96px 0; border-radius: 40px 40px 0 0; }
.closing h2 { color: var(--white); }
.closing p { margin: 14px 0 28px; font-size: 1.15rem; }

/* ---------- Policy pages ---------- */
.legal-head { padding: 136px 0 36px; border-bottom: 1px solid var(--line); background: var(--white); }
.legal-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 10px; }
.updated { color: var(--muted); margin: 0; }
.legal-body {
  max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start;
}
.legal-body.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 96px; font-size: 0.95rem; }
.toc p { font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 12px; margin-left: -12px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); background: var(--teal-soft); }

.prose { max-width: 42em; }
.prose h2 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; margin: 40px 0 10px; }
.prose > h2:first-child, .prose > p:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4d6d9; font-size: 0.95rem; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer p { margin: 0 0 10px; }
.footer-brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em; color: var(--white); }
.footer-title { font-weight: 600; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c4d6d9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 36px; padding-top: 18px; padding-bottom: 28px; }
.footer-base p { margin: 0; font-size: 0.875rem; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-pill { justify-content: space-between; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-phone { display: none; }
  .step { min-height: 0; padding: 44px 0 0; }
  .motion .step { opacity: 1; }
  .phone-inline { display: block; width: min(76vw, 280px); margin: 28px auto 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .legal-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; background: var(--white); border-radius: 18px; padding: 16px 18px; }
  .toc ol { columns: 2; column-gap: 20px; }
  .toc a { padding: 4px 0; margin: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 620px) {
  .wrap, .wrap-narrow, .hero-copy { padding-left: 16px; padding-right: 16px; }
  .legal-body { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 112px; }
  .phone-hero { width: min(72vw, 270px, calc((100vh - 112px) * 0.4386)); transform-origin: center center; }
  .motion .hero-pin { height: calc(100vh + 700px); }
  .float { width: 86px; margin-left: -43px; }
  .float-box { width: 110px; margin-left: -55px; }
  .statement { padding: 80px 0 90px; }
  .story, .sell, .perks, .about, .faq { padding: 72px 0; }
  .story { border-radius: 28px 28px 0 0; }
  .closing { border-radius: 28px 28px 0 0; padding: 72px 0; }
  .bento, .industries, .perk-grid { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 220px; }
  .tile-wide { grid-column: auto; }
  .toc ol { columns: 1; }
  .actions .btn, .actions .soon { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { display: none; }
  * { transition: none !important; animation: none !important; }
}
