/* ─────────────────────────────────────────────────────
   PhotoSphere · marketing site (multi-page)
   Apple Photos × Google Photos light theme
   ───────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-alt:    #f5f5f7;        /* Apple's trademark off-white */
  --bg-tint:   #fafafc;
  --line:      #e5e5e7;
  --line-2:    #d2d2d7;

  /* Text */
  --text:      #1d1d1f;        /* Apple body */
  --text-2:    #424245;
  --mute:      #6e6e73;        /* Apple secondary */
  --dim:       #86868b;

  /* Brand */
  --blue:      #1a73e8;        /* Google blue */
  --blue-2:    #1557b0;
  --blue-soft: #e8f0fe;
  --apple:     #0071e3;        /* Apple system blue */

  /* Photo-app palette (Apple Photos icon gradient) */
  --p-yellow:  #fbbc04;
  --p-orange:  #f29900;
  --p-pink:    #ec4899;
  --p-violet:  #8b5cf6;
  --p-cyan:    #06b6d4;
  --p-green:   #34a853;
  --p-red:     #ea4335;

  /* Type */
  --font: 'SF Pro Display', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max:    1200px;
  --max-narrow: 980px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows (subtle, Apple-style) */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.08), 0 12px 36px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, 0.10), 0 32px 80px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
p { margin: 0; color: var(--text-2); }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── Top nav ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 16px;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: conic-gradient(from 220deg,
    var(--p-yellow), var(--p-orange), var(--p-red),
    var(--p-pink), var(--p-violet), var(--p-cyan),
    var(--p-green), var(--p-yellow));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  position: relative;
}
.brand-mark::after {
  content: ''; position: absolute; inset: 6px;
  background: #fff; border-radius: 50%;
}
.brand-name { letter-spacing: -0.015em; }

.nav-links {
  display: flex; gap: 4px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--blue); }

.nav-cta {
  font-size: 14px; font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--blue-2); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--bg-alt); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px;
    gap: 4px;
  }
  .nav-links.open a { padding: 12px 14px; }
}

/* ── Hero shared ─────────────────────────────────── */
.hero {
  padding: 80px 24px 96px;
  text-align: center;
  position: relative;
}
.hero-bg-tint {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1200px 600px at 50% -10%, var(--blue-soft) 0%, transparent 60%);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero h1, .display {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.display.xl { font-size: clamp(48px, 9vw, 104px); font-weight: 700; }
.lede {
  max-width: 680px;
  margin: 0 auto;
  font-size: 21px; line-height: 1.42;
  color: var(--mute);
  font-weight: 400;
}
.lede.compact { font-size: 18px; }

.cta-row {
  margin-top: 36px;
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}
.btn-ghost {
  background: var(--bg-alt);
  color: var(--text);
}
.btn-ghost:hover { background: var(--line); }
.btn-link {
  color: var(--blue);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
}
.btn-link:hover { border-bottom-color: var(--blue); }

/* ── Sections ─────────────────────────────────────── */
.section {
  padding: 96px 24px;
}
.section.tight { padding: 64px 24px; }
.section.alt { background: var(--bg-alt); }
.section.tint { background: var(--bg-tint); }
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.section-inner.narrow { max-width: var(--max-narrow); }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; max-width: 720px; margin-left: 0; margin-right: 0; }
.h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.sub {
  font-size: 19px; line-height: 1.5;
  color: var(--mute);
}

