/* ==========================================================================
   NAKLIK — design tokens
   Concept: cargo manifest / customs stamp. Kraft-paper surface, ink-navy
   type, stamped rubber-ink accent. Grounded in the world of freight
   paperwork the product itself replaces.
   ========================================================================== */

:root{
  --bg:            #E3D8BC;
  --surface:       #F1E9D4;
  --surface-line:  #B9A47C;
  --ink:           #1C3049;
  --ink-soft:      #33506B;
  --text:          #2A2418;
  --text-mute:     #5B5340;
  --accent:        #C1440E;
  --accent-ink:    #7A2A08;
  --ok:            #2F5D46;
  --white:         #FBF7EC;

  --font-display: 'Oswald', sans-serif;
  --font-body:    'IBM Plex Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;

  --container: 1120px;
  --radius: 6px;
}

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

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* subtle paper grain overlay */
.grain{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image:
    radial-gradient(circle at 20% 30%, #000 0.5px, transparent 0.5px),
    radial-gradient(circle at 60% 70%, #000 0.5px, transparent 0.5px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: multiply;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

a{ color: inherit; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.eyebrow.center{ text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible{
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
}
.btn-primary{
  background: var(--accent);
  color: var(--white);
  box-shadow: 3px 3px 0 var(--accent-ink);
}
.btn-primary:hover{
  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 var(--accent-ink);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: rgba(28,48,73,0.06); }
.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--surface-line);
  width: 100%;
  justify-content: center;
}
.btn-outline:hover{ border-color: var(--ink); }
.btn-small{ padding: 9px 16px; font-size: 13px; }
.btn-large{ padding: 16px 30px; font-size: 15.5px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(227,216,188,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--surface-line);
}
.header-inner{
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo{
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo-dot{ color: var(--accent); }

.main-nav{
  display: flex;
  gap: 26px;
  margin-right: auto;
}
.main-nav a{
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  position: relative;
}
.main-nav a:hover{ color: var(--ink); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span{
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle:focus-visible{ outline: 2px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{ padding: 76px 0 88px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.09;
  margin-bottom: 22px;
}
.accent-text{ color: var(--accent); }
.hero-sub{
  font-size: 17.5px;
  color: var(--text-mute);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; }

/* --- signature element: manifest tickets --- */
.hero-visual{ position: relative; }
.ticket-stage{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.ticket{
  position: relative;
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1.5px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 18px 20px 22px;
  box-shadow: 4px 4px 0 rgba(28,48,73,0.08);
}
.ticket-before{ transform: rotate(-1.4deg); }
.ticket-after{ transform: rotate(1deg); }
.ticket-notch{
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 1.5px solid var(--surface-line);
  border-radius: 50%;
}
.ticket-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--surface-line);
}
.ticket-code{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}
.stamp{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  transform: rotate(-6deg);
}
.stamp-red{ color: var(--accent-ink); }
.stamp-navy{ color: var(--ok); }
.ticket-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 6px 0;
}
.ticket-row > span:first-child{ color: var(--text-mute); }
.ticket-row .val{
  font-family: var(--font-mono);
  color: var(--ink);
  font-weight: 500;
}
.scribble{
  display: inline-block;
  width: 90px;
  height: 9px;
  border-radius: 5px;
  background: repeating-linear-gradient(90deg, var(--text-mute) 0 2px, transparent 2px 5px);
  opacity: 0.5;
}
.scribble.short{ width: 50px; }
.ticket-perf{
  position: absolute;
  bottom: -1px; left: 12px; right: 12px;
  height: 1px;
  background-image: radial-gradient(circle, var(--bg) 1.5px, transparent 1.5px);
  background-size: 8px 1px;
}
.ticket-arrow{
  color: var(--accent);
  transform: rotate(90deg);
}

/* ==========================================================================
   Problem
   ========================================================================== */

.problem{ padding: 20px 0 84px; }
.problem-inner{ max-width: 700px; }
.problem h2{ font-size: clamp(26px, 3vw, 34px); margin: 0 0 18px; }
.lead{ font-size: 17px; color: var(--text-mute); }

/* ==========================================================================
   How it works
   ========================================================================== */

.how{ padding: 78px 0; background: var(--surface); border-top: 1px solid var(--surface-line); border-bottom: 1px solid var(--surface-line); }
.how h2.center{ font-size: clamp(26px, 3vw, 34px); text-align: center; margin: 0 auto 52px; max-width: 560px; }

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.step{
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}
.step-num{
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-ink);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.step h3{ font-size: 19px; margin-bottom: 8px; }
.step p{ color: var(--text-mute); font-size: 15px; margin: 0; }

/* ==========================================================================
   Compatibility
   ========================================================================== */

.compat{ padding: 56px 0; }
.compat-inner{ text-align: center; }
.compat-label{
  font-size: 14.5px;
  color: var(--text-mute);
  margin: 0 0 22px;
}
.compat-badges{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.compat-badges span{
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border: 1.5px solid var(--surface-line);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing{ padding: 84px 0; }
.pricing h2.center{ font-size: clamp(26px, 3vw, 34px); text-align: center; margin: 0 auto 52px; max-width: 560px; }

.plans{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan{
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan-featured{
  border-color: var(--ink);
  box-shadow: 5px 5px 0 rgba(28,48,73,0.12);
}
.plan-badge{
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3{ font-size: 21px; margin-bottom: 2px; }
.plan-desc{ color: var(--text-mute); font-size: 14px; margin: 0 0 18px; min-height: 38px; }
.plan-price{
  font-family: var(--font-mono);
  font-size: 32px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 4px;
}
.plan-price span{ font-size: 14px; color: var(--text-mute); font-weight: 400; }
.plan-limit{
  font-size: 13.5px;
  color: var(--text-mute);
  margin: 0 0 22px;
}
.plan .btn{ margin-top: auto; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta{
  padding: 90px 0 100px;
  background: var(--ink);
  color: var(--white);
}
.final-cta-inner{ max-width: 620px; text-align: center; margin: 0 auto; }
.final-cta h2{
  color: var(--white);
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 16px;
}
.final-cta p{ color: rgba(251,247,236,0.78); font-size: 16.5px; margin: 0 0 32px; }
.final-cta .btn-primary{ box-shadow: 3px 3px 0 rgba(0,0,0,0.35); }
.contact-email{ margin-top: 18px; font-size: 14.5px; }
.contact-email a{ text-decoration: underline; }

.contact-form{
  text-align: left;
  max-width: 460px;
  margin: 0 auto 6px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row{ display: flex; flex-direction: column; gap: 6px; }
.form-row label{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(251,247,236,0.72);
}
.form-row .optional{ color: rgba(251,247,236,0.42); font-weight: 400; }
.form-row input,
.form-row select,
.form-row textarea{
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(251,247,236,0.25);
  background: rgba(251,247,236,0.07);
  color: var(--white);
}
.form-row textarea{ resize: vertical; min-height: 64px; }
.form-row input::placeholder,
.form-row textarea::placeholder{ color: rgba(251,247,236,0.4); }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: rgba(251,247,236,0.11);
}
.contact-form .btn{ align-self: center; margin-top: 4px; }
.form-status{
  min-height: 20px;
  font-size: 14px;
  margin: 14px 0 4px;
  font-family: var(--font-mono);
}
.form-status-ok{ color: #9FD8B0; }
.form-status-error{ color: #E8A190; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{ padding: 26px 0; border-top: 1px solid var(--surface-line); }
.footer-inner{
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .steps{ grid-template-columns: 1fr; gap: 30px; }
  .plans{ grid-template-columns: 1fr; }
  .main-nav{ display: none; }
  .nav-toggle{ display: flex; }
  .header-inner .btn-small{ display: none; }
}

@media (max-width: 900px){
  .main-nav.is-open{
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--surface-line);
    padding: 18px 24px 26px;
    gap: 16px;
  }
}

@media (max-width: 520px){
  .ticket{ max-width: 100%; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .hero-actions .btn{ justify-content: center; }
}
