/* ============================================================================
   imah Piksel — product-focused landing (v3)
   Type: Bricolage Grotesque (display, rounded variable) + Plus Jakarta Sans
   Aesthetic: indie iOS app landing, soft + warm + conversion-focused
   ============================================================================ */

:root {
  --cream: #FCF7F1;
  --cream-deep: #F4EBDB;
  --surface: #EEE0D0;
  --surface-2: #E8DCC8;
  --terracotta: #B96F50;
  --terracotta-soft: #C98868;
  --terracotta-dark: #A05F44;
  --sage: #6E7659;
  --sage-mid: #8B9275;
  --sage-soft: #ADB099;
  --ink: #2A2A23;
  --ink-muted: #5C5A4F;
  --ink-faint: #8E8B7E;
  --line: rgba(42, 42, 35, 0.12);
  --line-soft: rgba(42, 42, 35, 0.06);
  --shadow-card: 0 1px 3px rgba(42, 42, 35, 0.04), 0 12px 32px -8px rgba(42, 42, 35, 0.08);
  --shadow-float: 0 4px 12px rgba(42, 42, 35, 0.06), 0 32px 64px -16px rgba(42, 42, 35, 0.18);

  --max-w: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.layout { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }

/* ============================================================================
   TOPBAR
   ============================================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  background: rgba(252, 247, 241, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.topbar__brand:hover { opacity: 0.75; }

.topbar__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.topbar__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.topbar__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.topbar__link:hover { color: var(--ink); }

/* ============================================================================
   HERO — product-first, big visual
   ============================================================================ */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(64px, 10vh, 120px) var(--gutter) clamp(80px, 12vh, 140px);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s forwards;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(185, 111, 80, 0.18);
}

.hero__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(32px, 6.4vw, 76px);
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 36;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 22px;
  text-wrap: balance;
  overflow-wrap: break-word;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}

.hero__title em {
  font-style: normal;
  color: var(--terracotta);
  font-variation-settings: "wdth" 100, "opsz" 36;
}

.hero__lede {
  font-size: clamp(15.5px, 1.7vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 38ch;
  margin-bottom: 32px;
  font-weight: 400;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s forwards;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 100px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -6px rgba(42, 42, 35, 0.35);
}

.btn--primary:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 28px -6px rgba(185, 111, 80, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--cream-deep);
  border-color: var(--ink-faint);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero visual — floating product mark */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-up-slow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s forwards;
}

@keyframes fade-up-slow {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__phone {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(185, 111, 80, 0.16), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.hero__phone-frame {
  position: relative;
  z-index: 1;
  width: 88%;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 64px;
  padding: 18px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  animation: float 6s ease-in-out infinite;
}

.hero__phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* ============================================================================
   SECTION COMMON
   ============================================================================ */

section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(72px, 10vh, 120px) var(--gutter);
}

.section__kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

.section__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 24;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 18ch;
}

.section__title em {
  font-style: normal;
  color: var(--terracotta);
}

.section__lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 56ch;
}

/* ============================================================================
   FEATURES GRID
   ============================================================================ */

.features {
  border-top: 1px solid var(--line-soft);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.feature {
  background: var(--cream-deep);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  border: 1px solid var(--line);
}

.feature__icon svg { width: 22px; height: 22px; }

.feature__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 6px;
}

.feature__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* ============================================================================
   HOW IT WORKS — 3 step rhythm
   ============================================================================ */

.how {
  background: var(--cream-deep);
  border-radius: 36px;
  margin: 0 var(--gutter);
  max-width: calc(var(--max-w) - var(--gutter) * 2);
}

.how__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: 56px;
  counter-reset: step;
}

.how__step {
  position: relative;
  padding-top: 64px;
}

.how__step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 44px;
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 36;
  color: var(--terracotta);
  letter-spacing: -0.03em;
  line-height: 1;
}

.how__step h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}

.how__step p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ============================================================================
   PRICING — Free vs Pro
   ============================================================================ */

.pricing {
  border-top: 1px solid var(--line-soft);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}

.tier {
  background: var(--cream-deep);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.tier--pro {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}

.tier--pro::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(185, 111, 80, 0.5), transparent 65%);
  pointer-events: none;
}

