/* ============================================================
   Hamroh — Landing page styles
   Mobile-first, responsive. Clean & minimal.
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; }

:root {
  /* Tweakable accent — flipped by Tweaks panel */
  --brand: var(--coral-400);
  --brand-press: var(--coral-500);
  --brand-soft: var(--coral-50);
  --brand-ink-on: #fff;
  --brand-shadow: 0 10px 24px rgba(196, 95, 63, 0.28);
}
:root[data-brand="forest"] {
  --brand: var(--forest-500);
  --brand-press: var(--forest-600);
  --brand-soft: var(--forest-50);
  --brand-ink-on: #fff;
  --brand-shadow: 0 10px 24px rgba(63, 101, 76, 0.30);
}

/* ─── Layout container ─────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .wrap { padding: 0 40px; }
}

/* ─── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 246, 244, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup img { width: 30px; height: 30px; }
.brand-lockup span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--forest-500);
}
.nav-links { display: none; gap: 32px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--fg-2);
  transition: color var(--dur-base) var(--ease-standard);
}
.nav-links a:hover { color: var(--fg-1); }
@media (min-width: 900px) {
  .nav-links { display: flex; }
}
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: transform var(--dur-fast) var(--ease-pop),
              background var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand); color: var(--brand-ink-on);
  box-shadow: var(--brand-shadow);
}
.btn-primary:hover { background: var(--brand-press); }
.btn-ghost {
  background: transparent; color: var(--fg-1);
  box-shadow: inset 0 0 0 1.5px var(--border-2);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg-2); }
.btn-dark {
  background: var(--stone-900); color: #fff;
}
.btn-dark:hover { background: var(--stone-800); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 80px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .hero { padding: 96px 0 120px; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest-600);
  padding: 7px 12px;
  background: var(--forest-50);
  border-radius: var(--r-pill);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--forest-500);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--stone-900);
  margin: 24px 0 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 24px 0 0;
  max-width: 480px;
  text-wrap: pretty;
}
@media (min-width: 900px) {
  .hero-sub { font-size: 20px; }
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px;
  margin-top: 28px;
}
.hero-meta-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--fg-2);
}
.hero-meta-item .ic {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-press);
  display: inline-flex; align-items: center; justify-content: center;
}
:root[data-brand="forest"] .hero-meta-item .ic { color: var(--forest-700); }

/* ─── Phone mockup ─────────────────────────────────────────── */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone-stage::before {
  content: '';
  position: absolute; inset: 10% -10%;
  background: radial-gradient(closest-side, var(--brand-soft) 0%, transparent 75%);
  opacity: 0.7; z-index: -1;
  filter: blur(8px);
}
.phone {
  width: 312px; height: 640px;
  border-radius: 48px;
  background: var(--stone-900);
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(58, 50, 37, 0.35),
    0 18px 40px -12px rgba(58, 50, 37, 0.20),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
@media (min-width: 1100px) { .phone { width: 332px; height: 680px; } }

.phone-screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: var(--stone-900);
  border-radius: 999px;
  z-index: 5;
}
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px 8px; font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--stone-900);
}
.phone-status .dots {
  display: inline-flex; gap: 4px; align-items: center;
}
.phone-status .dots .b {
  display: inline-block; width: 3px; height: 11px; background: var(--stone-900);
  border-radius: 1px;
}
.phone-status .dots .b:nth-child(1) { height: 4px; }
.phone-status .dots .b:nth-child(2) { height: 7px; }
.phone-status .dots .b:nth-child(3) { height: 9px; }

/* Phone content — a stylized Hamroh home glimpse */
.phone-body { padding: 6px 18px 0; }
.phone-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px 14px;
}
.phone-brand { display: flex; align-items: center; gap: 7px; }
.phone-brand img { width: 22px; height: 22px; }
.phone-brand span {
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; letter-spacing: -0.04em; color: var(--forest-500);
}
.phone-bell {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--stone-100);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-2);
}

.phone-card {
  background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
  color: #fff; border-radius: 20px;
  padding: 16px 18px; position: relative; overflow: hidden;
}
.phone-card::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--coral-400); opacity: 0.18;
}
.phone-card .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.65;
}
.phone-card .route {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.phone-card .city {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.phone-card .arrow {
  flex: 1; height: 1px; background: rgba(255,255,255,0.3); position: relative;
}
.phone-card .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff;
  transform: rotate(45deg);
}
.phone-card .meta {
  margin-top: 14px; font-family: var(--font-mono); font-size: 11px; opacity: 0.85;
}
.phone-card .meta b { color: var(--coral-200); font-weight: 600; }

.phone-tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-top: 14px;
}
.phone-tile {
  background: var(--stone-100); border-radius: 14px;
  padding: 11px 12px;
}
.phone-tile.coral { background: var(--coral-50); }
.phone-tile.forest { background: var(--forest-50); }
.phone-tile .ic {
  width: 28px; height: 28px; border-radius: 9px;
  background: rgba(255,255,255,0.7);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--coral-700);
}
.phone-tile.forest .ic { color: var(--forest-600); }
.phone-tile.neutral .ic { color: var(--fg-2); }
.phone-tile .ttl {
  margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--fg-1);
}
.phone-tile .desc {
  font-size: 10px; color: var(--fg-3); margin-top: 2px;
}

