/* ============================================================
   Anofee — style.css
   Brand: emerald / green, clean light backgrounds, dark text
   ============================================================ */

:root {
  /* Brand colors */
  --green-900: #063a2c;
  --green-800: #0B5F4A;
  --green-700: #0E7A5F;
  --green-600: #12946F;
  --green-500: #17a97f;
  --green-100: #d9f0e4;
  --green-50:  #eef9f2;

  /* Neutrals */
  --ink-900: #0f1b16;
  --ink-700: #2b3a33;
  --ink-500: #55665e;
  --ink-300: #97a69e;
  --line:    #e2ece7;
  --bg:      #ffffff;
  --bg-alt:  #f6faf8;

  /* System */
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 58, 44, 0.06), 0 1px 3px rgba(6, 58, 44, 0.05);
  --shadow:    0 6px 20px rgba(6, 58, 44, 0.08);
  --shadow-lg: 0 16px 40px rgba(6, 58, 44, 0.10);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
  --nav-h: 66px;

  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a { color: var(--green-800); text-decoration: none; }
a:hover { color: var(--green-600); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-sub { color: var(--ink-500); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--green-700);
  margin: 0 0 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--green-800);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-700); color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--green-800);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--green-600); color: var(--green-700); }

.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--ink-900);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink-900); }

.brand-mark {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-name {
  width: 96px;
  height: auto;
}

.navbar .brand-mark {
  width: 76px;
  height: 76px;
}

.navbar .brand-name {
  width: 120px;
}

.hero-banner {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-700);
  font-weight: 500;
  font-size: 0.94rem;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--green-800); background: var(--green-50); }
.nav-link.active { color: var(--green-800); font-weight: 600; }

.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger { top: 50%; transform: translate(-50%, -50%); }
.hamburger::before { top: -6px; }
.hamburger::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] .hamburger::after  { transform: translateX(-50%) rotate(-45deg); top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 80% -10%, var(--green-50), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-800);
  background: var(--green-100);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-500);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-300);
  margin: 0;
}

/* Hero mockup */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  position: relative;
  width: 270px;
  max-width: 100%;
  aspect-ratio: 9 / 18.5;
  background: #0f1b16;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(0deg);
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0f1b16;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  background: #ffffff;
  border-radius: 30px;
  height: 100%;
  overflow: hidden;
  padding: 34px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--ink-900);
}
.app-logo { width: 28px; height: 28px; object-fit: contain; }
.app-loc { font-weight: 500; color: var(--ink-300); font-size: 0.7rem; }

.app-search {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.8rem;
  font-size: 0.72rem;
  color: var(--ink-300);
}

.app-chip-row { display: flex; gap: 6px; }
.chip {
  font-size: 0.62rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--ink-500);
}
.chip.active { background: var(--green-100); color: var(--green-800); font-weight: 600; }

.app-card {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.app-card-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}
.app-card-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.app-card-lines span { display: block; height: 6px; border-radius: 4px; background: var(--line); }
.app-card-lines span:last-child { width: 60%; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-100);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h3 { margin-bottom: 0.35em; }
.feature-card p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step h3 { margin-bottom: 0.3em; }
.step p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

/* ---------- Merchant ---------- */
.merchant-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.merchant-content p { color: var(--ink-500); }

.merchant-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
}

.merchant-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-700);
}
.merchant-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-600);
}

.merchant-visual { display: flex; justify-content: center; }

.merchant-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}

.merchant-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.merchant-card-top strong { display: block; color: var(--ink-900); font-size: 0.98rem; }
.merchant-card-top .muted { font-size: 0.78rem; color: var(--ink-300); }

.merchant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green-600), var(--green-800));
  flex-shrink: 0;
}

.merchant-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.5rem 0;
  color: var(--ink-700);
  border-bottom: 1px dashed var(--line);
}
.merchant-row:last-child { border-bottom: none; }
.merchant-row span:last-child { color: var(--ink-900); font-weight: 600; }

/* ---------- Why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.why-item h3 { margin-bottom: 0.3em; font-size: 1.05rem; }
.why-item p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(160deg, var(--green-900), var(--green-800));
  color: #fff;
  text-align: center;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255, 255, 255, 0.82); max-width: 560px; margin: 0 auto 1.75rem; }

.cta-inner { max-width: 680px; }

.cta-actions { display: flex; justify-content: center; }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  color: var(--ink-900);
  padding: 0.6rem 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-play:hover { transform: translateY(-2px); color: var(--ink-900); box-shadow: var(--shadow-lg); }

.play-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--green-800);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
}

.play-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-text small { font-size: 0.65rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; }
.play-text strong { font-size: 1rem; }

.cta-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6) !important;
  margin-top: 1rem !important;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1a14;
  color: rgba(255, 255, 255, 0.75);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }

.footer-desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 30rem;
}

.footer-nav h3,
.footer-contact h3 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav li,
.footer-contact li { margin-bottom: 0.55rem; }

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: color var(--transition);
}
.footer-nav a:hover,
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 20px;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 48px 0 80px; background: var(--bg); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-300);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--green-800); }

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}

.legal-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.legal-header h1 { margin-bottom: 0.3em; }

.legal-version {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
  margin: 0 0 0.5rem;
}

.legal-updated {
  font-size: 0.88rem;
  color: var(--ink-300);
  margin: 0;
}

.legal-content { font-size: 1rem; color: var(--ink-700); }
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.legal-content p { margin-bottom: 1.1rem; }
.legal-content ul,
.legal-content ol { margin-bottom: 1.2rem; }
.legal-content li { margin-bottom: 0.45rem; }
.legal-content a { text-decoration: underline; }

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .merchant-grid { grid-template-columns: 1fr; gap: 40px; }
  .merchant-visual { order: -1; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .nav-toggle { display: block; }

  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link { padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); }
  .nav-cta { margin: 0.5rem 0 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 44px 0 56px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .phone-frame { width: 230px; }
  .legal-page { padding: 32px 0 64px; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
}