/* Anjuta landing pages — shared stylesheet (ink-on-paper tokens, SPEC §12.1).
   Loaded by every locale; jurisdiction and script differences live in the
   site.ae.css / site.ar.css overlays, which load after this file. */

:root {
  --ink: #1a1612;
  --ink-soft: #2d2721;
  --paper: #f4ede1;
  --paper-warm: #ebe2d2;
  --paper-cool: #ede7dc;
  --rust: #b5441e;
  --rust-deep: #8f3418;
  --olive: #4a5037;
  --mist: #d4ccbc;
  --line: rgba(26, 22, 18, 0.12);
  --line-strong: rgba(26, 22, 18, 0.22);

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse at top left, rgba(181, 68, 30, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(74, 80, 55, 0.05) 0%, transparent 50%);
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 2.5rem; position: relative; z-index: 2; }

.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;
}

/* ===== NOTICE BAR ===== */
.notice-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.7rem 0;
  position: relative;
  z-index: 101;
}
.notice-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}
.notice-dot {
  width: 6px; height: 6px;
  background: var(--rust);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* ===== NAV ===== */
nav {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(244, 237, 225, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 10px; height: 10px;
  background: var(--rust);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--rust); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}
.lang-switch {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.4rem 0.7rem;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.lang-switch:hover { color: var(--rust); border-color: var(--rust); }
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: var(--sans);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--rust);
  transform: translateY(-1px);
}
.btn-primary .arrow { transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

/* ===== HERO ===== */
.hero {
  padding: 6rem 0 6rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 5rem;
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 30px; height: 1px;
  background: var(--rust);
  flex-shrink: 0;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6.5vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 2.5rem;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--rust);
  font-weight: 400;
}
.hero h1 .soft {
  display: block;
  color: var(--ink-soft);
  font-weight: 300;
}
.hero-lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-lead strong {
  font-weight: 500;
  color: var(--ink);
}

/* ===== WAITLIST FORM ===== */
.waitlist {
  display: flex;
  gap: 0.6rem;
  max-width: 30rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.waitlist input[type="email"] {
  flex: 1 1 15rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
}
.waitlist input[type="email"]::placeholder { color: rgba(26, 22, 18, 0.35); }
.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--rust);
}
.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 30rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.trust-row {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
}
.trust-row span { display: flex; align-items: center; gap: 0.5rem; }
.trust-dot { width: 6px; height: 6px; background: var(--olive); border-radius: 50%; flex-shrink: 0; }

/* Hero visual - interface preview */
.hero-visual {
  position: relative;
  margin-top: 1rem;
}
.invoice-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(26, 22, 18, 0.04),
    0 20px 40px -20px rgba(26, 22, 18, 0.15);
  position: relative;
  transform: rotate(-1.5deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.invoice-card:hover { transform: rotate(0deg) translateY(-4px); }
.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--line-strong);
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.invoice-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.invoice-number {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.einvoice-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  background: var(--olive);
  color: var(--paper);
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.einvoice-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--paper);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.invoice-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.party-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.party-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.party-detail {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-family: var(--mono);
}
.invoice-items {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-bottom: 1rem;
}
.item-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.88rem;
  gap: 1rem;
}
.item-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
}
.invoice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  gap: 1rem;
}
.invoice-status {
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.7;
}

/* Floating chip behind */
.floating-chip {
  position: absolute;
  background: var(--rust);
  color: var(--paper);
  padding: 0.9rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  top: -2.4rem;
  inset-inline-end: -1.5rem;
  transform: rotate(4deg);
  box-shadow: 0 10px 25px -10px rgba(181, 68, 30, 0.5);
  z-index: -1;
}

