/* meshecha.com: one static page. Brand from apps/web/src/components/brand/logo.tsx. */

@font-face {
  font-family: 'Sora';
  src: url('fonts/sora.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Ethiopic';
  src: url('fonts/noto-sans-ethiopic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF;
}

:root {
  --paper: #ffffff;
  --mist: #edf3ee;
  --ink: #1e1612;
  --ink-2: #5b4e45;
  --line: #e2ddd5;
  --forest: #0b4f3b;
  --forest-2: #0e6249;
  --green: #0e8a62;
  --orange: #f26a1b;
  --orange-deep: #c24e0c;
  --honey: #f2b33d;
  --wall: #cfdcc6;
  --bubble: #ffffff;
  --radius: 18px;
  --font: 'Sora', 'Noto Sans Ethiopic', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-am: 'Noto Sans Ethiopic', 'Sora', ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
[data-theme='dark'] {
  --paper: #14100d;
  --mist: #1b1713;
  --ink: #f4eee7;
  --ink-2: #bdb0a4;
  --line: #2f2722;
  --forest: #0a3a2c;
  --forest-2: #0d4a38;
  --green: #35b887;
  --wall: #101b15;
  --bubble: #1f2a24;
  color-scheme: dark;
}

/* ── Language: both texts are in the page; show the chosen one ─────────── */
html[data-lang='en'] [lang='am'],
html[data-lang='am'] [lang='en'] {
  display: none !important;
}
[hidden] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:lang(am) {
  font-family: var(--font-am);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  text-wrap: balance;
}
h1 :lang(en),
h2 :lang(en) {
  letter-spacing: -0.035em;
}
/* Ethiopic is never tracked tight, and needs a little more line height. */
h1 :lang(am),
h2 :lang(am),
h3 :lang(am) {
  line-height: 1.3;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: max(20px, env(safe-area-inset-left));
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn-big {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 1.0625rem;
}
.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.9rem;
}
/* Coffee on orange: the brand colour with text that stays readable. */
.btn-orange {
  background: var(--orange);
  color: #1e1612;
}
.btn-orange:hover {
  background: #ff7a2b;
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-green {
  background: var(--forest);
  color: #fff;
}
.btn-green:hover {
  background: var(--forest-2);
}
.btn .tg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.text-link {
  color: var(--green);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.mark {
  width: 36px;
  height: 36px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-latin {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.brand-am {
  margin-top: 3px;
  font-family: var(--font-am);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
}
.nav {
  display: flex;
  gap: 24px;
  margin-left: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  color: var(--ink);
}
.top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.lang-btn,
.icon-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn {
  padding: 6px 14px;
}
.lang-btn :lang(en) {
  font-family: var(--font-am);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
}
.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.icon-btn .i-moon {
  fill: currentColor;
  stroke: none;
}
[data-theme='light'] .i-sun,
[data-theme='dark'] .i-moon {
  display: none;
}
.lang-btn:hover,
.icon-btn:hover {
  background: var(--mist);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  background: var(--forest);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
  padding-block: 80px 88px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  font-weight: 800;
}
.hero h1 :lang(am) {
  font-size: 0.92em;
}
.lede {
  max-width: 34em;
  margin-top: 22px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.84);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 22px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
}
.hero-note a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* The phone: one Telegram channel post, the tap on Buy, then the order notice. */
.scene {
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: min(370px, 100%);
  border-radius: 34px;
  padding: 10px;
  background: #0a1612;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--ink);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 26px 26px 0 0;
  background: var(--bubble);
}
.chan-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--honey);
  color: #1e1612;
  font-family: var(--font-am);
  font-weight: 700;
}
.chan-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.95rem;
}
.chan-meta small {
  color: var(--ink-2);
  font-size: 0.78rem;
}
.chat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 22px;
  border-radius: 0 0 26px 26px;
  background-color: var(--wall);
  background-image: radial-gradient(color-mix(in srgb, var(--forest) 14%, transparent) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
}
.post {
  overflow: hidden;
  border-radius: 16px 16px 16px 6px;
  background: var(--bubble);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.post-photo svg {
  width: 100%;
  height: auto;
}
.post-text {
  position: relative;
  padding: 10px 12px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.post-text .price {
  margin-top: 6px;
  font-weight: 700;
  font-size: 1rem;
}
.post-time {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 0.72rem;
  color: var(--ink-2);
}
.buy-btn {
  display: block;
  padding: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, #0b2c21 58%, transparent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
}
.notice {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 64px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bubble) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45);
  font-size: 0.86rem;
  line-height: 1.4;
}
.notice-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.notice-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notice-text b {
  font-size: 0.92rem;
}

/* One sequence on load. Without JS (no .js class) everything simply shows. */
.js .post {
  animation: rise 0.6s 0.2s both cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .buy-btn {
  animation: rise 0.5s 0.75s both cubic-bezier(0.2, 0.8, 0.2, 1), tap 0.5s 1.6s ease;
}
.js .notice {
  animation: drop 0.6s 2.15s both cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes tap {
  40% {
    transform: scale(0.95);
    background: color-mix(in srgb, #0b2c21 75%, transparent);
  }
}
@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
}

/* The tibeb: the woven border of a netela, used as the page's one ornament. */
.tibeb {
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Crect width='36' height='18' fill='%231E1612'/%3E%3Crect width='36' height='2' fill='%23F26A1B'/%3E%3Crect y='16' width='36' height='2' fill='%23F26A1B'/%3E%3Cpath d='M9 3.5 14.5 9 9 14.5 3.5 9Z' fill='%23F2B33D'/%3E%3Cpath d='M9 6.6 11.4 9 9 11.4 6.6 9Z' fill='%23C24E0C'/%3E%3Cpath d='M27 5.5 30.5 9 27 12.5 23.5 9Z' fill='%230E8A62'/%3E%3C/svg%3E") repeat-x left center / 36px 18px;
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding-block: 88px;
}
.section h2,
.buyers h2,
.closing h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  max-width: 22em;
}
.section-lede {
  max-width: 40em;
  margin-top: 14px;
  color: var(--ink-2);
}
.section-lede .trial {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}
.body-lg {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--ink-2);
}

/* Steps: a real order, so they carry numbers and a line between them. */
.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 48px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 64px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  background: var(--paper);
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 1.1rem;
  z-index: 1;
}
[data-theme='dark'] .steps li::before {
  color: var(--orange);
}
.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px;
  left: 52px;
  right: -24px;
  border-top: 2px dashed var(--line);
}
.steps h3 {
  font-size: 1.2rem;
}
.steps p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
}

