/* ── Skinalyze website — shared styles ── */

@import url('https://fonts.googleapis.com/css2?family=Leckerli+One&display=swap');

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

:root {
  --gold:      #C8A97E;
  --gold-dark: #A07850;
  --bg:        #F8F4F0;       /* matches app background */
  --card:      #FFFFFF;
  --btn-dark:  #1A1410;       /* matches app primary button */
  --btn-secondary: #EFE9E2;   /* matches app secondary buttons */
  --text:      #2C2318;
  --secondary: #8A7E75;
  --border:    rgba(200,169,126,0.18);
  --radius:    18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Leckerli font helper ── */
.leck {
  font-family: 'Leckerli One', Georgia, serif;
  font-weight: normal;
  font-style: normal;
}

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,244,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.nav-logo {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.nav-logo span {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--secondary);
  display: block;
  letter-spacing: 0.5px;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-size: 14px;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--btn-dark) !important;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px !important;
  font-weight: 500;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.8 !important; }

/* ── Hero ── */

.hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 80px 32px 60px;
  background: var(--bg);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: normal;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero p {
  font-size: 17px;
  color: var(--secondary);
  margin-bottom: 36px;
  max-width: 400px;
  line-height: 1.65;
}

/* Buttons — matching app style */

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-dark);
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  width: 100%;
  max-width: 320px;
  transition: opacity 0.18s, transform 0.18s;
}

.btn-dark:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-secondary);
  color: var(--text);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
  transition: background 0.18s;
}

.btn-secondary:hover { background: #E5DDD4; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 14px;
  text-decoration: none;
  margin-top: 12px;
  transition: color 0.18s;
}

.btn-link:hover { color: var(--text); }

.hero-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--secondary);
  text-align: left;
}

/* ── App visual ── */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* iPhone Air frame — black */
.iphone-frame {
  position: relative;
  width: 272px;
  background: linear-gradient(160deg, #2A2A2A 0%, #1A1A1A 50%, #111111 100%);
  border-radius: 52px;
  padding: 5px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 0 0 1.5px rgba(0,0,0,0.8),
    0 32px 72px rgba(0,0,0,0.45),
    0 8px 24px rgba(0,0,0,0.25);
}

/* Volume buttons — left side */
.iphone-btn-vol-up,
.iphone-btn-vol-down {
  position: absolute;
  left: -3px;
  width: 3px;
  background: linear-gradient(to right, #1A1A1A, #333);
  border-radius: 2px 0 0 2px;
  box-shadow: -1px 0 2px rgba(0,0,0,0.4);
}
.iphone-btn-vol-up   { top: 100px; height: 36px; }
.iphone-btn-vol-down { top: 148px; height: 36px; }

/* Power button — right side */
.iphone-btn-power {
  position: absolute;
  right: -3px;
  top: 120px;
  width: 3px;
  height: 52px;
  background: linear-gradient(to left, #1A1A1A, #333);
  border-radius: 0 2px 2px 0;
  box-shadow: 1px 0 2px rgba(0,0,0,0.4);
}

/* Screen bezel */
.iphone-screen {
  position: relative;
  background: #000;
  border-radius: 48px;
  overflow: hidden;
  line-height: 0;
}

/* Dynamic Island */
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  border-radius: 42px;
  overflow: hidden;
  aspect-ratio: 393 / 852; /* iPhone proportions */
  background: #000;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 42px;
  opacity: 0;
}

.slideshow .slide:first-child {
  opacity: 1;
}

.phone-frame {
  width: 270px;
  background: #FFFFFF;
  border-radius: 46px;
  box-shadow:
    0 32px 72px rgba(44,35,24,0.14),
    0 0 0 1px rgba(44,35,24,0.06),
    inset 0 0 0 1px rgba(255,255,255,0.5);
  overflow: hidden;
  padding: 16px 14px 24px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}

.phone-header {
  text-align: center;
  padding: 6px 0 12px;
}

.phone-header .title {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: 20px;
  color: var(--text);
}

.phone-header .sub {
  font-size: 11px;
  color: var(--secondary);
  margin-top: 1px;
}

.phone-headline {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
  padding: 0 8px;
}

.phone-img-area {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(160deg, #F0EBE5 0%, #E8E0D6 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.phone-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  opacity: 0.92;
}

.phone-face-placeholder {
  font-size: 72px;
  opacity: 0.35;
  filter: grayscale(1);
}

.phone-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 2px;
}

.p-btn-dark {
  background: var(--btn-dark);
  color: #fff;
  border-radius: 50px;
  padding: 13px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.p-btn-light {
  background: var(--btn-secondary);
  color: var(--text);
  border-radius: 50px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
}

.p-btn-link {
  text-align: center;
  font-size: 12px;
  color: var(--secondary);
  padding: 4px 0;
}

/* ── Container ── */

.container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Section header ── */

.section-header { text-align: center; margin-bottom: 52px; }

.section-header .eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: normal;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Sections ── */

section { padding: 80px 32px; }

/* ── Features ── */

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

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 2px 12px rgba(44,35,24,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(44,35,24,0.08);
}

.feature-icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.feature-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.7;
}

/* ── How it works ── */

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

.step { text-align: center; }

.step-num {
  width: 44px;
  height: 44px;
  background: var(--btn-dark);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: 19px;
  font-weight: normal;
  margin-bottom: 8px;
  color: var(--text);
}

.step p {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
}

/* ── Disclaimer ── */

.disclaimer-box {
  background: rgba(200,169,126,0.08);
  border: 1px solid rgba(200,169,126,0.22);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 52px;
}

.disclaimer-box .icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }

.disclaimer-box p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
}

