/* ============================================================
   Tatevatsi marketing site — shared stylesheet.
   Colors mirror the iOS app's Theme.swift so the brand reads
   the same everywhere. Mobile-first; the layout opens up at
   720px and again at 1080px.
   ============================================================ */

:root {
  --amber: #ffbf00;
  --amber-deep: #e6a800;
  --amber-soft: #fff2c7;
  --ink: #333333;
  --ink-soft: #666666;
  --ink-faint: #bfbfbf;
  --surface: #fafaf7;
  --card: #ffffff;
  --success: #2eb366;
  --danger: #e04545;

  --radius-card: 18px;
  --radius-button: 14px;
  --radius-pill: 999px;

  --space-xs: 6px;
  --space-s: 10px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 40px;
  --space-2xl: 72px;

  --font-rounded: -apple-system, BlinkMacSystemFont, "SF Pro Rounded",
    "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-pop: 0 12px 32px rgba(230, 168, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-rounded);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

/* ----- Layout helpers ------------------------------------- */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-m);
}

section {
  padding: var(--space-2xl) 0;
}

section:nth-of-type(even) {
  background: var(--card);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-deep);
  background: var(--amber-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-m);
  letter-spacing: 0.02em;
}

h1, h2, h3 {
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 var(--space-m);
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-l);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 var(--space-m);
  color: var(--ink-soft);
  font-size: 17px;
}

/* ----- Header / nav --------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

/* ----- Buttons -------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}

.btn-primary:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-faint);
}

.btn-outline:hover {
  border-color: var(--ink);
}

.btn-disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* App Store badge (text version — works without the official asset). */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: transform 120ms ease, opacity 120ms ease;
}

.app-store-badge:hover {
  text-decoration: none;
  transform: translateY(-1px);
  opacity: 0.92;
}

.app-store-badge .badge-eyebrow {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 2px;
}

.app-store-badge .badge-text {
  font-size: 18px;
  line-height: 1;
}

/* ----- Hero ----------------------------------------------- */

.hero {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--surface) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: var(--space-l);
}

.hero-copy .lead {
  font-size: 20px;
  color: var(--ink-soft);
  margin-bottom: var(--space-l);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

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

.hero-icon {
  width: 240px;
  height: 240px;
  border-radius: 56px;
  box-shadow: 0 24px 60px rgba(230, 168, 0, 0.35);
  background: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 880px) {
  .hero .container {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ----- Features grid -------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-m);
}

.feature-card {
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-m);
  font-size: 28px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
}

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Screenshots ---------------------------------------- */

.screenshots-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-l);
  align-items: end;
}

.phone-frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  max-width: 260px;
  margin: 0 auto;
}

.phone-frame .screen {
  width: 100%;
  height: 100%;
  background: var(--amber-soft);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}

.phone-frame .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

/* ----- About --------------------------------------------- */

.about-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}

.about-card p {
  font-size: 17px;
  color: var(--ink);
}

.about-card p:last-child {
  margin-bottom: 0;
}

/* ----- Contact form -------------------------------------- */

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-card);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-m);
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--ink-faint);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.field textarea {
  min-height: 120px;
}

.form-feedback {
  font-size: 14px;
  margin-top: var(--space-s);
  min-height: 20px;
}

.form-feedback.success { color: var(--success); }
.form-feedback.error   { color: var(--danger);  }

/* ----- Footer -------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-l);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l);
  justify-content: space-between;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: white;
}

.footer-links {
  display: flex;
  gap: var(--space-l);
  flex-wrap: wrap;
}

/* ----- Legal pages --------------------------------------- */

.legal-page {
  background: var(--card);
  min-height: calc(100vh - 200px);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-m);
}

.legal-content h1 {
  font-size: 36px;
  margin-bottom: var(--space-s);
}

.legal-content .updated {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  font-size: 22px;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  color: var(--ink);
}

.legal-content ul {
  padding-left: var(--space-l);
}

/* ----- 404 ----------------------------------------------- */

.not-found {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) var(--space-m);
}

.not-found h1 {
  font-size: 96px;
  color: var(--amber);
  margin: 0;
  line-height: 1;
}

.not-found p {
  margin: var(--space-m) 0 var(--space-l);
}