.phone-listing {
  margin-top: 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: 12px 14px;
}
.phone-listing-head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.phone-listing-head .tag {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  background: var(--coral-50); color: var(--coral-700);
}
.phone-listing-head .date {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-3);
  margin-left: auto;
}
.phone-listing-row {
  display: flex; align-items: center; gap: 10px;
}
.phone-listing-row .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-300), var(--coral-500));
  color: #fff; font-family: var(--font-display); font-weight: 600;
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center;
}
.phone-listing-row .name {
  font-size: 12px; font-weight: 600; color: var(--fg-1);
}
.phone-listing-row .sub {
  font-size: 10px; color: var(--fg-3); margin-top: 1px;
}

/* ─── Section base ─────────────────────────────────────────── */
section { padding: 80px 0; }
@media (min-width: 900px) { section { padding: 112px 0; } }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--stone-900);
  margin: 12px 0 0;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px; color: var(--fg-2);
  margin: 16px auto 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ─── Trust & Safety ───────────────────────────────────────── */
.trust { background: var(--bg); }
.trust-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-card {
  background: var(--surface-card);
  border: 1px solid var(--border-1);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-standard),
              box-shadow var(--dur-base) var(--ease-standard);
}
.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.trust-card .ic {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--forest-50); color: var(--forest-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stone-900);
  margin: 0 0 6px;
}
.trust-card p {
  font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 0;
}

/* ─── Testimonials ─────────────────────────────────────────── */
.testimonials { background: var(--stone-100); }
.testi-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}
.testi {
  background: var(--surface-card);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  border: 1px solid var(--border-1);
  display: flex; flex-direction: column; gap: 18px;
}
.testi blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--stone-900);
  text-wrap: pretty;
  flex: 1;
}
.testi blockquote::before {
  content: '"';
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 40px;
  line-height: 0;
  vertical-align: -0.18em;
  margin-right: 4px;
}
.testi-by { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 16px;
  flex-shrink: 0;
}
.testi-avatar.a { background: linear-gradient(135deg, var(--coral-300), var(--coral-500)); }
.testi-avatar.b { background: linear-gradient(135deg, var(--forest-300), var(--forest-500)); }
.testi-avatar.c { background: linear-gradient(135deg, var(--stone-400), var(--stone-600)); }
.testi-name { font-size: 14px; font-weight: 600; color: var(--fg-1); }
.testi-route { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); margin-top: 2px; }

/* ─── FAQ ──────────────────────────────────────────────────── */
.faq { background: var(--bg); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--border-1);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border-1); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stone-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--stone-100);
  background-image:
    linear-gradient(var(--fg-1), var(--fg-1)),
    linear-gradient(var(--fg-1), var(--fg-1));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform var(--dur-base) var(--ease-pop), background-color var(--dur-base);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--brand-soft);
}
.faq-item .answer {
  padding: 0 0 24px;
  max-width: 600px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}

/* ─── Download CTA ─────────────────────────────────────────── */
.download {
  background: var(--forest-700);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  margin: 0 24px 80px;
}
@media (min-width: 768px) {
  .download { margin: 0 40px 96px; border-radius: 40px; }
}
.download-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .download-inner { padding: 112px 64px; }
}
.download::before {
  content: ''; position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: var(--coral-400); opacity: 0.18;
  top: -120px; right: -100px; z-index: 0;
}
.download::after {
  content: ''; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--coral-400); opacity: 0.12;
  bottom: -80px; left: -60px; z-index: 0;
}
.download .eyebrow {
  background: rgba(255,255,255,0.10);
  color: var(--coral-200);
}
.download .eyebrow .dot { background: var(--coral-300); }
.download h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 24px 0 0;
  color: #fff;
  text-wrap: balance;
}
.download p {
  margin: 20px auto 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  text-wrap: pretty;
}
.store-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: 40px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 24px 0 22px;
  border-radius: var(--r-pill);
  background: var(--stone-900); color: #fff;
  transition: transform var(--dur-fast) var(--ease-pop), background var(--dur-base);
}
.store-btn:hover { background: #000; transform: translateY(-1px); }
.store-btn .store-ic { width: 26px; height: 26px; }
.store-btn .col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.store-btn .top { font-size: 11px; font-weight: 500; opacity: 0.75; }
.store-btn .bot { font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }

/* ─── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-1);
  padding: 48px 0 56px;
}
.foot {
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .foot {
    flex-direction: row; align-items: center; justify-content: space-between;
  }
}
.foot-links {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.foot-links a {
  font-size: 14px; color: var(--fg-2);
}
.foot-links a:hover { color: var(--fg-1); }
.foot-copy {
  font-size: 13px; color: var(--fg-3);
  font-family: var(--font-mono);
}
