/* Self-hosted Inter (variable, latin subset) — no third-party font requests */
@font-face{
  font-family:'Inter';
  font-style:normal;
  font-weight:300 600;
  font-display:swap;
  src:url('/fonts/inter-latin.woff2') format('woff2');
}

:root{
  --green:#009951;
  --brown:#463529;
  --black:#000000;
  --white:#f8f8f6;
  --line:#d9d9d4;
  --accent: var(--green);
}

body.role-admin {
  --accent: #b83232;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:var(--white);
  color:var(--black);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

.container{
  width:100%;
  padding:0 32px;
}

/* GATEWAY SCREEN */
#password-screen{
  position:fixed;
  inset:0;
  background:var(--white);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.password-box{
  width:100%;
  max-width:420px;
  padding:40px;
  border:1px solid var(--line);
  border-radius:28px;
  background:white;
  text-align:center;
}

.password-logo{
  width:140px;
  margin:0 auto 32px;
}

.password-title{
  font-size:42px;
  letter-spacing:-0.06em;
  margin-bottom:10px;
}

.password-sub{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:#777;
  margin-bottom:28px;
  line-height:1.5;
}

.password-box .role-btn{
  flex:1;
  height:44px;
  border-radius:10px;
  border:1.5px solid #aaa;
  background:#f4f4f0;
  color:#555;
  cursor:pointer;
  font-size:15px;
  letter-spacing:0.08em;
  text-transform:lowercase;
  transition:0.25s ease;
  margin-top:0;
}

.password-box .role-btn.active{
  background:var(--brown);
  color:white;
  border-color:var(--brown);
}

.password-box .role-btn:hover:not(.active){
  background:#ffffff;
}

.input-field{
  width:100%;
  height:52px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#f4f4f0;
  padding:0 48px 0 18px;
  font-size:15px;
  outline:none;
  margin-bottom:12px;
  text-align:center;
  font-family: inherit;
}

.password-wrapper{
  position:relative;
  width:100%;
}

.password-wrapper .input-field{
  padding-right:48px;
}

.password-box .eye-btn{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-60%);
  background:none !important;
  border:none;
  cursor:pointer;
  padding:4px;
  color:#999;
  width:auto;
  height:auto;
  margin:0;
  font-size:inherit;
  letter-spacing:normal;
  text-transform:none;
  border-radius:0;
}

.password-box .eye-btn:hover{
  color:#555;
  background:none !important;
}

.input-field:focus{
  border-color:var(--accent);
}

.password-box button{
  width:100%;
  height:52px;
  border:none;
  border-radius:14px;
  background:var(--brown);
  color:white;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  cursor:pointer;
  transition:0.25s ease;
  margin-top:8px;
}

body.role-admin .password-box button {
  background: #b83232;
}

.password-box button:hover{
  background:var(--black);
}

#error-message{
  margin-top:14px;
  color:#999;
  font-size:13px;
  display:none;
}

/* NAV */
nav{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  color:var(--black);
}

.nav-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 32px;
}

.logo{
  width:150px;
}

.nav-flower{
  width:46px;
  height:auto;
}

/* Beta wordmark — casual Inter text (sits over the brown hero) */
.nav-name{
  font-size:17px;
  font-weight:400;
  letter-spacing:-0.01em;
  color:rgba(255,255,255,0.9);
}

.nav-links{
  display:flex;
  gap:28px;
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  align-items:center;
}

.exit-link{
  font-size:11px;
  letter-spacing:0.1em;
  color:#999;
  transition:0.2s ease;
}

.exit-link:hover{
  color:var(--black);
}

/* HERO */
.hero{
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  padding:140px 32px 48px;
  background:
  linear-gradient(
    180deg,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.04) 100%
  );
  position:relative;
}

.hero-grid{
  width:100%;
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:40px;
  align-items:end;
}

.hero-title{
  font-size:clamp(60px,11vw,180px);
  line-height:0.88;
  letter-spacing:-0.07em;
  font-weight:500;
  text-transform:lowercase;
}

