/* ==========================================================================
   PlanKea Main Stylesheet (index.html)
   ========================================================================== */

@import url('base.css');

/* Hero Section */
.hero {
  padding: 76px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: 17.5px;
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 13px;
  color: var(--muted);
}

/* Time Compression Card */
.compress-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px 26px;
}

.compress-row {
  margin-bottom: 22px;
}

.compress-row:last-child {
  margin-bottom: 0;
}

.compress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  gap: 12px;
}

.compress-label .val {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.bar-track {
  background: var(--paper-2);
  border-radius: 5px;
  height: 14px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 5px;
}

.bar-fill.long {
  background: #9AA7AC;
  width: 0%;
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}

.bar-fill.short {
  background: var(--brass);
  width: 0%;
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1) 0.25s;
}

.compress-card.in-view .bar-fill.long {
  width: 100%;
}

.compress-card.in-view .bar-fill.short {
  width: 11%;
}

.compress-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--slate);
}

/* Generic Section Layout */
section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: 32px;
  margin-top: 10px;
  color: var(--ink);
}

.section-head p {
  color: var(--slate);
  font-size: 16px;
  margin-top: 14px;
}

/* Trust Banner */
.trust-strip {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip p {
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
}

/* How It Works Flow Component */
.flow {
  display: flex;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
}

.flow-col {
  flex: 1 1 0;
  min-width: 200px;
}

.chip-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slate);
  flex: none;
}

.chip-stack.output .dot {
  background: var(--teal);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  color: var(--muted);
}

.flow-arrow svg {
  width: 24px;
  height: 24px;
}

.flow-step-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
}

.engine-box {
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 120px;
}

.engine-box .mono {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9FB4BC;
  text-transform: uppercase;
}

.engine-box strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
}

.flow-caption {
  margin-top: 28px;
  font-size: 15px;
  color: var(--slate);
  max-width: 700px;
}

/* Execution Support Section */
.exec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.exec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 32, 43, 0.06);
}

.exec-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--slate);
}

.exec-icon svg {
  width: 20px;
  height: 20px;
}

.exec-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}

.exec-card p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}

.compress-stay {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compress-stay .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex: none;
}

/* Platform Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}

.pillar .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--white);
  background: var(--slate);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.pillar:nth-child(2) .tag {
  background: var(--teal);
}

.pillar:nth-child(3) .tag {
  background: var(--brass);
}

.pillar h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.pillar .pillar-sub {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

.pillar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar li {
  font-size: 14.5px;
  color: var(--slate);
  padding-left: 16px;
  position: relative;
}

.pillar li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--line);
  border-radius: 1px;
}

/* Qualification Section */
.qualify {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.qual-card {
  background: var(--slate);
  color: var(--white);
  border-radius: 12px;
  padding: 28px 26px;
}

.qual-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 34px;
  font-weight: 500;
  color: #CFE3D9;
}

.qual-card p {
  margin-top: 10px;
  font-size: 15px;
  color: #E4EBEA;
}

.qualify-foot {
  margin-top: 26px;
  font-size: 15px;
  color: var(--slate);
  max-width: 700px;
}

/* About Grid & Stock Image */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.about-media {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(16, 32, 43, 0.12);
  width: 100%;
}

.about-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.about-media:hover .about-img {
  transform: scale(1.02);
}

.about-copy p {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 16px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Call to Action Banner */
.final-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  padding: 52px 44px;
  text-align: center;
}

.final-cta h2 {
  color: var(--white);
  font-size: 30px;
  margin-bottom: 14px;
}

.final-cta p {
  color: #B7C4C9;
  font-size: 16px;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Cards */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #1E78E0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(30, 120, 224, 0.45);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.contact-card:hover .contact-icon {
  background: #1A68C8;
  box-shadow: 0 12px 36px rgba(30, 120, 224, 0.6);
}

.contact-icon svg {
  width: 38px;
  height: 38px;
  color: #ffffff;
  stroke: #ffffff;
}

.contact-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}

.contact-label {
  font-size: 13px;
  color: #7FA8C2;
  margin-top: -6px;
  font-weight: 500;
}

@media (max-width: 600px) {
  .contact-cards {
    gap: 24px;
  }
  .contact-icon {
    width: 82px;
    height: 82px;
  }
  .contact-icon svg {
    width: 30px;
    height: 30px;
  }
  .contact-value {
    font-size: 13.5px;
  }
}

/* Footer Section */
footer {
  background: var(--ink);
  color: #B7C4C9;
  padding: 54px 0 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
}

.foot-brand .logo {
  color: var(--white);
}

.foot-brand .logo .kea {
  color: var(--brass);
}

.foot-brand .logo-img {
  height: auto;
  width: 200px;
  max-width: 200px;
  object-fit: contain;
}

.foot-brand p {
  font-size: 13.5px;
  color: #8FA0A6;
  margin-top: 14px;
  max-width: 260px;
}

.foot-social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.foot-social a {
  width: 40px;
  height: 40px;
  border: 1px solid #35474F;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.foot-social a:hover {
  border-color: #B7C4C9;
  background: rgba(255, 255, 255, 0.05);
}

.foot-social a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.foot-social svg {
  width: 18px;
  height: 18px;
  fill: #B7C4C9;
  transition: fill 0.2s ease;
}

.foot-social a:hover svg {
  fill: var(--white);
}

.foot-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8FA0A6;
  margin-bottom: 14px;
  font-weight: 500;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-col a {
  text-decoration: none;
  font-size: 14px;
  color: #B7C4C9;
  display: inline-block;
  padding: 2px 0;
  transition: color 0.18s ease;
}

.foot-col a:hover {
  color: var(--white);
}

