/* TerraVex marketing site. "Clear emerald": white and soft green surfaces, deep emerald accent, one dark band. */
:root {
  --emerald: #047857;
  --emerald-dark: #065f46;
  --emerald-deep: #052e22;
  --mint: #ecfdf5;
  --mint-2: #d1fae5;
  --mint-3: #a7f3d0;
  --ink: #0f1f1a;
  --soft: #46564f;
  --line: #dbe7e1;
  --bg: #fbfdfc;
  --card: #ffffff;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--emerald); }
h1, h2, h3 { font-family: Sora, Inter, sans-serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 14px; }
h1 { font-size: clamp(36px, 5.2vw, 58px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0 0 14px; color: var(--soft); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow-wrap { max-width: 760px; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--emerald); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow.light { color: var(--mint-3); }
.fine { font-size: 13px; color: var(--soft); }
.ic { width: 18px; height: 18px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--emerald); color: #fff; border: 0; border-radius: 10px; padding: 13px 22px; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--emerald-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-xs { padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--emerald); box-shadow: inset 0 0 0 1.5px var(--emerald); }
.btn-ghost:hover { background: var(--mint); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 253, 252, 0.9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 20px Sora, sans-serif; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: auto; height: 30px; }
.links { display: flex; gap: 20px; margin-left: auto; }
.links a { color: var(--soft); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.links a:hover { color: var(--emerald); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1100px 520px at 90% -10%, var(--mint-2), transparent 60%), linear-gradient(180deg, var(--mint), var(--bg) 85%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--soft); }
.hero-points .ic { color: var(--emerald); margin-top: 3px; }
.hero-visual { position: relative; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(6, 95, 70, 0.35), 0 2px 6px rgba(15, 31, 26, 0.06); }
.shot figcaption { padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--soft); border-top: 1px solid var(--line); }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 18px 40px -18px rgba(6, 95, 70, 0.45); width: 270px; font-size: 13px; }
.float-a { left: -28px; bottom: 36px; }
.float-b { right: -18px; top: -22px; width: 250px; }

/* Shared UI vignette bits */
.ui-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 24px 50px -28px rgba(6, 95, 70, 0.4), 0 2px 6px rgba(15, 31, 26, 0.05); font-size: 14px; }
.ui-card.small { margin-top: 14px; padding: 12px 16px; }
.ui-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ui-row { display: flex; align-items: center; gap: 8px; }
.ui-row .ic { color: var(--emerald); }
.ui-row strong { flex: 1; }
.ui-sub { color: var(--soft); font-size: 12.5px; margin-top: 2px; }
.ui-muted { color: var(--soft); font-size: 12.5px; }
.ui-amt { font-family: Sora, sans-serif; font-weight: 700; color: var(--ink); }
.ui-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ui-dot.ok { background: var(--emerald); }
.ui-pills, .ui-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--emerald-dark); font-size: 11.5px; font-weight: 600; }
.pill.ok { background: var(--mint-2); }
.pill.warn { background: var(--amber-bg); color: var(--amber); }
.ui-bar { height: 6px; border-radius: 999px; background: var(--mint); overflow: hidden; margin-top: 8px; }
.ui-bar span { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.ui-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ui-line small { display: block; color: var(--soft); font-size: 12px; font-weight: 400; }
.ui-line b { font-family: Sora, sans-serif; white-space: nowrap; }
.ui-line b small { display: inline; }
.ui-line.total { border-top: 2px solid var(--ink); font-weight: 600; }
.ui-approve { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--mint); color: var(--emerald-dark); font-size: 12.5px; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.stats b { display: block; font-family: Sora, sans-serif; font-size: 18px; }
.stats span { font-size: 12px; color: var(--soft); }

/* Week vignette */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.day { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; min-height: 120px; }
.dname { display: block; font-size: 11px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ev { display: block; font-style: normal; font-size: 10.5px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; margin-bottom: 4px; border-left: 3px solid; }
.ev.a { background: var(--mint-2); border-color: var(--emerald); color: var(--emerald-deep); }
.ev.b { background: #e0f2fe; border-color: #0369a1; color: #0c3d5e; }

/* Phone vignette */
.vig-phone { display: flex; justify-content: center; }
.phone { width: 300px; background: #fff; color: var(--ink); border-radius: 34px; padding: 18px 18px 20px; border: 8px solid #122b23; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); font-size: 13px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.ph-title { font-family: Sora, sans-serif; font-weight: 700; font-size: 17px; }
.ph-sub { color: var(--soft); font-size: 12px; margin: 2px 0 12px; }
.ph-list { list-style: none; padding: 0; margin: 0 0 12px; }
.ph-list li { position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--line); }
.ph-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.ph-list li.done::before { background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--emerald); }
.ph-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.ph-photos span { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #9fb3a8, #6e8a7c); }
.ph-photos span.add { background: var(--mint); color: var(--emerald); display: grid; place-items: center; font-weight: 700; }
.ph-btn { background: var(--emerald); color: #fff; text-align: center; border-radius: 10px; padding: 11px; font-weight: 600; }

/* Chat vignette */
.chat { display: grid; gap: 8px; max-width: 420px; margin: 0 auto; }
.bub { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; max-width: 88%; }
.bub.out { background: var(--emerald); color: #fff; border-bottom-left-radius: 4px; justify-self: start; }
.bub.in { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-right-radius: 4px; justify-self: end; }

/* Team vignette */
.course { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.course .ui-bar { margin: 0; }
.course em { font-style: normal; }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding: 16px 20px; font-size: 14px; color: var(--soft); font-weight: 500; }
.strip-label { color: var(--emerald); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--mint); }
.section.dark { background: radial-gradient(900px 500px at 10% 0%, rgba(4, 120, 87, 0.45), transparent 60%), var(--emerald-deep); color: #fff; }
.section.dark h2 { color: #fff; }
.section.dark p { color: rgba(255, 255, 255, 0.78); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks.light li { color: rgba(255, 255, 255, 0.9); }
.ticks.light li::before { background-color: var(--mint-3); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.plan-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.plan-points div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.plan-points strong { display: block; font-family: Sora, sans-serif; margin-bottom: 6px; }
.plan-points span { font-size: 14.5px; color: var(--soft); }

/* Everything grid */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.feat .ic { width: 22px; height: 22px; color: var(--emerald); grid-row: span 2; margin-top: 2px; }
.feat strong { font-size: 15px; }
.feat span { font-size: 13px; color: var(--soft); }

/* Cards */
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.big { padding: 32px; box-shadow: 0 18px 40px -26px rgba(6, 95, 70, 0.35); }
.card.big p { margin: 0; }
.note { max-width: 820px; text-align: center; }
.note h2 { font-size: clamp(22px, 2.8vw, 30px); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--emerald); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; }

/* Early access */
.cta-band { background: linear-gradient(160deg, var(--emerald-dark), var(--emerald)); color: #fff; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { opacity: 0.9; }
.form { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45); display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.form input, .form select, .form textarea { font: 15px Inter, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: transparent; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .fine { margin: 0; color: var(--soft); opacity: 1; }
.form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { padding: 40px 0 28px; border-top: 1px solid var(--line); background: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--soft); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--emerald); }
.foot .brand { font-size: 17px; margin-bottom: 8px; }
.foot .brand img { height: 24px; }

@media (max-width: 1000px) {
  .links { display: none; }
  .nav-row .btn { margin-left: auto; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 2; }
  .gallery, .plan-points { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .float-a { left: 8px; bottom: -18px; }
  .float-b { right: 8px; top: -18px; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .gallery, .plan-points, .grid4, .two-cards, .form .two { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .section { padding: 52px 0; }
  .float { position: static; width: auto; margin-top: 12px; }
  .week { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .ev { font-size: 9px; padding: 3px 4px; }
  .course { grid-template-columns: 1fr 70px auto; }
}

/* The 3D tour clip */
.video-shot { margin: 36px auto 0; max-width: 960px; }
.video-shot video { display: block; width: 100%; height: auto; background: #8e9e94; }
/* Narrow screens: the week grid and cards may never push the page wider than the screen. */
.vig, .ui-card, .day { min-width: 0; }
.day { overflow: hidden; }
.ev { overflow-wrap: anywhere; }

/* Device mockups (PNG with transparency from the real app) */
.phone-fig { margin: 0; display: flex; justify-content: center; }
.phone-fig img { width: 100%; max-width: 330px; height: auto; filter: drop-shadow(0 30px 40px rgba(6, 95, 70, 0.28)); }
.phone-fig figcaption { display: none; }
.phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.phone-row .phone-fig { flex-direction: column; align-items: center; gap: 10px; }
.phone-row .phone-fig img { max-width: 250px; }
.phone-row .phone-fig figcaption { display: block; font-weight: 600; font-size: 14px; color: var(--soft); }
.phone-pair { position: relative; display: flex; justify-content: center; gap: 0; min-height: 560px; }
.phone-pair .phone-fig img { max-width: 280px; }
.phone-pair .phone-fig.back { position: absolute; right: 2%; top: 60px; opacity: 0.95; }
.phone-pair .phone-fig:first-child { position: relative; z-index: 1; margin-right: 26%; }
.hero-phone { position: absolute; left: -36px; bottom: -40px; width: 190px; height: auto; filter: drop-shadow(0 30px 40px rgba(6, 95, 70, 0.35)); }
@media (max-width: 1000px) { .phone-row { grid-template-columns: repeat(2, 1fr); } .hero-phone { left: 8px; bottom: -24px; width: 150px; } }
@media (max-width: 620px) { .phone-row { grid-template-columns: 1fr 1fr; gap: 14px; } .phone-row .phone-fig img { max-width: 100%; } .phone-pair { min-height: 0; flex-direction: column; gap: 16px; } .phone-pair .phone-fig:first-child { margin-right: 0; } .phone-pair .phone-fig.back { position: static; } .hero-phone { display: none; } }

/* Pricing plans */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 32px 0 20px; text-align: left; }
.plan { background: var(--panel, #fff); border: 1px solid var(--line, #dbe6e0); border-radius: 16px; padding: 24px; position: relative; }
.plan.featured { border-color: var(--accent, #047857); box-shadow: 0 10px 30px rgb(4 120 87 / .12); }
.plan .tag { position: absolute; top: -12px; left: 20px; background: var(--accent, #047857); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin: 0; }
.plan h3 { margin: 4px 0 8px; font-size: 20px; }
.plan .price { font-size: 16px; margin: 0; color: var(--muted, #557064); }
.plan .price span { font-size: 36px; font-weight: 700; color: var(--fg, #0f2019); }
.plan .meta { font-size: 13px; color: var(--muted, #557064); margin: 4px 0 14px; }
.plan ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.fine { font-size: 13px; color: var(--muted, #557064); }