.money {
  background: var(--mist);
}
.money-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.pay-box {
  padding: 28px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.pay-title {
  font-weight: 700;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.92rem;
  font-weight: 600;
}
.pay-more {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  margin: 44px 0 0;
}
.features > div {
  padding: 22px 0 22px 30px;
  border-top: 1px solid var(--line);
  position: relative;
}
.features > div::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 30px;
  width: 11px;
  height: 11px;
  background: var(--honey);
  transform: rotate(45deg);
}
.features dt {
  font-weight: 700;
  font-size: 1.1rem;
}
.features dd {
  margin: 6px 0 0;
  color: var(--ink-2);
  max-width: 32em;
}

.buyers {
  padding-block: 8px 24px;
}
.buyers-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 48px;
}
.buyers-row > div:first-child {
  flex: 1 1 420px;
  padding: 36px 0 36px 28px;
  border-left: 5px solid var(--green);
}
.buyers p {
  margin-top: 12px;
  max-width: 34em;
  color: var(--ink-2);
}
.buyers-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Plans: one ruled table, not a row of floating cards. */
.plans {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.plan {
  padding: 30px 28px 32px;
}
.plan + .plan {
  border-left: 1px solid var(--line);
}
.plan h3 {
  font-size: 1.15rem;
  color: var(--ink-2);
}
.plan-price {
  margin-top: 10px;
  color: var(--ink-2);
}
.plan-price b {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-year {
  font-size: 0.9rem;
  color: var(--ink-2);
}
.plan-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
}
.plan-list li {
  position: relative;
  padding: 7px 0 7px 26px;
}
.plan-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.plans-cta {
  margin-top: 28px;
}

.faq-section {
  border-top: 1px solid var(--line);
}
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.faq details p {
  padding: 0 0 22px;
  color: var(--ink-2);
  max-width: 36em;
}
.faq details a {
  color: var(--green);
  font-weight: 600;
}

.closing {
  background: var(--forest);
  color: #fff;
}
.closing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding-block: 64px;
}

.foot {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  font-size: 0.92rem;
  color: var(--ink-2);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot-links a {
  text-decoration: none;
}
.foot-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── Smaller screens ───────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 56px 64px;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }
  .steps li:nth-child(2)::after {
    display: none;
  }
  .money-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .section {
    padding-block: 64px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .steps li {
    padding: 0 0 32px 64px;
  }
  .steps li:not(:last-child)::after {
    display: block;
    top: 52px;
    bottom: 8px;
    left: 21px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--line);
  }
  .steps li:nth-child(2)::after {
    display: block;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .buyers-row > div:first-child {
    flex-basis: 100%;
    padding-left: 20px;
  }
  .pay-box {
    padding: 22px;
  }
}
@media (max-width: 520px) {
  .top-cta {
    display: none;
  }
}

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