/* Sukari marketing site — v2
   Design language matches the App Store screenshot prototype:
   cream paper, navy + amber accents, Source Serif 4 + Manrope.
   Modernized with layered atmosphere, refined motion, tighter hierarchy. */

:root {
  --cream: #f4efe3;
  --cream-soft: #ede6d4;
  --cream-deep: #e6dcc2;
  --cream-paper: #faf6ec;
  --navy: #143b4f;
  --navy-deep: #0d2c3c;
  --navy-soft: rgba(20, 59, 79, 0.08);
  --ink: #1f2a34;
  --ink-soft: #3d4a55;
  --muted: #7a8189;
  --muted-soft: #a4a89e;
  --hairline: #d9d0bd;
  --hairline-soft: rgba(217, 208, 189, 0.5);
  --amber: #b0822a;
  --amber-soft: rgba(176, 130, 42, 0.12);
  --red: #7a1d1c;

  --serif: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-phone:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 60px 90px -40px rgba(20, 59, 79, 0.42),
    0 20px 40px -12px rgba(20, 59, 79, 0.22);
  --shadow-card:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 30px 60px -30px rgba(20, 59, 79, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper-grain texture overlay — site-wide */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0 0.1, 0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
}

main, .nav, .footer { position: relative; z-index: 2; }

a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(20, 59, 79, 0.3);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--navy);
}

/* ---- Layout primitives ----------------------------------------------------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--navy);
  display: inline-block;
}

.eyebrow--amber { color: var(--amber); }
.eyebrow--amber::before { background: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.014em;
  font-variation-settings: "opsz" 72;
  margin: 0;
  color: var(--ink);
}

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--navy);
}

.lead {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}

/* Reveal-on-scroll for browsers that support animation-timeline */
@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal both linear;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Top nav --------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 227, 0.78);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom: 1px solid var(--hairline-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark__icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-block;
  box-shadow: 0 4px 10px -4px rgba(20, 59, 79, 0.4);
}

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--navy);
}

.nav__cta {
  background: var(--ink);
  color: var(--cream) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav__cta:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__cta):nth-child(3) { display: none; }
}

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

.hero {
  padding-top: clamp(64px, 10vw, 140px);
  padding-bottom: clamp(56px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}

/* Layered gradient atmosphere */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 80vmax;
  height: 80vmax;
  top: -30vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(176, 130, 42, 0.13), transparent 60%);
  filter: blur(20px);
}

.hero::after {
  width: 70vmax;
  height: 70vmax;
  bottom: -25vmax;
  left: -30vmax;
  background: radial-gradient(circle, rgba(20, 59, 79, 0.10), transparent 65%);
  filter: blur(30px);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 8vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--hairline);
  background: rgba(250, 246, 236, 0.7);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero__chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #2c8a4d;
  box-shadow: 0 0 0 4px rgba(44, 138, 77, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(44, 138, 77, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(44, 138, 77, 0.06); }
}

.hero__copy h1 {
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 0.98;
  margin: 0 0 26px;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.hero__copy .lead {
  font-size: clamp(17px, 1.4vw, 21px);
  margin-bottom: 40px;
  max-width: 48ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta-row__note {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}

/* App store badges — modernized */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 20px -10px rgba(20, 59, 79, 0.35);
}

.badge:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -10px rgba(20, 59, 79, 0.4);
  text-decoration: none;
}

.badge__logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.badge__pre {
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  text-transform: uppercase;
}