.tier__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.tier--pro .tier__label { color: var(--terracotta-soft); }

.tier__name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.tier__price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tier__price-sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-faint);
}

.tier--pro .tier__price-sub { color: rgba(252, 247, 241, 0.5); }

.tier__sublede {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.tier--pro .tier__sublede { color: rgba(252, 247, 241, 0.7); }

.tier__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.tier__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.tier--pro .tier__list li { color: rgba(252, 247, 241, 0.92); }

.tier__list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--cream);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M4 9.5l3.5 3.5L14 6' stroke='%23B96F50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}

.tier--pro .tier__list li::before {
  background-color: rgba(252, 247, 241, 0.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'><path d='M4 9.5l3.5 3.5L14 6' stroke='%23C98868' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.tier__cta {
  margin-top: 28px;
  align-self: flex-start;
  position: relative;
  z-index: 1;
}

/* ============================================================================
   STUDIO BLOCK
   ============================================================================ */

.studio {
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.studio__logo {
  max-width: 440px;
  width: 78%;
  margin: 0 auto 20px;
  display: block;
}

.studio__tagline {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--ink-muted);
  margin-bottom: 36px;
  letter-spacing: -0.005em;
}

.studio__body {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
  border-top: 1px solid var(--line);
  padding: 40px var(--gutter) 56px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__icon { width: 28px; height: 28px; border-radius: 7px; }

.footer__copy {
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 500;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.footer__links a:hover { color: var(--terracotta); }

/* ============================================================================
   ARTICLE PAGES (privacy, support)
   ============================================================================ */

.page-article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--gutter) 64px;
}

.page-article__kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.page-article__title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(36px, 5.6vw, 56px);
  font-weight: 500;
  font-variation-settings: "wdth" 100, "opsz" 28;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}

.page-article__title em { font-style: normal; color: var(--terracotta); }

.page-article__subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: clamp(40px, 6vh, 60px);
  padding-bottom: clamp(40px, 6vh, 60px);
  border-bottom: 1px solid var(--line);
}

.page-article h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.page-article h3:first-of-type { margin-top: 0; }

.page-article p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 14px;
}

.page-article p strong { font-weight: 600; color: var(--ink); }

.page-article ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.page-article li {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
}

.page-article li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 1px;
}

.page-article a {
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 111, 80, 0.3);
  transition: border-color 0.2s ease;
}

.page-article a:hover { border-bottom-color: var(--terracotta); }

.page-article__meta {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 48px;
  }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .hero__cta-row { justify-content: center; }
  .hero__eyebrow { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .hero__phone { max-width: 220px; }

  .how__steps { grid-template-columns: 1fr; gap: 32px; }
  .pricing__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar__nav { gap: 18px; }
  .topbar__link { font-size: 13.5px; }
  .features__grid { grid-template-columns: 1fr; }
  .how { border-radius: 28px; padding-left: 24px; padding-right: 24px; margin-left: 16px; margin-right: 16px; }

  /* Hide nav earlier — at 720px nav crowds brand */
  .topbar__nav { display: none; }
}

@media (max-width: 560px) {
  .hero { padding-top: 32px; padding-bottom: 64px; gap: 32px; }
  .hero__phone { max-width: 180px; }
  .hero__phone-frame { border-radius: 44px; padding: 14px; }
  .hero__phone-frame img { border-radius: 36px; }

  .btn { padding: 12px 18px; font-size: 14.5px; flex: 1 1 auto; justify-content: center; }
  .hero__cta-row { flex-wrap: nowrap; gap: 12px; width: 100%; }
  .hero__cta-row .btn { max-width: 100%; }

  section { padding-top: 64px; padding-bottom: 64px; }

  .tier { padding: 28px 22px; }

  footer { flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 40px; }
  .footer__links { gap: 18px; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .topbar { padding: 14px var(--gutter); }
  .topbar__brand { font-size: 17px; }
  .topbar__icon { width: 28px; height: 28px; }

  .hero__eyebrow { font-size: 11.5px; padding: 6px 12px 6px 9px; }
  .hero__phone { max-width: 150px; }

  .hero__cta-row { flex-direction: column; align-items: stretch; }
  .hero__cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