.hero-title span{
  color:var(--accent);
}

.hero-right{
  display:flex;
  flex-direction:column;
  gap:32px;
  max-width:420px;
  justify-self:end;
}

.hero-description{
  font-size:15px;
  line-height:1.6;
  color:#444;
}

.hero--beta .hero-description{
  max-width:460px;
  margin:0 auto 36px;
  color:rgba(255,255,255,0.8);
}

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:48px;
  padding:0 26px;
  border-radius:100px;
  border:1px solid var(--black);
  width:fit-content;
  transition:0.25s ease;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:0.1em;
  cursor: pointer;
}

.button:hover{
  background:var(--black);
  color:white;
}

/* SECTION */
section{
  padding:120px 0;
  border-top:1px solid var(--line);
}

.section-label{
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#777;
  margin-bottom:24px;
}

.section-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:start;
}

.big-text{
  font-size:clamp(32px,5vw,72px);
  line-height:0.98;
  letter-spacing:-0.05em;
  font-weight:500;
  max-width:700px;
}

.muted{
  color:#666;
  font-size:15px;
  line-height:1.7;
}

/* PRODUCT CARD */
.product-card{
  border:1px solid var(--line);
  background:white;
  border-radius:24px;
  overflow:hidden;
}

.product-top{
  aspect-ratio:1/1;
  background:
  radial-gradient(circle at top left, rgba(0,153,81,0.12), transparent 50%),
  radial-gradient(circle at bottom right, rgba(70,53,41,0.12), transparent 50%),
  #f3f3ef;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:80px;
}

body.role-admin .product-top {
  background:
  radial-gradient(circle at top left, rgba(184,50,50,0.15), transparent 50%),
  radial-gradient(circle at bottom right, rgba(0,0,0,0.12), transparent 50%),
  #f3f3ef;
}

.plugin-ui{
  width:100%;
  border-radius:18px;
  background:#111;
  padding:18px;
  box-shadow:0 20px 60px rgba(0,0,0,0.18);
}

.plugin-screen{
  background:#f4f4ef;
  border-radius:12px;
  padding:26px;
  display:grid;
  gap:18px;
}

.plugin-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.knobs{
  display:flex;
  gap:14px;
}

.knob{
  width:44px;
  height:44px;
  border-radius:50%;
  border:2px solid var(--accent);
}

.slider{
  height:6px;
  background:#ddd;
  border-radius:100px;
  overflow:hidden;
  width:100%;
}

.slider::after{
  content:"";
  display:block;
  width:60%;
  height:100%;
  background:var(--accent);
}

.product-bottom{
  padding:32px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
}

.product-name{
  font-size:38px;
  letter-spacing:-0.05em;
  line-height:0.95;
}

.price{
  font-size:14px;
  color:#777;
  margin-top:8px;
}

.buy{
  background:var(--accent);
  color:white;
  border:none;
}

.buy:hover{
  background:var(--brown);
}

/* ADMIN SPECIFIC COMPONENT */
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.metric-card {
  background: white;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.metric-val {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--accent);
}

/* FOOTER */
footer{
  padding:80px 0 40px;
  border-top:1px solid var(--line);
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}

.footer-title{
  font-size:24px;
  margin-bottom:16px;
  letter-spacing:-0.04em;
}

.footer-logo{
  width:150px;
  height:auto;
  margin-bottom:16px;
}

.footer-links{
  display:flex;
  flex-direction:column;
  gap:10px;
  color:#666;
  font-size:14px;
}

.copyright{
  margin-top:80px;
  font-size:12px;
  color:#999;
}

/* RESPONSIVE */
@media(max-width:900px){
  .hero-grid, .section-grid{ grid-template-columns:1fr; }
  .hero-right{ justify-self:start; }
  .hero{ align-items:center; }
  .product-bottom{ flex-direction:column; align-items:flex-start; }
  .nav-links{ display:none; }
  .container{ padding:0 20px; }
  .nav-inner{ padding:20px; }
  .hero{ padding:120px 20px 40px; }
}