/* ── CTA section ── */

.cta-section {
  text-align: center;
  background: var(--btn-dark);
  padding: 80px 32px;
}

.cta-section h2 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  color: #F8F4F0;
  margin-bottom: 14px;
}

.cta-section p {
  color: rgba(248,244,240,0.6);
  font-size: 16px;
  margin-bottom: 36px;
}

.cta-section .btn-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8F4F0;
  color: var(--btn-dark);
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.18s, transform 0.18s;
}

.cta-section .btn-light:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ── Footer ── */

footer {
  background: #F0EAE3;
  color: var(--secondary);
  padding: 40px 32px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid var(--border);
}

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

footer a:hover { color: var(--gold-dark); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* ── Legal pages ── */

.legal-hero {
  padding: 56px 32px 36px;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: normal;
  margin-bottom: 6px;
  color: var(--text);
}

.legal-hero .updated {
  font-size: 13px;
  color: var(--secondary);
}

.legal-body { padding: 48px 32px 80px; }

.legal-content { max-width: 760px; margin: 0 auto; }

.legal-content h2 {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: 22px;
  font-weight: normal;
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.legal-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 22px 0 8px;
  color: var(--gold-dark);
  font-style: normal;
}

.legal-content p {
  font-size: 15px;
  color: var(--secondary);
  margin-bottom: 14px;
  line-height: 1.78;
}

.legal-content ul {
  margin: 0 0 16px 20px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.78;
}

.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--gold-dark); }

/* ── Responsive ── */

/* ── Tablet (820px and below) ── */
@media (max-width: 820px) {
  nav { padding: 0 20px; }
  .nav-links li:not(:last-child) { display: none; }

  .hero { padding: 60px 20px 48px; min-height: auto; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-visual { order: -1; }
  .iphone-frame { width: 220px; }
  .hero p { margin: 0 auto 32px; }
  .hero-note { text-align: center; }
  .btn-dark, .btn-secondary { max-width: 100%; }

  section { padding: 60px 20px; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px; }

  .cta-section { padding: 60px 20px; }

  .legal-hero { padding: 40px 20px 28px; }
  .legal-body { padding: 36px 20px 60px; }
}

/* ── Mobile (580px and below) ── */
@media (max-width: 580px) {
  .nav-logo span { display: none; }

  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .iphone-frame { width: 190px; border-radius: 42px; }
  .iphone-screen { border-radius: 38px; }
  .iphone-btn-vol-up  { top: 80px;  height: 28px; }
  .iphone-btn-vol-down{ top: 118px; height: 28px; }
  .iphone-btn-power   { top: 95px;  height: 40px; }

  section { padding: 48px 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }

  .section-header h2 { font-size: 28px; }
  .section-header p  { font-size: 14px; }

  .disclaimer-box { flex-direction: column; gap: 10px; padding: 20px; }

  .cta-section h2 { font-size: 26px; }
  .cta-section p  { font-size: 14px; }
  .cta-section .btn-light { padding: 14px 28px; font-size: 14px; }

  footer { padding: 32px 16px; }
  .footer-links { gap: 16px; font-size: 13px; }

  .legal-hero h1 { font-size: 26px; }
  .legal-content h2 { font-size: 19px; }
  .legal-content p, .legal-content ul { font-size: 14px; }
}

/* ── Small mobile (380px and below) ── */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .iphone-frame { width: 165px; border-radius: 36px; }
  .iphone-screen { border-radius: 32px; }
  .nav-cta { padding: 8px 14px; font-size: 13px !important; }
}

/* ── About page ── */

.about-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.about-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.about-title {
  font-family: 'Leckerli One', Georgia, serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: normal;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 40px;
}

.about-body p {
  font-size: 17px;
  color: var(--secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-body p:first-child {
  font-size: 20px;
  color: var(--text);
  font-weight: 500;
}

.about-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 48px;
}

@media (max-width: 580px) {
  .about-wrap { padding: 48px 20px; }
  .about-body p { font-size: 15px; }
  .about-cta { flex-direction: column; }
  .about-cta .btn-dark,
  .about-cta .btn-secondary { text-align: center; }
}
