/* ==========================================================================
   PhotoPots — Shared Styles
   Requires tokens.css loaded first. Vanilla CSS, no frameworks.
   Visual policy: large surfaces low-saturation; brand colors are accents.
   ========================================================================== */

/* ------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: var(--space-5); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid rgba(28, 157, 224, 0.5); outline-offset: 2px; border-radius: var(--radius-6); }

/* ------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: var(--leading-snug); }
h4 { font-size: var(--text-h4); line-height: var(--leading-snug); }
p  { max-width: 68ch; }
strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--blue-tint-strong); color: var(--ink); }

/* ------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(var(--space-8), 9vw, var(--space-9)); }
.section--tight { padding-block: clamp(var(--space-7), 6vw, var(--space-8)); }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }

/* Section headers */
.section-header { max-width: 640px; margin-bottom: var(--space-7); }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header--center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-tiny);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: var(--space-3);
}
.eyebrow--orange { color: var(--orange-dark); }
.eyebrow--green  { color: var(--green-dark); }
.eyebrow--red    { color: var(--red-dark); }
.eyebrow--violet { color: var(--violet-dark); }

.section-title { margin-bottom: var(--space-4); }
.section-sub { font-size: 1.125rem; color: var(--ink-mute); }

/* Sections targeted by in-page anchors clear the sticky header */
section[id], [data-anchor] { scroll-margin-top: calc(var(--header-height) + var(--space-4)); }

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-small);
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out),
              background-color 0.18s var(--ease-out), color 0.18s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--glow-blue-soft);
}
.btn--primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--glow-blue-soft); }

.btn--secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-lifted-sm);
}
.btn--secondary:hover { border-color: var(--ink-mute); color: var(--ink); }

.btn--ghost { background: transparent; color: var(--blue-dark); padding-inline: var(--space-3); }
.btn--ghost:hover { color: var(--blue); }

.btn--lg { padding: 16px 32px; font-size: var(--text-body); }
.btn--sm { padding: 9px 18px; font-size: var(--text-tiny); }

/* ------------------------------------------------------------------
   Header / Nav
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(35, 38, 46, 0.05);
}
.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
}
.nav__logo:hover { text-decoration: none; }
.nav__logo img { width: 32px; height: 32px; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-small);
  color: var(--ink-soft);
}
.nav__link:hover { color: var(--ink); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--blue-dark); }
.nav__cta { margin-left: var(--space-2); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-10);
  color: var(--ink);
}
.nav__toggle:hover { background: var(--cream); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5) var(--space-5);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lifted);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link { display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-10); }
  .nav__link:hover { background: var(--cream); }
  .nav__cta { margin: var(--space-3) 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ------------------------------------------------------------------
   Hero patterns
   ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(var(--space-8), 10vw, var(--space-9)) var(--space-8);
  text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-size: var(--text-display);
  max-width: 16ch;
  margin-bottom: var(--space-4);
}
.hero__sub {
  font-size: 1.25rem;
  color: var(--ink-mute);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.hero__note { margin-top: var(--space-4); font-size: var(--text-tiny); color: var(--ink-mute); }

.hero--split { text-align: left; }
.hero--split .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-7);
}
.hero--split .hero__title, .hero--split .hero__sub { margin-inline: 0; }
.hero--split .hero__actions { justify-content: flex-start; }
@media (max-width: 900px) {
  .hero--split { text-align: center; }
  .hero--split .container { grid-template-columns: 1fr; }
  .hero--split .hero__actions { justify-content: center; }
}

/* Highlighted word inside headings */
.hl {
  position: relative;
  white-space: nowrap;
  color: var(--ink);
}
.hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 0.08em;
  height: 0.32em;
  background: var(--cyan-tint-strong);
  border-radius: var(--radius-full);
  z-index: -1;
}
.hl--orange::after { background: var(--orange-tint-strong); }
.hl--blue::after   { background: var(--blue-tint-strong); }
.hl--green::after  { background: var(--green-tint-strong); }

/* ------------------------------------------------------------------
   Pot tiles — signature component
   ------------------------------------------------------------------ */
.pot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  list-style: none;
  padding: 0;
  margin: 0;
}
.pot-tile {
  border-radius: var(--radius-16);
  padding: var(--space-5) var(--space-4);
  background: linear-gradient(150deg, var(--tile-a, var(--blue-tint)) 0%, var(--tile-b, var(--blue-tint-strong)) 100%);
  box-shadow: var(--tile-glow, var(--glow-blue-soft));
  color: var(--ink);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.pot-tile:hover { transform: translateY(-4px); }
.pot-tile__icon { width: 32px; height: 32px; margin-bottom: var(--space-3); color: var(--tile-accent, var(--blue-dark)); }
.pot-tile__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h4);
  color: var(--ink);
}
.pot-tile__meta { font-size: var(--text-tiny); color: var(--ink-mute); margin-top: 2px; }

