:root {
  --green: #1B4332;
  --green-2: #2D6A4F;
  --green-3: #40916C;
  --mint: #D8F3DC;
  --ink: #1a1a1a;
  --muted: #5f6b64;
  --line: #e3e8e5;
  --bg-soft: #f6f9f7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink); line-height: 1.5; background: #fff; }
img { max-width: 100%; }
a { color: var(--green-2); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 64px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--green); text-align: center; margin-bottom: 12px; }
.lead { text-align: center; color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 56px; }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(27,67,50,0.97); backdrop-filter: saturate(140%) blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.92rem; white-space: nowrap; }
.nav-links a:hover { color: #fff; }
.nav-links .cta { background: #fff; color: var(--green); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
@media (max-width: 1000px) { .nav-links a:not(.cta) { display: none; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--green) 0%, #183c2d 100%); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: flex; align-items: center; gap: 56px; }
.hero-text { flex: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); border-radius: 20px; padding: 5px 14px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 20px; }
.hero p { font-size: 1.12rem; line-height: 1.65; opacity: 0.85; max-width: 540px; margin-bottom: 32px; }
.hero .note { font-size: 0.9rem; opacity: 0.7; margin: 16px 0 0; }
.store-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.22); font-weight: 600; font-size: 0.92rem; padding: 12px 20px; border-radius: 10px; text-decoration: none; transition: background 0.2s; }
.store-btn:hover { background: rgba(255,255,255,0.18); }
.store-btn.primary { background: #fff; color: var(--green); border-color: #fff; }
.store-btn.primary:hover { background: #eef5f0; }
.store-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 860px) {
  .hero .wrap { flex-direction: column; text-align: center; gap: 40px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .store-btns { justify-content: center; }
}

/* Phone frames */
.phone { width: 260px; background: #111; border-radius: 40px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,0.25); flex-shrink: 0; }
.phone img { display: block; width: 100%; border-radius: 31px; }
.phone.sm { width: 220px; border-radius: 34px; padding: 8px; }
.phone.sm img { border-radius: 27px; }

/* Video */
.video { padding: 80px 0 24px; }
.video-frame { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--green); box-shadow: 0 20px 50px rgba(27,67,50,0.2); }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Ranch Assistant */
.assistant { background: var(--green); color: #fff; padding: 88px 0; margin-top: 72px; }
.assistant-kicker { display: flex; justify-content: center; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 18px; padding: 5px 14px 5px 5px; border: 1px solid rgba(255,255,255,0.22); border-radius: 20px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.assistant-kicker span { background: var(--mint); color: var(--green); border-radius: 14px; padding: 2px 10px; font-weight: 800; letter-spacing: 0.06em; }
.assistant h2 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 2.9rem); letter-spacing: -0.02em; max-width: 760px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.assistant .lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; line-height: 1.6; max-width: 700px; margin-bottom: 48px; text-wrap: pretty; }
.assistant-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 980px; margin: 0 auto; }
.assistant-videos[hidden] { display: none; }
.assistant-videos figcaption { text-align: center; font-weight: 600; margin-top: 14px; }
.yt-poster, .yt-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #10291e; box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.yt-poster img, .yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt-poster img { transition: transform 0.3s; }
/* The thumbnails carry their title on the left and a phone on the right: the play button sits on the phone. */
.yt-play { position: absolute; left: 78%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--green-2); border: 3px solid #fff; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,0.35); transition: transform 0.2s; }
.yt-play svg { width: 34px; height: 34px; margin-left: 3px; }
.yt-poster:hover .yt-play, .yt-poster:focus-visible .yt-play { transform: scale(1.08); }
.yt-poster:hover img { transform: scale(1.02); }
.yt-poster:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.quote { max-width: 760px; margin: 64px auto 72px; padding: 40px 32px 32px; text-align: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; }
.quote blockquote::before { content: "\201C"; display: block; height: 0.5em; margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 4.5rem; line-height: 1; color: #95d5b2; }
.quote blockquote p { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.quote figcaption { margin-top: 16px; color: rgba(255,255,255,0.75); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }
.quote figcaption::before { content: "\2014\00a0"; color: #95d5b2; }
/* Tight tracking crowds Devanagari and Chinese. */
:lang(hi) .assistant h2, :lang(hi) .quote blockquote p, :lang(hi) .assistant-kicker,
:lang(zh) .assistant h2, :lang(zh) .quote blockquote p, :lang(zh) .assistant-kicker { letter-spacing: 0; }
.assistant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.assistant-item { text-align: center; display: flex; flex-direction: column; align-items: center; }
.assistant-item h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.assistant-item p { color: rgba(255,255,255,0.78); font-size: 0.95rem; line-height: 1.6; max-width: 300px; }
.assistant .fine { text-align: center; color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 48px; }
@media (max-width: 900px) { .assistant-grid { grid-template-columns: 1fr; gap: 56px; } }
@media (max-width: 720px) {
  .assistant { padding: 64px 0 72px; }
  .assistant .lead { font-size: 1.05rem; margin-bottom: 36px; }
  .assistant-videos { grid-template-columns: 1fr; gap: 28px; }
  .yt-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .yt-play svg { width: 28px; height: 28px; }
  .quote { margin: 48px auto 56px; padding: 32px 20px 24px; }
}

/* Showcase */
.showcase { padding: 96px 0 40px; }
.showcase-row { display: flex; align-items: center; gap: 64px; margin-bottom: 96px; }
.showcase-row.reverse { flex-direction: row-reverse; }
.showcase-text { flex: 1; }
.showcase-text .kicker { color: var(--green-3); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.showcase-text h3 { font-size: 1.6rem; line-height: 1.2; color: var(--green); margin-bottom: 14px; letter-spacing: -0.01em; }
.showcase-text p { color: #4a554f; font-size: 1.02rem; line-height: 1.7; }
.showcase-text ul { margin: 14px 0 0 18px; color: #4a554f; line-height: 1.8; }
@media (max-width: 800px) {
  .showcase-row, .showcase-row.reverse { flex-direction: column; gap: 32px; margin-bottom: 72px; text-align: center; }
  .showcase-text ul { text-align: left; display: inline-block; }
}

/* More screens */
.gallery { display: flex; gap: 28px; overflow-x: auto; padding: 12px 4px 28px; scroll-snap-type: x mandatory; }
@media (min-width: 900px) { .gallery { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 40px; max-width: 840px; margin: 0 auto; } }
.gallery figure { scroll-snap-align: center; text-align: center; }
.gallery figcaption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); font-weight: 600; }

/* Features */
.features { background: var(--bg-soft); padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature-card { background: #fff; padding: 24px; border-radius: 12px; border: 1px solid var(--line); }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.feature-card .tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; color: var(--green-2); background: var(--mint); border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; text-transform: uppercase; }

/* Tutorials (shown once video ids are filled in below) */
.tutorials { padding: 88px 0; }
.tutorial-group { margin-bottom: 40px; }
.tutorial-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 14px; }
.tutorial-group h3 { font-size: 1.05rem; color: var(--green); }
.playlist-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 600; color: var(--green-2); text-decoration: none; }
.playlist-link:hover { text-decoration: underline; }
.playlist-link svg { width: 18px; height: 18px; flex-shrink: 0; align-self: center; }
.tutorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tutorial { display: block; text-decoration: none; color: var(--ink); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: box-shadow 0.2s; }
.tutorial:hover { box-shadow: 0 8px 24px rgba(27,67,50,0.12); }
.tutorial img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--mint); }
.tutorial span { display: block; padding: 10px 12px 12px; font-size: 0.92rem; font-weight: 600; }

/* Pricing */
.pricing { padding: 88px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.price-card { background: #fff; border-radius: 12px; padding: 28px 22px; text-align: center; border: 1px solid var(--line); position: relative; }
.price-card.popular { border-color: var(--green-2); box-shadow: 0 6px 20px rgba(27,67,50,0.1); }
.popular-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 3px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.price-card h3 { font-size: 1rem; }
.price-card .price { font-size: 1.9rem; font-weight: 700; color: var(--green); margin: 10px 0 14px; }
.price-card .price span { font-size: 0.85rem; font-weight: 400; color: #888; }
/* The ranch-terms line under a price. Each card's name, price, note and list share rows across the
   cards (subgrid), and the free plan has an empty note, so the lists line up in every language. */
.price-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.price-note { min-height: 2.7em; margin: -6px auto 16px; max-width: 220px; font-size: 0.86rem; line-height: 1.35; font-weight: 600; color: var(--green-3); text-wrap: balance; }
@media (max-width: 480px) { .price-note { min-height: 0; } .price-note:empty { display: none; } }
.price-card ul { list-style: none; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.price-card li { margin-bottom: 9px; }
.pricing .fine { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 28px; }

/* FAQ */
.faq { background: var(--bg-soft); padding: 88px 0; border-top: 1px solid var(--line); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green-2); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; line-height: 1.65; }

/* Closing call to action */
.closing { background: var(--green); color: #fff; text-align: center; padding: 72px 0; }
.closing h2 { color: #fff; }
.closing p { opacity: 0.8; margin-bottom: 28px; }
.closing .store-btns { justify-content: center; }

footer { background: #142f23; color: rgba(255,255,255,0.6); padding: 36px 0; text-align: center; font-size: 0.86rem; }
footer a { color: rgba(255,255,255,0.82); text-decoration: none; margin: 0 10px; }
footer a:hover { text-decoration: underline; }
footer .footer-links { margin-bottom: 12px; }

/* Language selector */
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.lang svg { width: 16px; height: 16px; flex-shrink: 0; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,0.28); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; }
.lang select option { color: #1a1a1a; }
footer .lang { margin-bottom: 14px; }
header .lang span { display: none; }
/* Phones: the brand may wrap to two lines, the language menu shrinks to a globe button
   (the native picker still opens over it), and the call to action stays on one line. */
@media (max-width: 600px) {
  .nav { gap: 12px; }
  .brand { font-size: 0.95rem; line-height: 1.2; min-width: 0; white-space: normal; }
  .nav-links { gap: 10px; flex-shrink: 0; }
  .nav-links .cta { padding: 7px 12px; font-size: 0.85rem; white-space: nowrap; }
  header .lang { width: 36px; height: 36px; justify-content: center; border: 1px solid rgba(255,255,255,0.28); border-radius: 8px; }
  header .lang select { position: absolute; inset: 0; width: 100%; opacity: 0; }
}
@media (max-width: 350px) { .brand { font-size: 0.85rem; } .brand img { width: 28px; height: 28px; } }