/* BETA: simple centered download portal (brown band) */
.hero--beta{
  display:block;
  min-height:auto;
  padding:160px 32px 120px;
  text-align:center;
  background:var(--brown);
  color:#f8f8f6;
  border-top:none; /* kill the global section hairline at the very top */
}

.agromodal-logo{
  width:clamp(300px, 82vw, 1000px);
  height:auto;
  margin:40px auto 40px;
  filter:invert(1); /* black wordmark -> white on the brown hero */
}

.hero--beta .button--download{
  margin-bottom:18px;
}

.hero--beta .button--download:hover{
  background:var(--black);
}

/* quiet meta grouped beneath the download button */
.dl-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}

.format-specs{
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#999;
}

.os-options{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
}

.os-link{
  background:none;
  border:none;
  padding:0;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#bbb;
  cursor:pointer;
  transition:0.2s ease;
  font-family:inherit;
}

.os-link:hover{
  color:#555;
}

.os-link--active{
  color:#444;
  font-weight:500;
}

/* BETA: light foreground for the brown hero */
.hero--beta .eyebrow{ color:rgba(255,255,255,0.55); }
.hero--beta .format-specs{ color:rgba(255,255,255,0.45); }
.hero--beta .os-link{ color:rgba(255,255,255,0.5); }
.hero--beta .os-link:hover{ color:#fff; }
.hero--beta .os-link--active{ color:#fff; }
body.role-beta .exit-link{ color:#2d2119; }
body.role-beta .exit-link:hover{ color:#160f0a; }

/* BETA: eyebrow + download block */
.eyebrow{
  font-size:12px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#777;
  margin-bottom:18px;
}

.button--download{
  height:54px;
  padding:0 34px;
  font-size:14px;
}

/* BETA: install steps */
.steps{
  list-style:none;
  counter-reset:step;
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0 0 24px;
}

.steps li{
  counter-increment:step;
  position:relative;
  padding-left:38px;
  color:#444;
}

.steps li::before{
  content:counter(step);
  position:absolute;
  left:0;
  top:-3px;
  width:26px;
  height:26px;
  border-radius:50%;
  border:1px solid var(--accent);
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
}

.inline-link{
  color:var(--accent);
  border-bottom:1px solid var(--accent);
}

/* ADMIN: release-site draft (rendered in the real green brand) */
.release-draft{
  --accent: var(--green);
}

body.role-admin{
  padding-bottom:44px; /* clearance for the fixed draft banner */
}

.draft-banner{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  z-index:1200;
  background:#b83232;
  color:white;
  text-align:center;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  padding:9px 16px;
}

/* ADMIN: feature grid */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:32px;
}

.feature{
  border-top:1px solid var(--line);
  padding-top:20px;
}

.feature-num{
  font-size:13px;
  color:var(--accent);
  letter-spacing:0.1em;
  margin-bottom:14px;
}

.feature h3{
  font-size:22px;
  letter-spacing:-0.03em;
  font-weight:500;
  margin-bottom:10px;
}

.feature p{
  font-size:14px;
  line-height:1.6;
  color:#666;
}

/* ADMIN: pricing row */
.price-row{
  display:flex;
  align-items:center;
  gap:24px;
  margin-top:32px;
  flex-wrap:wrap;
}

.price-tag{
  font-size:40px;
  letter-spacing:-0.04em;
  font-weight:500;
}

/* MOBILE BLOCK */
#mobile-block{
  display:none;
}

@media(max-width:768px){
  #mobile-block{
    display:flex;
    position:fixed;
    inset:0;
    z-index:999999;
    background:var(--white);
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    padding:40px;
    text-align:center;
  }

  #mobile-block img{
    width:48px;
  }

  #mobile-block p{
    font-size:14px;
    color:#999;
    line-height:1.6;
    max-width:260px;
  }
}
