:root {
  --gold: #FFC022;
  --orange: #FF4D00;
  --gradient-primary: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  --color-primary: #FF4D00;
  --color-primary-dark: #DB4200;
  --color-bg: #ffffff;
  --color-bg-alt: #FFF8EE;
  --color-text: #201A16;
  --color-text-muted: #6B6058;
  --color-border: #F0E4D8;
  --color-card-bg: #ffffff;
  --logo-src: url('../images/logo-light.png');
  --tint-panel: linear-gradient(135deg, rgba(255,192,34,0.2), rgba(255,77,0,0.04));
  --max-width: 1120px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #17181C;
    --color-bg-alt: #1E2024;
    --color-text: #F5F1EC;
    --color-text-muted: #A7A29B;
    --color-border: #34363B;
    --color-card-bg: #1E2024;
    --logo-src: url('../images/logo-dark.png');
    --tint-panel: linear-gradient(135deg, rgba(255,192,34,0.4), rgba(255,77,0,0.16));
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a { color: var(--color-primary); }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.icon-inline {
  display: inline-flex;
  vertical-align: -5px;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  color: var(--color-primary);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; font-size: 1.6rem; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links li:last-child { border-bottom: none; }
}

/* Hero */
.hero {
  position: relative;
  padding: 110px 0 96px;
  text-align: center;
  background: var(--gradient-primary);
  color: #fff;
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 96%,
    97.5% 100%, 95% 96%, 92.5% 100%, 90% 96%, 87.5% 100%, 85% 96%, 82.5% 100%,
    80% 96%, 77.5% 100%, 75% 96%, 72.5% 100%, 70% 96%, 67.5% 100%, 65% 96%, 62.5% 100%,
    60% 96%, 57.5% 100%, 55% 96%, 52.5% 100%, 50% 96%, 47.5% 100%, 45% 96%, 42.5% 100%,
    40% 96%, 37.5% 100%, 35% 96%, 32.5% 100%, 30% 96%, 27.5% 100%, 25% 96%, 22.5% 100%,
    20% 96%, 17.5% 100%, 15% 96%, 12.5% 100%, 10% 96%, 7.5% 100%, 5% 96%, 2.5% 100%, 0% 96%
  );
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px dashed rgba(255,255,255,0.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero .logo-slogan {
  max-width: 340px;
  margin: 0 auto 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero p.subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto 40px;
}

.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  min-width: 190px;
  justify-content: center;
}

.store-badge svg { flex-shrink: 0; }

.store-badge .store-badge-text {
  text-align: left;
  line-height: 1.2;
}

.store-badge .store-badge-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.store-badge:hover { opacity: 0.85; }

@media (max-width: 480px) {
  .store-badges { flex-direction: column; align-items: stretch; }
  .store-badge { min-width: 0; width: 100%; }
}

/* Sections */
section { padding: 80px 0; }

section.alt {
  background-color: var(--color-bg-alt);
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 18px 18px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.5;
}

.section-head {
  text-align: center;
  /* max-width: 720px; */
  margin: 0 auto 48px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 70px;
  height: 0;
  margin: 14px auto 0;
  border-bottom: 3px dashed var(--color-primary);
  opacity: 0.6;
}

.section-head p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.about-card p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Screenshots */
.screenshots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  align-content: center;
  margin: 0px auto;
}
.screenshots-grid img {
  height: 'auto';
  width: 500px;
}

@media (max-width: 900px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .screenshots-grid { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
}

.phone-frame {
  aspect-ratio: 9 / 19.5;
  background: var(--color-text);
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

@media (min-width: 901px) {
  .phone-frame:nth-child(even) { transform: translateY(28px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-card-bg);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  border: 2px dashed var(--color-border);
  border-radius: 24px;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  text-align: center;
  padding: 16px;
}

.screenshot-placeholder span {
  font-size: 2rem;
  opacity: 0.6;
}

.screenshot-placeholder p {
  margin: 0;
  font-size: 0.85rem;
}

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

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  margin: 0 auto;
}

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

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

/* For Tailors */
.tailors-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 800px) {
  .tailors-section { grid-template-columns: 1fr; }
}

.tailors-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.tailors-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--color-text-muted);
}

.tailors-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.tailors-visual {
  background: var(--tint-panel);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tailors-visual img { height: 100%; border-radius: 20px; object-fit: contain; }

/* Download */
.download-section {
  text-align: center;
}

.download-section .support-line {
  margin-top: 24px;
  color: var(--color-text-muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img { height: 26px; }

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Legal pages */
.legal-page { padding: 64px 0 96px; }

.legal-page .wrap { max-width: 780px; }

.legal-page h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.1rem;
  margin-bottom: 4px;
}

.legal-page .updated {
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  margin-top: 40px;
  font-size: 1.35rem;
}

.legal-page h3 {
  margin-top: 24px;
  font-size: 1.05rem;
}

.legal-page p, .legal-page li {
  color: var(--color-text);
}

.legal-page ul, .legal-page ol {
  color: var(--color-text);
}

.legal-page hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
  text-decoration: none;
}
