/* ===== PDC Touch Kiosk — 1920×1080 landscape ===== */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:ital,wght@0,500;0,600;0,700;1,700;1,800&family=Barlow:wght@400;500;600;700&display=swap');

:root{
  --orange:#F0902A;
  --orange-bright:#F6982E;
  --green:#8BC53F;
  --green-pill:#7FBC2E;
  --green-card-a:#3c5d18;
  --green-card-b:#22390d;
  --ink:#0c0c0c;
  --panel:rgba(20,20,20,.78);
  --card:rgba(28,28,28,.86);
  --text:#ffffff;
  --muted:#bdbdbd;
  --line:rgba(255,255,255,.10);
  --sharp:3px;        /* "sharp" cards in the reference screenshots (about/diff content cards) */
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{height:100%;background:#000;overflow:hidden;font-family:'Barlow',system-ui,sans-serif;}

/* Letterbox stage */
#stage{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#000;}
#frame{
  width:1920px;height:1080px;position:relative;overflow:hidden;flex:none;
  transform-origin:center center;
  background:
    linear-gradient(180deg,rgba(8,8,8,.62),rgba(8,8,8,.86)),
    url('assets/bg.png') center 28% / cover no-repeat,#0a0a0a;
}

/* Screens */
.screen{position:absolute;inset:0;padding:64px 84px;display:none;flex-direction:column;opacity:0;}
.screen.active{display:flex;opacity:1;}
@media (prefers-reduced-motion:no-preference){
  .screen.active{animation:fade .45s ease both;}
}
@keyframes fade{from{transform:translateY(16px);}to{transform:none;}}

/* ===== Top chrome ===== */
.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:30px;}
.title{
  font-family:'Barlow Semi Condensed',sans-serif;font-weight:800;font-style:italic;
  color:var(--orange);font-size:62px;line-height:1.05;letter-spacing:.5px;white-space:nowrap;
  text-shadow:0 3px 18px rgba(0,0,0,.6);
}
.title small{display:block;font-size:62px;}
.navbtns{display:flex;gap:18px;flex:none;}
.circle{
  width:74px;height:74px;border-radius:50%;border:2px solid var(--orange);
  background:rgba(10,10,10,.55);color:var(--orange);display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .15s,background .15s;
}
.circle:active{transform:scale(.92);background:rgba(240,144,42,.18);}
.circle svg{width:34px;height:34px;}
.circle.home{border-color:#fff;color:#fff;}
.circle.back{display:none;}        /* landscape uses side pagers; back lives in the top bar only in portrait */

/* ===== Edge pager arrows ===== */
.pager{
  position:absolute;top:50%;transform:translateY(-50%);z-index:30;
  width:84px;height:84px;border-radius:50%;border:2px solid rgba(240,144,42,.65);
  background:rgba(8,8,8,.5);backdrop-filter:blur(4px);color:var(--orange);
  display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s;
}
.pager:active{transform:translateY(-50%) scale(.9);background:rgba(240,144,42,.2);}
.pager svg{width:42px;height:42px;}
.pager.prev{left:26px;}
.pager.next{right:26px;}
.pager.hidden{display:none;}

/* ===== HOME ===== */
#home{
  align-items:center;justify-content:center;text-align:center;gap:0;padding-top:0;
  background:
    linear-gradient(180deg,rgba(6,8,10,.55),rgba(6,8,10,.82)),
    url('assets/home-bg.png') center 42% / cover no-repeat;
}
#home .logo{width:560px;max-width:60%;margin-bottom:88px;filter:drop-shadow(0 8px 30px rgba(0,0,0,.6));}
#home .home-btns{display:flex;gap:56px;}
.home-btn{
  width:480px;height:148px;border-radius:80px;cursor:pointer;
  background:linear-gradient(180deg,#1a2c0c,#0f1d07);
  border:1px solid rgba(240,144,42,.25);
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
  color:#fff;font-family:'Barlow Semi Condensed',sans-serif;font-weight:700;font-size:46px;letter-spacing:.5px;
  box-shadow:0 18px 50px rgba(0,0,0,.55);transition:transform .15s;
}
.home-btn:active{transform:translateY(3px) scale(.99);}
.home-btn::after{content:"";position:absolute;left:14%;right:14%;bottom:20px;height:5px;border-radius:4px;
  background:linear-gradient(90deg,transparent,var(--orange),transparent);}

/* ===== Generic content helpers ===== */
.body-wrap{flex:1;min-height:0;display:flex;flex-direction:column;gap:26px;}
.lead{color:#e9e9e9;font-size:27px;line-height:1.5;max-width:1500px;}
.greenpill{
  align-self:flex-start;background:linear-gradient(180deg,#8ec73f,#6fa823);color:#13230a;
  font-family:'Barlow Semi Condensed',sans-serif;font-weight:700;font-size:27px;white-space:nowrap;
  padding:11px 32px;border-radius:4px;box-shadow:0 6px 18px rgba(0,0,0,.4);
}

/* ===== About ecosystem ===== */
.hero-card{
  display:flex;gap:34px;align-items:center;background:var(--card);border:1px solid var(--line);
  border-left:5px solid var(--orange);border-radius:14px;padding:30px 38px;
}
.hero-card img{height:78px;width:auto;flex:none;border-radius:6px;}
.hero-card p{color:#e6e6e6;font-size:26px;line-height:1.5;}
.sub-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;flex:1;min-height:0;grid-auto-rows:1fr;}
.sub-card{
  background:var(--card);border:1px solid var(--line);border-left:5px solid var(--orange);
  border-radius:var(--sharp);padding:30px 28px;display:flex;flex-direction:column;justify-content:flex-start;gap:20px;
}
.sub-card .logobar{height:46px;display:flex;align-items:center;}
.sub-card .logobar img{height:42px;width:auto;max-width:90%;object-fit:contain;}
.sub-card p{color:#d8d8d8;font-size:21px;line-height:1.45;}

/* ===== Stats ===== */
.stats{display:flex;flex-wrap:wrap;gap:34px 46px;justify-content:center;margin:auto 0;}
.stat{display:flex;flex-direction:column;align-items:center;gap:14px;width:300px;}
.stat .pill{
  background:linear-gradient(180deg,var(--orange-bright),#e07e1f);color:#fff;font-weight:700;
  font-family:'Barlow Semi Condensed',sans-serif;font-size:38px;padding:14px 8px;border-radius:8px;
  width:100%;text-align:center;box-shadow:0 8px 22px rgba(224,126,31,.35);
}
.stat span{color:#fff;font-size:25px;text-align:center;line-height:1.3;font-weight:500;}
.green-banner{
  margin-top:auto;background:linear-gradient(135deg,var(--green-card-a),var(--green-card-b));
  border:1px solid rgba(139,197,63,.4);border-radius:16px;padding:34px 50px;text-align:center;
  color:#fff;font-size:30px;font-weight:600;line-height:1.45;position:relative;
  box-shadow:0 14px 40px rgba(0,0,0,.45);
}
.green-banner::after{content:"";position:absolute;left:30%;right:30%;bottom:14px;height:4px;border-radius:3px;background:linear-gradient(90deg,transparent,var(--orange),transparent);}

/* ===== Differentiation cards ===== */
.diff-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;flex:1;min-height:0;align-items:stretch;align-content:stretch;grid-auto-rows:minmax(0,1fr);}
.diff{display:flex;flex-direction:column;}
.diff .tab{
  align-self:flex-start;background:linear-gradient(180deg,#8ec73f,#6fa823);color:#13230a;
  font-family:'Barlow Semi Condensed',sans-serif;font-weight:700;font-size:25px;
  padding:12px 24px;border-radius:8px;margin-bottom:-10px;position:relative;z-index:2;max-width:96%;
}
.diff .card{
  flex:1;background:linear-gradient(150deg,var(--green-card-a),var(--green-card-b));
  border-radius:var(--sharp);padding:34px 28px 30px;position:relative;overflow:hidden;
  box-shadow:0 12px 32px rgba(0,0,0,.4);
}
.diff .card p{color:#eef3e6;font-size:23px;line-height:1.5;}
.diff .card::after{content:"";position:absolute;left:18px;right:18px;bottom:16px;height:4px;border-radius:3px;background:var(--orange);}

/* ===== Service capability items ===== */
.svc-items{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;}
.svc-item{display:flex;flex-direction:column;gap:12px;}
.svc-ico{
  width:66px;height:66px;border-radius:12px;background:linear-gradient(180deg,var(--orange-bright),#e07e1f);
  display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(224,126,31,.35);
}
.svc-ico svg{width:36px;height:36px;stroke:#fff;}
.svc-item h3{color:var(--orange);font-family:'Barlow Semi Condensed',sans-serif;font-weight:700;font-size:27px;line-height:1.08;}
.svc-item p{color:#dcdcdc;font-size:21px;line-height:1.35;}

/* ===== Bottom hex panel ===== */
.hexpanel{
  flex:1;min-height:0;margin-top:34px;border:1.5px solid rgba(139,197,63,.7);
  border-radius:0 0 28px 28px;                  /* sharp top corners, rounded bottom */
  background:rgba(8,8,8,.42);padding:48px 40px 30px;
  display:flex;flex-direction:column;align-items:center;gap:18px;position:relative;
}
.hexpanel .greenpill{                           /* title = bright lime bar centered ON the top border, white text */
  position:absolute;top:0;left:50%;transform:translate(-50%,-50%);margin:0;
  background:linear-gradient(180deg,#93cd3e,#79b42c);color:#fff;
  border-radius:2px;padding:12px 44px;text-shadow:0 1px 3px rgba(0,0,0,.5);
}
.hexrow{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:26px 26px;width:100%;}
.hexcell{display:flex;flex-direction:column;align-items:center;gap:11px;flex:0 0 calc(33.333% - 18px);min-width:0;max-width:none;}
.hex{
  width:74px;height:82px;display:flex;align-items:center;justify-content:center;flex:none;
  background:linear-gradient(160deg,#8ec73f,#5f9320);
  clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);
  box-shadow:0 8px 20px rgba(0,0,0,.4);
}
.hex svg{width:36px;height:36px;stroke:#fff;fill:none;}
.hexcell .lbl{
  align-self:stretch;                                  /* full column-width bar */
  background:linear-gradient(180deg,#efa959,#e58f3a);color:#2b2105;font-weight:700;
  font-family:'Barlow Semi Condensed',sans-serif;font-size:22px;padding:8px 14px;border-radius:2px;text-align:center;line-height:1.1;
}
/* all service pages share the same orange label bars + dark text (no lime/green variant) */
.hexcell p{color:#f2f2f2;font-size:20px;text-align:center;line-height:1.3;}
.hexcell ul{color:#f2f2f2;font-size:18px;line-height:1.35;text-align:left;padding-left:20px;align-self:center;max-width:100%;margin:0 auto;}
.hexcell ul li{margin:2px 0;}

/* ============================================================
   PORTRAIT — 572×768 vertical clone screen.
   The 4-across grids restack into 1–2 columns and type shrinks so
   each slide still fits one screen without scrolling. JS sets the
   572×768 canvas + .portrait on <body> via scale() (see app.js).
   ============================================================ */
body.portrait .screen{padding:30px 26px;}
body.portrait .topbar{margin-bottom:14px;}
body.portrait .title{font-size:38px;}
body.portrait .title small{font-size:38px;}
body.portrait .title.svc{font-size:27px;}
body.portrait .title.svc small{font-size:27px;}
body.portrait .circle{width:50px;height:50px;}
body.portrait .circle svg{width:24px;height:24px;}
body.portrait .pager{display:none;}             /* no side arrows in portrait — matches mockups, frees card width */
body.portrait .circle.back{display:flex;}       /* top-bar back instead */
body.portrait .circle.back.hidden{display:none;}/* hidden on the first screen of a section */
body.portrait .body-wrap{gap:14px;}
body.portrait .greenpill{font-size:18px;padding:8px 18px;white-space:normal;}

/* Home */
body.portrait #home .logo{width:330px;max-width:78%;margin-bottom:54px;}
body.portrait #home .home-btns{flex-direction:column;gap:24px;}
body.portrait .home-btn{width:420px;max-width:92%;height:100px;font-size:34px;}

/* About — ecosystem */
body.portrait .hero-card{gap:16px;padding:16px 18px;border-left-width:4px;}
body.portrait .hero-card img{height:46px;}
body.portrait .hero-card p{font-size:15px;line-height:1.4;}
body.portrait .sub-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
body.portrait .sub-card{padding:14px 14px;gap:8px;border-left-width:4px;}
body.portrait .sub-card .logobar{height:28px;}
body.portrait .sub-card .logobar img{height:26px;}
body.portrait .sub-card p{font-size:13px;line-height:1.32;}

/* About — profile + stats */
body.portrait .lead{font-size:15px;max-width:none;}
body.portrait .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 12px;margin:auto 0;}
body.portrait .stat{width:auto;gap:7px;}
body.portrait .stat .pill{font-size:20px;padding:9px 6px;}
body.portrait .stat span{font-size:13px;}
body.portrait .green-banner{font-size:16px;padding:16px 22px;}

/* Differentiation */
body.portrait .diff-grid{grid-template-columns:repeat(2,1fr);gap:13px;align-items:stretch;grid-auto-rows:1fr;}
body.portrait .diff .tab{font-size:15px;padding:7px 14px;margin-bottom:-8px;}
body.portrait .diff .card{padding:20px 15px 16px;}
body.portrait .diff .card p{font-size:13px;line-height:1.38;}

/* Services */
body.portrait .svc-items{grid-template-columns:repeat(2,1fr);gap:12px;}
body.portrait .svc-item{gap:6px;}
body.portrait .svc-ico{width:44px;height:44px;border-radius:10px;}
body.portrait .svc-ico svg{width:24px;height:24px;}
body.portrait .svc-item h3{font-size:17px;}
body.portrait .svc-item p{font-size:13px;line-height:1.28;}
body.portrait .hexpanel{padding:38px 14px 14px;gap:8px;border-radius:0 0 18px 18px;margin-top:24px;}
body.portrait .hexrow{flex-wrap:wrap;gap:10px 12px;}
body.portrait .hexcell{flex:0 0 calc(33.333% - 8px);max-width:none;gap:6px;}
body.portrait .hex{width:46px;height:52px;}
body.portrait .hex svg{width:24px;height:24px;}
body.portrait .hexcell .lbl{font-size:12px;padding:4px 9px;}
body.portrait .hexcell p{font-size:11px;line-height:1.22;}
body.portrait .hexcell ul{font-size:10px;line-height:1.22;padding-left:14px;}

/* Two-line title helper for services */
.title.svc{font-size:48px;}
.title.svc small{font-size:48px;}