.badge__main {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge[aria-disabled="true"] {
  opacity: 0.7;
  pointer-events: none;
}

/* Hero phone — softer, larger */
.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phone::before {
  /* Glow behind the phone */
  content: "";
  position: absolute;
  inset: -8% -10% -4% -10%;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(20, 59, 79, 0.15), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: clamp(260px, 32vw, 400px);
  aspect-ratio: 1170 / 2532;
  border-radius: 14% / 6.5%;
  background: linear-gradient(135deg, #4a4a4f 0%, #2c2c2e 55%, #1c1c1e 100%);
  padding: 10px;
  box-shadow: var(--shadow-phone);
}

.phone-frame::before {
  /* Dynamic island */
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 33%;
  height: 26px;
  border-radius: 999px;
  background: #050505;
  z-index: 2;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 11% / 5%;
  overflow: hidden;
  background: var(--cream);
  display: block;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__copy h1 { max-width: none; }
  .hero__phone { justify-content: flex-start; }
  .phone-frame { width: min(300px, 70vw); }
}

@media (max-width: 640px) {
  .hero__inner { text-align: center; }
  .hero__copy .lead, .hero__chip { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero__phone { justify-content: center; }
}

/* ---- Section frame --------------------------------------------------------- */

.section {
  padding-top: clamp(72px, 11vw, 144px);
  padding-bottom: clamp(72px, 11vw, 144px);
  position: relative;
  overflow: hidden;
}

.section--soft { background: var(--cream-soft); }
.section--deep { background: var(--cream-deep); }

.section__header {
  text-align: center;
  margin-bottom: clamp(56px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.section__header .eyebrow { margin: 0 auto; }

.section__header h2 {
  font-size: clamp(36px, 5.8vw, 68px);
  line-height: 1.04;
  max-width: 18ch;
  letter-spacing: -0.018em;
}

.section__header .lead { text-align: center; margin: 0 auto; }

/* ---- Feature block --------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 112px);
  align-items: center;
  position: relative;
}

.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }

.feature__copy h3 {
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 18px 0 24px;
  position: relative;
}

.feature__copy h3::after {
  /* Tiny accent rule */
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  background: var(--navy);
  margin-top: 22px;
  border-radius: 2px;
}

.feature--amber h3 em { color: var(--amber); }
.feature--amber h3::after { background: var(--amber); }

.feature__copy .lead { font-size: 18px; }

.feature + .feature { margin-top: clamp(80px, 14vw, 168px); }

@media (max-width: 880px) {
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    text-align: left;
  }
  .feature__copy h3::after { margin-left: 0; }
}

/* ---- Stat strip ------------------------------------------------------------ */

.stats-section {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  text-align: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.stats__item {
  padding: clamp(28px, 5vw, 56px) 16px;
  position: relative;
}

.stats__item + .stats__item::before {
  content: "";
  position: absolute;
  top: 24%;
  bottom: 24%;
  left: 0;
  width: 1px;
  background: var(--hairline);
}

.stats__item .num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.stats__item .num em {
  color: var(--navy);
  font-style: italic;
}

.stats__item .label {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(3)::before { display: none; }
  .stats__item:nth-child(odd) + .stats__item::before {
    display: block;
  }
  .stats__item:nth-child(3),
  .stats__item:nth-child(4) {
    border-top: 1px solid var(--hairline);
  }
}

/* ---- Prose sections (privacy, support) ------------------------------------- */

.prose-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cream-paper);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--hairline-soft);
}

.prose-card::before {
  /* Navy rail on the left */
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 3px;
  background: linear-gradient(180deg, var(--navy), transparent);
  border-radius: 0 3px 3px 0;
}

.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose .eyebrow { margin-bottom: 18px; }

.prose h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  margin-bottom: 14px;
  letter-spacing: -0.018em;
}

.prose h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 44px;
  margin-bottom: 14px;
}

.prose p { margin: 0 0 16px; }

.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose__meta {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.contact-card {
  margin-top: 32px;
  padding: 26px 30px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--cream);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.contact-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card__value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  word-break: break-all;
}

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

.footer {
  border-top: 1px solid var(--hairline);
  padding-top: 64px;
  padding-bottom: 48px;
  background: var(--cream);
  color: var(--muted);
  font-size: 13px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer__col a:hover { color: var(--navy); }

.footer__brand p {
  margin: 0 0 8px;
}

.footer__brand .footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 28ch;
  margin-top: 12px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-soft);
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

.footer__bottom .small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom .small::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #2c8a4d;
}

@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---- Accessibility --------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}