/* ── Cards ────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
  background: var(--blue-soft);
  color: var(--blue);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 19px; margin-bottom: 8px;
}
.card p {
  font-size: 15px; line-height: 1.55;
  color: var(--mute);
}

/* Tinted icon variants */
.tint-yellow { background: #fef7e0; color: #b06000; }
.tint-pink   { background: #fde6f1; color: #c2185b; }
.tint-violet { background: #ede4fc; color: #6a3ab9; }
.tint-cyan   { background: #d8f3fb; color: #006a82; }
.tint-green  { background: #e0f4e6; color: #1e6c2c; }
.tint-red    { background: #fce4e1; color: #b9322a; }
.tint-orange { background: #feeede; color: #a8520b; }

/* ── Grids ────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 56px 24px 32px;
  margin-top: 0;
  font-size: 13px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 3fr;
  gap: 56px;
}
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; gap: 32px; } }
.foot-brand p {
  margin-top: 14px;
  font-size: 13px;
  color: var(--mute);
  max-width: 260px;
  line-height: 1.55;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }
.foot-cols h5 {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.foot-cols a {
  display: block;
  margin-bottom: 8px;
  color: var(--mute);
  transition: color 0.15s;
}
.foot-cols a:hover { color: var(--blue); }
.foot-bottom {
  max-width: var(--max); margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  color: var(--dim);
}

/* ── App mockup window ─────────────────────────────── */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #28ca42; }
.mock-title {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 12px; color: var(--dim); font-weight: 500;
}
.mock-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 8px;
}
/* Tiles in the hero mock-up. Real photos beat gradients — these are
   public-domain shots from picsum.photos (see assets/hero/CREDITS.txt).
   background-size:cover + center keeps them looking right at any
   aspect ratio the grid hands them. */
.tile {
  aspect-ratio: 1;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;   /* fallback while the image is loading */
}
.tile.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.t1  { background-image: url("hero/hero-1.jpg"); }
.t2  { background-image: url("hero/hero-2.jpg"); }
.t3  { background-image: url("hero/hero-3.jpg"); }
.t4  { background-image: url("hero/hero-4.jpg"); }
.t5  { background-image: url("hero/hero-5.jpg"); }
.t6  { background-image: url("hero/hero-6.jpg"); }
.t7  { background-image: url("hero/hero-7.jpg"); }
.t8  { background-image: url("hero/hero-8.jpg"); }
.t9  { background-image: url("hero/hero-9.jpg"); }
.t10 { background-image: url("hero/hero-10.jpg"); }
.t11 { background-image: url("hero/hero-11.jpg"); }
.t12 { background-image: url("hero/hero-12.jpg"); }

/* ── Comparison table ────────────────────────────── */
.compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare .row {
  display: grid;
  grid-template-columns: 1.5fr 1.1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare .row:last-child { border-bottom: none; }
.compare .row.head {
  background: var(--bg-alt);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--mute);
}
.compare .row.head > div { padding: 16px 18px; }
.compare .feat {
  padding: 18px;
  font-size: 14px; font-weight: 500;
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.compare .cell {
  padding: 18px;
  font-size: 13px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center;
}
.compare .cell:last-child { border-right: none; }
.col-self { background: var(--blue-soft); }
.col-self.head { background: rgba(26, 115, 232, 0.15); color: var(--blue); }
.yes::before  { content: '✓'; color: var(--p-green); font-weight: 700; margin-right: 8px; }
.no::before   { content: '✕'; color: var(--p-red);   font-weight: 700; margin-right: 8px; }
.mid::before  { content: '○'; color: var(--p-orange); font-weight: 700; margin-right: 8px; }
.price-em { color: var(--blue); font-weight: 700; }
@media (max-width: 880px) {
  .compare { font-size: 11px; }
  .compare .feat, .compare .cell { padding: 12px 10px; font-size: 11px; }
  .compare .row.head > div { padding: 12px 10px; font-size: 10px; }
}

/* ── Page header (interior pages) ─────────────────── */
.page-header {
  text-align: center;
  padding: 88px 24px 64px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, transparent 100%);
}
.page-header .breadcrumb {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 20px;
}
.page-header .breadcrumb a { color: var(--blue); }
.page-header h1 {
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.03em;
  font-weight: 600;
}
.page-header .lede {
  margin-top: 18px;
  max-width: 720px;
}

/* ── Feature row (alternating image/text) ─────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}
.feature-row.reverse > .feature-art { order: 1; }
@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse > .feature-art { order: 0; }
}
.feature-row h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.feature-row p {
  font-size: 17px; line-height: 1.55;
  color: var(--mute);
  margin-bottom: 14px;
}
.feature-row ul {
  list-style: none; padding: 0; margin: 18px 0 0;
}
.feature-row ul li {
  padding-left: 28px;
  position: relative;
  font-size: 15px; color: var(--text-2);
  margin-bottom: 10px;
  line-height: 1.5;
}
.feature-row ul li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a73e8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.feature-art {
  background: var(--bg-alt);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: grid; place-items: center;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.feature-art-grad {
  background: linear-gradient(135deg, var(--blue-soft), #fff);
}

/* ── Stats strip ──────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats .stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stats .stat:last-child { border-right: none; }
.stats .num {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--blue), var(--p-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats .lbl {
  font-size: 13px; color: var(--mute);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: none; }
  .stats .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ── Pill list / chips ────────────────────────────── */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.chip {
  padding: 6px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
}
.chip.blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(26, 115, 232, 0.2); }

/* ── Reveal on scroll ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tables ───────────────────────────────────────── */
.specs {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.specs th, .specs td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.specs th {
  font-weight: 600; color: var(--text);
  background: var(--bg-alt);
}
.specs td:first-child { color: var(--mute); width: 200px; }

::selection { background: var(--blue-soft); color: var(--text); }