.pot-tile--blue   { --tile-a: var(--blue-tint);   --tile-b: var(--blue-tint-strong);   --tile-glow: var(--glow-blue-soft);   --tile-accent: var(--blue-dark); }
.pot-tile--cyan   { --tile-a: var(--cyan-tint);   --tile-b: var(--cyan-tint-strong);   --tile-glow: var(--glow-cyan-soft);   --tile-accent: var(--cyan-dark); }
.pot-tile--orange { --tile-a: var(--orange-tint); --tile-b: var(--orange-tint-strong); --tile-glow: var(--glow-orange-soft); --tile-accent: var(--orange-dark); }
.pot-tile--red    { --tile-a: var(--red-tint);    --tile-b: var(--red-tint-strong);    --tile-glow: var(--glow-red-soft);    --tile-accent: var(--red-dark); }
.pot-tile--green  { --tile-a: var(--green-tint);  --tile-b: var(--green-tint-strong);  --tile-glow: var(--glow-green-soft);  --tile-accent: var(--green-dark); }
.pot-tile--violet { --tile-a: var(--violet-tint); --tile-b: var(--violet-tint-strong); --tile-glow: var(--glow-violet-soft); --tile-accent: var(--violet-dark); }

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  list-style: none;
  padding: 0;
  margin: 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-16);
  padding: var(--space-6);
  box-shadow: var(--shadow-lifted-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lifted); }
.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-12);
  background: var(--blue-tint);
  color: var(--blue-dark);
  margin-bottom: var(--space-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card__icon--cyan   { background: var(--cyan-tint);   color: var(--cyan-dark); }
.card__icon--orange { background: var(--orange-tint); color: var(--orange-dark); }
.card__icon--red    { background: var(--red-tint);    color: var(--red-dark); }
.card__icon--green  { background: var(--green-tint);  color: var(--green-dark); }
.card__icon--violet { background: var(--violet-tint); color: var(--violet-dark); }
.card__title { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.card__body { font-size: var(--text-small); }

/* Feature list with check marks */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: var(--text-small);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: var(--radius-full);
  background: var(--green-tint) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23178263" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>') center / 12px no-repeat;
}

/* ------------------------------------------------------------------
   FAQ accordion (native <details>, no JS required)
   ------------------------------------------------------------------ */
.faq { display: grid; gap: var(--space-3); max-width: var(--container-narrow); }
.faq--center { margin-inline: auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-12);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-body);
  color: var(--ink);
  text-align: left;
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%234A4F5A" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9.5l6 6 6-6"/></svg>') center / contain no-repeat;
  transition: transform 0.2s var(--ease-out);
}
.faq__item[open] .faq__q::after { transform: rotate(180deg); }
.faq__a { padding: 0 var(--space-5) var(--space-5); font-size: var(--text-small); }
.faq__a p + p { margin-top: var(--space-3); }

/* ------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  justify-content: center;
  gap: var(--space-5);
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-24);
  padding: var(--space-6);
  box-shadow: var(--shadow-lifted-sm);
}
.price-card--featured {
  border-color: var(--blue);
  box-shadow: var(--shadow-lifted), var(--glow-blue-soft);
  position: relative;
}
.price-card__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-tiny);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-card__name { font-family: var(--font-display); font-weight: 800; font-size: var(--text-h4); color: var(--ink); }
.price-card__price {
  margin: var(--space-3) 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--ink);
  line-height: 1;
}
.price-card__price small { font-size: var(--text-small); font-weight: 700; color: var(--ink-mute); }
.price-card__features { margin-bottom: var(--space-6); }
.price-card .btn { margin-top: auto; }

/* ------------------------------------------------------------------
   CTA banner
   ------------------------------------------------------------------ */
.cta-banner {
  border-radius: var(--radius-24);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: clamp(var(--space-6), 6vw, var(--space-8));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cta-banner__title { font-size: var(--text-h2); margin-bottom: var(--space-2); }
.cta-banner__sub { color: var(--ink-mute); max-width: 44ch; }
.cta-banner__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Soft decorative blob for backgrounds (subtle, low saturation) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.blob--cyan   { background: var(--cyan-tint-strong); }
.blob--orange { background: var(--orange-tint-strong); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-block: var(--space-8) var(--space-6);
  margin-top: var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.footer__brand img { width: 40px; height: 40px; margin-bottom: var(--space-3); }
.footer__tagline { font-size: var(--text-small); color: var(--ink-mute); max-width: 30ch; }
.footer__heading {
  font-family: var(--font-display);
  font-size: var(--text-tiny);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: var(--space-4);
}
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.footer__links a { font-size: var(--text-small); color: var(--ink-soft); }
.footer__links a:hover { color: var(--blue-dark); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-tiny);
  color: var(--ink-mute);
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------ */
.text-center { text-align: center; }
.text-mute { color: var(--ink-mute); }
.text-small { font-size: var(--text-small); }
.mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); } .mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); } .mb-6 { margin-bottom: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); align-items: center; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.position-relative { position: relative; }

.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;
}

/* Scroll-reveal (main.js adds .is-visible via IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }
.reveal--delay-3 { transition-delay: 0.24s; }

/* ------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
