:root {
  color-scheme: light;
  --cream: #f7f5ed;
  --cream-deep: #eeeadf;
  --green: #1e2b1b;
  --accent: #5b7134;
  --text: #20251e;
  --muted: #62675e;
  --line: rgba(30, 43, 27, .12);
  --white: #fffefa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-width: 320px; background: var(--cream); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a7c36d; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); border-radius: 8px; color: white; background: var(--green); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(247, 245, 237, .96); border-bottom: 1px solid rgba(30, 43, 27, .08); backdrop-filter: blur(14px); }
.nav-wrap { width: min(1240px, calc(100% - 48px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; font-size: 21px; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.desktop-nav a, .mobile-nav nav a { color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .mobile-nav nav a:hover, .footer-links a:hover { color: var(--accent); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; top: calc(100% + 12px); right: 0; width: 210px; display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 18px 40px rgba(21, 31, 19, .16); }
.mobile-nav nav a { padding: 11px 12px; border-radius: 9px; }
.mobile-nav nav a:hover { background: var(--cream); }
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 750; text-align: center; text-decoration: none; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(17, 29, 14, .16); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 13px; }
.button-dark { color: white; background: var(--green); }
.button-dark:hover { background: #2b3e25; }
.button-light { color: var(--green); background: var(--white); }
.button-light:hover { background: #e6eddc; }
.button-outline-light { color: white; border-color: rgba(255,255,255,.58); background: rgba(255,255,255,.08); }
.button-outline-light:hover { background: rgba(255,255,255,.18); }

.hero { min-height: 520px; position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; color: white; background: #303c23; }
.hero-backdrop, .device-photo { position: absolute; z-index: -2; inset: 0; background-position: center; background-size: cover; }
.hero-backdrop { background-image: linear-gradient(90deg, rgba(13,22,12,.78) 0%, rgba(17,26,13,.54) 45%, rgba(17,26,13,.08) 100%), linear-gradient(0deg, rgba(12,19,11,.14), transparent 45%), url("/assets/hero-rancho.jpg"); }
.hero-content { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 84px 0 94px; }
.eyebrow { margin: 0 0 14px; color: #c9d3bb; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-green { color: var(--accent); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.4rem, 7vw, 6.4rem); font-weight: 820; line-height: .99; letter-spacing: -.055em; }
.hero-copy { max-width: 535px; margin: 22px 0 25px; color: rgba(255,255,255,.9); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }
.hero-mark { position: absolute; right: max(5vw, calc((100vw - 1240px) / 2)); bottom: 34px; display: grid; gap: 3px; padding: 12px 17px; border-left: 2px solid #a7c36d; color: white; background: rgba(20,30,17,.3); backdrop-filter: blur(5px); }
.hero-mark span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.hero-mark b { font-size: 15px; }
.section-pad { padding: 86px max(24px, calc((100vw - 1240px) / 2)); }
.section-heading { max-width: 740px; margin: 0 auto 38px; text-align: center; }
.section-heading .eyebrow { margin-bottom: 9px; }
h2 { margin: 0; color: var(--green); font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.08; letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.features { background: var(--cream); }
.feature-grid { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 48px 32px; }
.feature-card { flex: 0 0 220px; min-width: 0; text-align: center; }
.phone { width: 200px; margin: 0 auto; padding: 7px; border-radius: 36px; background: var(--green); box-shadow: 0 22px 44px rgba(27, 38, 24, .2), 0 2px 6px rgba(27, 38, 24, .12), inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .35s ease, box-shadow .35s ease; }
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1108; display: block; object-fit: cover; object-position: top; border-radius: 29px; background: #f2f2f7; }
.feature-card:hover .phone { transform: translateY(-6px); box-shadow: 0 30px 54px rgba(27, 38, 24, .24), 0 2px 6px rgba(27, 38, 24, .12), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.feature-copy { padding: 20px 6px 0; }
.feature-icon { display: none; }
.feature-copy h3 { margin: 0 0 6px; color: var(--text); font-size: 16px; line-height: 1.25; }
.feature-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.subscription { padding-top: 76px; padding-bottom: 88px; background: linear-gradient(var(--cream), #f0eee6); }
.subscription-heading { margin-bottom: 32px; }
.plan-grid { max-width: 1240px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(220px, .88fr); align-items: stretch; gap: 14px; }
.plan-card { min-width: 0; position: relative; padding: 24px 24px 22px; display: flex; flex-direction: column; border: 1px solid rgba(30,43,27,.12); border-radius: 20px; background: var(--white); box-shadow: 0 9px 26px rgba(27,38,24,.06); }
.plan-icon { width: 44px; height: 44px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: #e7eddd; }
.plan-icon svg, .step-symbol svg { width: 24px; height: 24px; }
.plan-heading h3 { margin: 0 0 6px; color: var(--text); font-size: 20px; }
.plan-heading p { min-height: 38px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.plan-price { margin: 17px 0 14px; color: var(--green); }
.plan-price strong { font-size: 32px; letter-spacing: -.05em; }
.plan-price span { font-size: 12px; font-weight: 700; }
.plan-card ul { min-height: 136px; margin: 0 0 18px; padding: 0; display: grid; align-content: start; gap: 9px; list-style: none; }
.plan-card li { position: relative; padding-left: 22px; color: var(--text); font-size: 13px; line-height: 1.4; }
.plan-card li::before { position: absolute; left: 0; color: var(--accent); content: "✓"; font-size: 15px; font-weight: 900; }
.button-outline { margin-top: auto; color: var(--green); border-color: rgba(91,113,52,.65); background: transparent; }
.button-outline:hover { background: #edf1e7; }
.plan-card-premium { color: white; border-color: var(--green); background: linear-gradient(155deg, #2c3d26, #172217); }
.plan-card-premium h3, .plan-card-premium .plan-price, .plan-card-premium li { color: white; }
.plan-card-premium .plan-heading p { color: rgba(255,255,255,.78); }
.plan-card-premium .plan-icon { color: #f1cc64; background: rgba(255,255,255,.1); }
.plan-card-premium li::before { color: #c1d88f; }
.popular-badge { position: absolute; top: 19px; right: 18px; padding: 7px 10px; border-radius: 999px; color: #182215; background: #e7c657; font-size: 10px; font-weight: 850; }
.button-plan-light { margin-top: auto; color: var(--green); background: #b1c76d; }
.button-plan-light:hover { background: #c4d985; }
.plan-region { min-height: 100%; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: end; border-radius: 20px; color: white; background: var(--green); }
.region-image { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,22,12,.93), rgba(18,27,14,.15) 100%), url("/assets/ganado.jpg") center / cover; }
.plan-region > div:last-child { position: relative; z-index: 1; padding: 25px; }
.plan-region .eyebrow { color: #d4e3b6; }
.plan-region h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; }
.plan-region p:not(.eyebrow) { color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.5; }
.plan-region a { display: inline-flex; gap: 8px; color: white; font-size: 13px; font-weight: 750; text-decoration: none; }
.plan-region a:hover { text-decoration: underline; }

.steps { background: var(--cream); }
.steps-grid { max-width: 1240px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.steps-grid li { position: relative; min-height: 190px; padding: 14px 28px 20px 58px; border-top: 1px solid var(--line); }
.step-number { position: absolute; top: -20px; left: 15px; width: 38px; height: 38px; display: grid; place-items: center; border: 4px solid var(--cream); border-radius: 50%; color: white; background: var(--accent); font-size: 13px; font-weight: 800; }
.step-symbol { width: 44px; height: 44px; margin: 14px 0 12px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: #e7eddd; }
.steps-grid h3 { margin: 0 0 7px; color: var(--text); font-size: 15px; }
.steps-grid p { max-width: 220px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.devices { min-height: 420px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(300px, .85fr) minmax(450px, 1.15fr); align-items: center; gap: 20px; padding: 64px max(24px, calc((100vw - 1240px) / 2)); background: #ede9de; }
.device-photo { width: 48%; background-image: linear-gradient(90deg, rgba(247,245,237,.25), rgba(247,245,237,.88)), url("/assets/hero-rancho.jpg"); opacity: .72; }
.device-copy { max-width: 520px; position: relative; z-index: 1; }
.device-copy h2 { max-width: 420px; }
.device-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.device-facts { margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 20px; }
.device-facts span { display: grid; gap: 4px; }
.device-facts b { color: var(--green); font-size: 13px; }
.device-facts small { max-width: 125px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.device-mock { min-height: 300px; position: relative; display: flex; align-items: center; justify-content: center; }
.tablet-frame { width: min(76%, 400px); padding: 9px; border-radius: 30px; background: #192018; box-shadow: 0 22px 50px rgba(21,30,17,.28); transform: translateX(46px) rotate(1deg); }
.tablet-frame img { width: 100%; height: auto; display: block; border-radius: 22px; }
.phone-frame { position: absolute; z-index: 2; bottom: -6px; left: 4%; width: 150px; padding: 6px; border-radius: 30px; background: #172017; box-shadow: 0 16px 38px rgba(21,30,17,.3); transform: rotate(-3deg); }
.phone-frame img { width: 100%; height: auto; display: block; border-radius: 25px; }
.phone-weather { margin: 10px 0; padding: 10px 9px; display: flex; justify-content: space-between; border-radius: 9px; color: white; background: linear-gradient(130deg, #72894e, #31442a); font-size: 8px; }
.phone-weather span { font-size: 18px; }
.phone-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.phone-list span { padding: 9px 5px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); font-size: 11px; }
.phone-list b { display: block; margin-top: 4px; color: var(--text); font-size: 8px; }
.phone-nav { margin-top: 10px; display: flex; justify-content: space-around; }
.phone-nav i { width: 10px; height: 3px; border-radius: 9px; background: var(--accent); }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--white); }
.contact h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.contact p:not(.eyebrow) { max-width: 620px; margin: 11px 0 0; color: var(--muted); line-height: 1.6; }
.contact .button { flex: 0 0 auto; margin-top: 0; }
.contact-actions { max-width: 430px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.contact .contact-email { flex-basis: 100%; max-width: none; margin: 6px 0 0; text-align: right; font-size: 13px; }
.contact-email strong { color: var(--text); user-select: all; -webkit-user-select: all; }
.site-footer { padding: 48px max(24px, calc((100vw - 1240px) / 2)) 0; color: rgba(255,255,255,.86); background: var(--green); }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1.5fr 1fr; align-items: start; gap: 28px; padding-bottom: 38px; }
.footer-brand { color: white; font-size: 23px; }
.footer-main > p { margin: 9px 0; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(110px,1fr)); gap: 24px; }
.footer-links div { display: grid; align-content: start; gap: 2px; }
.footer-links a, .footer-langs a, .footer-bottom > a, .footer-email { display: inline-block; padding: 5px 0; }
.footer-links b { margin-bottom: 3px; color: white; font-size: 12px; }
.footer-links a, .footer-email, .footer-bottom a { color: rgba(255,255,255,.76); font-size: 12px; text-decoration: none; }
.footer-email { padding-top: 2px; }
.footer-bottom { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.65); font-size: 11px; }

@media (max-width: 980px) {
  .desktop-nav { gap: 14px; }
  .desktop-nav a { font-size: 12px; }
  .feature-grid { gap: 40px 24px; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-region { min-height: 270px; grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .device-photo { width: 60%; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .nav-wrap { width: calc(100% - 32px); min-height: 64px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .header-cta { min-height: 38px; padding: 0 13px; font-size: 12px; }
  .hero { min-height: 535px; align-items: end; }
  .hero-backdrop { background-image: linear-gradient(0deg, rgba(13,22,12,.86) 0%, rgba(17,26,13,.62) 50%, rgba(17,26,13,.12) 100%), url("/assets/hero-rancho.jpg"); background-position: center; }
  .hero-content { width: calc(100% - 40px); padding: 72px 0 62px; }
  .hero h1 { font-size: clamp(3.15rem, 13vw, 5rem); }
  .hero-copy { max-width: 460px; font-size: 17px; }
  .hero-mark { display: none; }
  .section-pad { padding: 66px 20px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading > p:last-child { font-size: 14px; }
  .feature-grid { margin: 0 -16px; padding: 6px 16px 26px; flex-wrap: nowrap; justify-content: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; }
  .feature-card { flex: 0 0 64%; scroll-snap-align: center; }
  .phone { width: 100%; max-width: 230px; }
  .feature-copy h3 { font-size: 15px; }
  .feature-copy p { font-size: 13px; }
  .subscription { padding: 59px 16px 66px; }
  .plan-grid { grid-template-columns: 1fr; gap: 12px; }
  .plan-card { padding: 22px 20px; }
  .plan-heading p { min-height: 0; }
  .plan-card ul { min-height: 0; }
  .plan-region { min-height: 245px; grid-column: auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .steps-grid li { min-height: 175px; padding: 14px 12px 14px 45px; }
  .step-number { left: 4px; width: 34px; height: 34px; }
  .step-symbol { width: 40px; height: 40px; }
  .steps-grid h3 { font-size: 13px; }
  .steps-grid p { font-size: 12px; }
  .devices { grid-template-columns: 1fr; gap: 12px; padding: 60px 22px 28px; }
  .device-photo { width: 100%; background-image: linear-gradient(90deg, rgba(247,245,237,.72), rgba(247,245,237,.93)), url("/assets/hero-rancho.jpg"); }
  .device-copy { max-width: none; }
  .device-copy h2 { font-size: 2.3rem; }
  .device-facts { gap: 13px; }
  .device-facts span { flex: 1 1 28%; }
  .device-facts small { font-size: 10px; }
  .device-mock { min-height: 265px; margin-top: 5px; }
  .tablet-frame { width: min(74%, 330px); transform: translateX(34px) rotate(1deg); }
  .phone-frame { left: 0; width: 118px; }
  .contact { align-items: flex-start; flex-direction: column; gap: 22px; }
  .contact-actions { justify-content: flex-start; }
  .contact .contact-email { text-align: left; }
  .site-footer { padding: 36px 22px 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 21px 18px; }
  .footer-main > p { grid-column: 1 / -1; margin-top: -12px; }
  .footer-links { grid-column: 1 / -1; gap: 15px; }
  .footer-email { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; padding: 17px 0; font-size: 10px; }
}
@media (max-width: 380px) {
  .header-cta { display: none; }
  .feature-card { flex-basis: 70%; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-links, .footer-email, .footer-main > p { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Language selector */
.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary { min-height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 20; width: 170px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 18px 40px rgba(21, 31, 19, .16); }
.lang-menu nav a { padding: 9px 11px; border-radius: 9px; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.lang-menu nav a:hover, .lang-menu nav a[aria-current] { background: var(--cream); color: var(--accent); }
.footer-langs { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .lang-menu summary { min-height: 36px; padding: 0 10px; font-size: 12px; } .mobile-nav { margin-left: 0; } }

/* Comfortable touch targets for footer links on phones (about 44 px tall). */
@media (max-width: 700px) {
  .footer-links a, .footer-bottom > a, .footer-email { padding: 13px 0; }
  .footer-langs { gap: 4px 18px; }
  .footer-langs a { padding: 12px 0; }
  .footer-links div { gap: 0; }
}
