/* PhotosHere marketing site */

:root {
  --indigo: #5856d6;
  --purple: #af52de;
  --indigo-deep: #3d3bb8;
  --text: #1c1c1e;
  --text-secondary: #636366;
  --text-tertiary: #8e8e93;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --stroke: rgba(255, 255, 255, 0.45);
  --shadow: 0 8px 32px rgba(88, 86, 214, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.55;
  background:
    linear-gradient(145deg, rgba(88, 86, 214, 0.18) 0%, rgba(175, 82, 222, 0.10) 42%, rgba(0, 0, 0, 0.03) 100%),
    #f5f5f7;
  min-height: 100vh;
}

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

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(245, 245, 247, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--indigo);
  text-decoration: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  box-shadow: 0 4px 18px rgba(88, 86, 214, 0.35);
}

a.btn-primary,
a.btn-primary:hover,
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #fff;
  text-decoration: none;
}

.btn-glass {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

/* Glass card */

.glass {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: var(--shadow);
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.5rem;
}

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

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-copy .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0 0 1.75rem;
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.app-store-badge img {
  height: 44px;
  width: auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0 2rem;
  min-height: 520px;
}

/* iPhone device frame */

.device {
  --device-width: 280px;
  --bezel: 10px;
  --outer-radius: 52px;
  --inner-radius: 44px;
  position: relative;
  width: var(--device-width);
  margin: 0;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.28));
}

.device-frame {
  position: relative;
  padding: var(--bezel);
  border-radius: var(--outer-radius);
  background:
    linear-gradient(145deg, #4a4a4c 0%, #2c2c2e 18%, #1c1c1e 55%, #3a3a3c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.45);
}

.device-frame::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: calc(var(--outer-radius) - 3px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
  z-index: 2;
}

/* Side buttons */
.device-frame::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 28%;
  width: 3px;
  height: 14%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #5c5c5e, #3a3a3c);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}

.device .device-btn-left {
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(180deg, #5c5c5e, #3a3a3c);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.device .device-btn-left--action {
  top: 20%;
  height: 6%;
}

.device .device-btn-left--vol-up {
  top: 30%;
  height: 8%;
}

.device .device-btn-left--vol-down {
  top: 40%;
  height: 8%;
}

.device-screen {
  position: relative;
  border-radius: var(--inner-radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 1320 / 2868;
  line-height: 0;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.device-glow {
  position: absolute;
  inset: 10% -20%;
  background: radial-gradient(ellipse at center, rgba(88, 86, 214, 0.22), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Stacked hero phones */

.device-stack {
  position: relative;
  width: min(100%, 420px);
  height: 520px;
  margin-inline: auto;
}

.device-stack .device--back {
  position: absolute;
  right: 0;
  top: 12px;
  --device-width: 250px;
  transform: rotate(6deg);
  opacity: 0.92;
  z-index: 1;
}

.device-stack .device--front {
  position: absolute;
  left: 0;
  bottom: 0;
  --device-width: 280px;
  z-index: 2;
}

/* Screenshot showcase */

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
  align-items: start;
}

.showcase-item {
  text-align: center;
}

.showcase-item .device {
  --device-width: min(100%, 300px);
  margin-inline: auto;
}

.showcase-item figcaption {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 28ch;
  margin-inline: auto;
}

.showcase-item figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* Sections */

section {
  padding: 2.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-title p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(88, 86, 214, 0.15), rgba(175, 82, 222, 0.12));
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Steps */

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

.step {
  padding: 1.5rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 720px;
  margin-inline: auto;
}

.price-card {
  padding: 1.75rem;
}

.price-card.featured {
  border-color: rgba(88, 86, 214, 0.35);
  box-shadow: 0 12px 40px rgba(88, 86, 214, 0.18);
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.price-card .price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.price-card .price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--indigo);
  font-weight: 700;
}

/* CTA band */

.cta-band {
  margin: 1rem 0 3rem;
  padding: 2.5rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

/* Page layouts (support, privacy) */

.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

.content-panel {
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.content-panel h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

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

.content-panel p,
.content-panel li {
  color: var(--text-secondary);
}

.content-panel ul {
  padding-left: 1.25rem;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.contact-card h3 {
  margin: 0 0 0.25rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-card {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.contact-form-header {
  margin-bottom: 1.25rem;
}

.contact-form-header h3 {
  margin: 0 0 0.25rem;
}

.contact-form-header p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tally-form {
  width: 100%;
  min-width: 0;
}

.tally-form iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--indigo);
}

/* Responsive */

@media (max-width: 860px) {
  .hero-grid,
  .features-grid,
  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: 440px;
  }

  .device-stack {
    height: 420px;
    width: min(100%, 340px);
  }

  .device-stack .device--back {
    --device-width: 210px;
    right: -4px;
    top: 8px;
  }

  .device-stack .device--front {
    --device-width: 240px;
    left: -4px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .showcase-item .device {
    --device-width: min(100%, 260px);
  }

  .site-nav .nav-hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .site-header .inner {
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .app-store-badge {
    text-align: center;
  }
}