/* ===== SECTIONS ===== */
.section {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 5rem;
}
.section-number {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rust);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.section-title em { font-style: italic; color: var(--rust); }
.section-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 300;
  padding-top: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
}
.feature {
  padding: 2.25rem 2rem;
  border-inline-end: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.3s;
}
.feature:hover { background: rgba(255, 255, 255, 0.4); }
.feature-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  opacity: 0.5;
  margin-bottom: 1.25rem;
  letter-spacing: 0.1em;
}
.feature-icon {
  width: 34px; height: 34px;
  margin-bottom: 1rem;
  color: var(--rust);
}
.feature-title {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ===== RULES BAND ===== */
.einvoice-section {
  background: var(--ink);
  color: var(--paper);
  padding: 8rem 0;
  border: none;
  position: relative;
  overflow: hidden;
}
.einvoice-section::before {
  content: 'SEF';
  position: absolute;
  font-family: var(--serif);
  font-size: 34vw;
  font-weight: 400;
  font-style: italic;
  color: rgba(244, 237, 225, 0.03);
  bottom: -7vw;
  inset-inline-end: -2vw;
  line-height: 1;
  pointer-events: none;
}
.einvoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}
.einvoice-section .eyebrow { color: var(--rust); }
.einvoice-section .eyebrow::before { background: var(--rust); }
.einvoice-section h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: 1.75rem;
}
.einvoice-section h2 em { font-style: italic; color: var(--rust); }
.einvoice-section p {
  font-size: 1.1rem;
  color: rgba(244, 237, 225, 0.75);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

/* Timeline */
.flow {
  background: rgba(244, 237, 225, 0.04);
  border: 1px solid rgba(244, 237, 225, 0.1);
  padding: 2.5rem;
  border-radius: 4px;
}
.flow-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(244, 237, 225, 0.6);
  margin-bottom: 2rem;
}
.flow-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(244, 237, 225, 0.08);
}
.flow-step:last-of-type { border-bottom: none; }
.flow-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  /* each .flow-step is its own grid, so the date column must be pinned
     or short dates knock the following text out of alignment */
  min-width: 6.5rem;
}
.flow-text {
  font-size: 0.95rem;
  color: var(--paper);
  line-height: 1.6;
}
.flow-source {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(244, 237, 225, 0.08);
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244, 237, 225, 0.4);
  line-height: 1.8;
}

/* ===== EARLY ACCESS ===== */
.final-cta {
  padding: 9rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin-bottom: 2rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.final-cta h2 em { font-style: italic; color: var(--rust); }
.final-cta p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-weight: 300;
}
.final-cta .waitlist { margin: 0 auto 1rem; justify-content: center; }
.final-cta .form-note { margin: 0 auto; text-align: center; }

/* ===== FOOTER ===== */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.footer-grid {
  display: grid;
  /* auto, not a fr slot: the single link column hugs the inline-end edge so
     it lines up with the right-hand item in .footer-bottom below it */
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 3rem;
}
footer .brand { color: var(--paper); margin-bottom: 1rem; }
footer .brand-tag {
  color: rgba(244, 237, 225, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 24rem;
  font-weight: 300;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(244, 237, 225, 0.5);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.35rem 0; }
.footer-col a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 237, 225, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(244, 237, 225, 0.5);
  letter-spacing: 0.08em;
  gap: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation: fadeUp 0.7s ease-out 0.1s both; }
.hero h1 { animation: fadeUp 0.9s ease-out 0.2s both; }
.hero-lead { animation: fadeUp 0.9s ease-out 0.4s both; }
.hero .waitlist { animation: fadeUp 0.9s ease-out 0.55s both; }
.hero .form-note { animation: fadeUp 0.9s ease-out 0.62s both; }
.trust-row { animation: fadeUp 0.9s ease-out 0.7s both; }
.hero-visual { animation: fadeUp 1.1s ease-out 0.6s both; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .wrap { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .notice-bar { font-size: 0.64rem; letter-spacing: 0.08em; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section-header { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .einvoice-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .section { padding: 4rem 0; }
  .final-cta { padding: 5rem 0; }
  .einvoice-section { padding: 5rem 0; }
  .invoice-parties { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .flow-step { grid-template-columns: 1fr; gap: 0.35rem; }
  .flow { padding: 1.75rem; }
}