.foot-col a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.foot-bottom {
  border-top: 1px solid #263640;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #71838A;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Responsive Breakpoints & Device Adaptations
   ========================================================================== */

/* 4K and Ultrawide Displays (> 1440px) */
@media (min-width: 1441px) {
  .wrap {
    max-width: 1240px;
  }
  .hero h1 {
    font-size: 46px;
  }
}

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .logo-img {
    height: auto;
    width: 200px;
    max-width: 200px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero-grid {
    gap: 40px;
  }
}

/* Tablets (<= 900px) */
@media (max-width: 900px) {
  nav.wrap {
    height: 74px;
  }
  .logo-img {
    height: auto;
    width: 180px;
    max-width: 180px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .qualify {
    grid-template-columns: 1fr;
  }
  .exec-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .flow {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg);
    width: 100%;
    height: 32px;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  nav.wrap {
    height: 70px;
    position: relative;
  }
  .logo-img {
    height: auto;
    width: 160px;
    max-width: 160px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(240, 243, 244, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16, 32, 43, 0.1);
    gap: 16px;
    z-index: 100;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    font-size: 16px;
    padding: 8px 0;
    display: block;
    border-bottom: 1px dashed rgba(201, 210, 211, 0.6);
  }
  .nav-links li:last-child a {
    border-bottom: none;
  }
  .menu-toggle {
    display: flex;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p.lede {
    font-size: 16px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .final-cta {
    padding: 40px 24px;
  }
  .final-cta h2 {
    font-size: 26px;
  }
}

/* Small Mobile & Foldables (<= 600px) */
@media (max-width: 600px) {
  .exec-grid {
    grid-template-columns: 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    gap: 20px;
  }
  .contact-icon {
    width: 82px;
    height: 82px;
  }
  .contact-icon svg {
    width: 32px;
    height: 32px;
  }
  .contact-value {
    font-size: 14px;
  }
}

/* Extra Small Devices (<= 480px / 320px) */
@media (max-width: 480px) {
  .logo-img {
    height: auto;
    width: 140px;
    max-width: 140px;
  }
  .nav-right .btn-primary {
    font-size: 13px;
    padding: 8px 14px;
    min-height: 38px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .compress-card {
    padding: 20px 16px;
  }
  .compress-label {
    flex-wrap: wrap;
    gap: 6px;
  }
  .final-cta {
    padding: 32px 18px;
    border-radius: 12px;
  }
  .final-cta h2 {
    font-size: 22px;
  }
  .contact-cards {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .contact-card {
    width: 100%;
    max-width: 320px;
  }
}

/* Compact Mobile Devices (<= 375px - iPhone SE / 12 Mini / Standard Compacts) */
@media (max-width: 375px) {
  .wrap {
    padding: 0 14px;
  }
  nav.wrap {
    height: 66px;
  }
  .logo-img {
    width: 125px;
    max-width: 125px;
  }
  .nav-right {
    gap: 10px;
  }
  .nav-right .btn-primary {
    font-size: 12.5px;
    padding: 6px 10px;
    min-height: 36px;
  }
  .menu-toggle {
    width: 38px;
    height: 38px;
  }
  .menu-toggle svg {
    width: 19px;
    height: 19px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .hero {
    padding: 36px 0 32px;
  }
  .hero h1 {
    font-size: 25px;
    line-height: 1.15;
    margin-bottom: 16px;
  }
  .hero p.lede {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .hero-note {
    font-size: 12px;
  }
  .compress-card {
    padding: 18px 14px 16px;
    border-radius: 10px;
  }
  .compress-label {
    font-size: 12px;
  }
  .compress-label .val {
    font-size: 13px;
  }
  .compress-foot {
    font-size: 12.5px;
    margin-top: 16px;
    padding-top: 14px;
  }
  .compress-stay {
    font-size: 12.5px;
    margin-top: 12px;
    padding-top: 12px;
  }
  section {
    padding: 48px 0;
  }
  .section-head {
    margin-bottom: 30px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head p {
    font-size: 14.5px;
    margin-top: 10px;
  }
  .chip {
    padding: 11px 13px;
    font-size: 13.5px;
  }
  .engine-box {
    padding: 16px 14px;
    min-height: 100px;
  }
  .engine-box strong {
    font-size: 15px;
  }
  .pillar {
    padding: 20px 16px;
  }
  .pillar h3 {
    font-size: 18px;
  }
  .pillar li {
    font-size: 13.5px;
  }
  .qual-card {
    padding: 22px 18px;
  }
  .qual-card .num {
    font-size: 30px;
  }
  .qual-card p {
    font-size: 14px;
  }
  .final-cta {
    padding: 30px 16px;
  }
  .final-cta h2 {
    font-size: 22px;
  }
  .final-cta p {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .contact-icon {
    width: 72px;
    height: 72px;
  }
  .contact-icon svg {
    width: 28px;
    height: 28px;
  }
  .contact-value {
    font-size: 13.5px;
  }
  footer {
    padding: 40px 0 20px;
  }
  .foot-brand p {
    font-size: 13px;
  }
}

/* Extra Compact Devices (<= 350px - Galaxy Fold / Extra Small displays) */
@media (max-width: 350px) {
  .wrap {
    padding: 0 12px;
  }
  .logo-img {
    width: 115px;
    max-width: 115px;
  }
  .nav-right .btn-primary {
    font-size: 11.5px;
    padding: 5px 8px;
    min-height: 34px;
  }
  .hero h1 {
    font-size: 23px;
  }
  .hero p.lede {
    font-size: 14px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .chip {
    font-size: 12.5px;
    padding: 10px 12px;
  }
  .contact-icon {
    width: 64px;
    height: 64px;
  }
  .contact-icon svg {
    width: 24px;
    height: 24px;
  }
  .contact-value {
    font-size: 12.5px;
  }
}
