/* ============================================================
   iOSHA Technology — Apple iPad Pro–inspired design system
   Accent palette sampled from burntOrange.png
   ============================================================ */

:root {
  /* Neutrals (Apple-grade) */
  --ink:        #1d1d1f;
  --ink-2:      #6e6e73;
  --ink-3:      #86868b;
  --line:       #d2d2d7;
  --white:      #ffffff;
  --paper:      #fbfbfd;
  --paper-2:    #f5f5f7;

  /* Dark stages (warm-tinted near-black) */
  --night:      #0b0a08;
  --night-2:    #141210;
  --night-soft: #1e1a14;

  /* Burnt-orange / amber accent (from burntOrange.png) */
  --amber:        #d99a1c;
  --amber-bright: #f4b743;
  --amber-deep:   #9a6a0c;
  --amber-ember:  #c47a14;

  /* Gradients */
  --grad-amber: linear-gradient(118deg, #f6bd49 0%, #d99a1c 46%, #a4700f 100%);
  --grad-stage: radial-gradient(120% 90% at 50% 8%, #3a2c11 0%, #1a140c 46%, #0b0a08 100%);

  --maxw: 1024px;
  --pad:  22px;
  --r:    22px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.4;
}

img { max-width: 100%; display: block; }
a { color: var(--amber-ember); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Global navigation (frosted, Apple-thin) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 48px;
  background: rgba(20,18,16,.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s ease;
}
.nav__inner {
  max-width: 1024px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 6px;
  padding: 0 22px;
}
.nav__brand {
  font-size: 19px; font-weight: 600; letter-spacing: -.02em;
  color: #f5f5f7; margin-right: auto;
}
.nav__brand:hover { text-decoration: none; }
.nav__brand b { color: var(--amber-bright); font-weight: 600; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links a {
  color: #d8d4cc; font-size: 12px; font-weight: 400;
  padding: 6px 11px; border-radius: 980px; letter-spacing: -.01em;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.07); }
.nav__links a.is-active { color: var(--amber-bright); }
.nav__buy {
  background: var(--amber); color: #1a1206 !important; font-weight: 600 !important;
  padding: 5px 14px !important;
}
.nav__buy:hover { background: var(--amber-bright); }
.nav__toggle { display: none; }

/* ---------- Hero (dark stage) ---------- */
.hero {
  background: var(--grad-stage);
  color: #f5f5f7; text-align: center;
  padding: 70px 0 0;
  overflow: hidden;
}
.eyebrow {
  font-size: 21px; font-weight: 600; letter-spacing: -.01em;
  background: var(--grad-amber);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 6px;
}
.hero h1 {
  font-size: clamp(44px, 9vw, 96px);
  line-height: .98; font-weight: 600; letter-spacing: -.03em;
  margin: 6px 0 4px;
}
.hero h1 .grad {
  background: var(--grad-amber);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  font-size: clamp(19px, 2.4vw, 26px); color: #cfc9bf; font-weight: 400;
  max-width: 660px; margin: 14px auto 0; letter-spacing: -.01em;
}
.hero__cta { display: flex; gap: 26px; justify-content: center; margin: 26px 0 4px; flex-wrap: wrap; }
.hero__stage {
  margin-top: 30px; position: relative; min-height: 60px;
}
.hero__stage img { margin: 0 auto; }

/* Pill + link buttons (Apple) */
.btn {
  display: inline-block; border-radius: 980px;
  font-size: 17px; font-weight: 400; letter-spacing: -.01em;
  padding: 8px 22px; cursor: pointer; border: 0;
  transition: filter .2s, background .2s;
}
.btn--amber { background: var(--amber); color: #1a1206; }
.btn--amber:hover { background: var(--amber-bright); text-decoration: none; }
.btn--ghost { background: transparent; border: 1px solid rgba(245,245,247,.4); color: #f5f5f7; }
.btn--ghost:hover { background: rgba(245,245,247,.12); text-decoration: none; }
.link {
  font-size: 17px; color: var(--amber-bright); letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 3px;
}
.link:hover { text-decoration: none; filter: brightness(1.12); }
.link::after { content: "›"; font-size: 19px; transform: translateY(-1px); }
.link--dark { color: var(--amber-ember); }

/* ---------- Highlights sticky strip (amber) ---------- */
.highlights {
  position: sticky; top: 48px; z-index: 90;
  background: var(--amber);
  color: #2a1d05;
}
.highlights__inner {
  max-width: 1024px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 8px 22px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.01em;
  overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none;
}
.highlights__inner::-webkit-scrollbar { display: none; }
.highlights b { font-weight: 700; }
.highlights__lead { font-weight: 700; margin-right: 2px; white-space: nowrap; }
.highlights span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.highlights span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #2a1d05; display: inline-block;
}

/* ---------- Generic feature section ---------- */
.section { padding: 90px 0; text-align: center; }
.section--dark { background: var(--night); color: #f5f5f7; }
.section--warm { background: var(--grad-stage); color: #f5f5f7; }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }

.kicker {
  font-size: 19px; font-weight: 600; color: var(--amber-ember);
  letter-spacing: -.01em; margin: 0 0 8px;
}
.section--dark .kicker, .section--warm .kicker { color: var(--amber-bright); }

.headline {
  font-size: clamp(32px, 5.2vw, 56px); line-height: 1.05;
  font-weight: 600; letter-spacing: -.025em; margin: 0 auto 18px;
  max-width: 14ch;
}
.headline .grad {
  background: var(--grad-amber);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-2);
  max-width: 600px; margin: 0 auto 26px; letter-spacing: -.01em;
}
.section--dark .lede, .section--warm .lede { color: #c4beb4; }
.section__links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }

.section__media { margin-top: 44px; }
.section__media img { margin: 0 auto; border-radius: var(--r); }

/* ---------- Feature tiles grid (bento) ---------- */
.bento {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; margin-top: 48px; text-align: left;
}
.tile {
  background: var(--white); border-radius: var(--r);
  padding: 40px; min-height: 260px;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  position: relative; overflow: hidden;
}
.tile--amber { background: var(--grad-amber); color: #1a1206; }
.tile--ink   { background: var(--night-2); color: #f5f5f7; }
.tile__tag {
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--amber-ember); margin: 0 0 10px;
}
.tile--amber .tile__tag { color: #5c3d05; }
.tile--ink .tile__tag { color: var(--amber-bright); }
.tile h3 {
  font-size: 26px; font-weight: 600; letter-spacing: -.02em;
  margin: 0 0 10px; line-height: 1.12;
}
.tile p { font-size: 16px; color: var(--ink-2); margin: 0; letter-spacing: -.01em; }
.tile--amber p { color: #4a3208; }
.tile--ink p { color: #b9b3a8; }
.tile__spacer { flex: 1; }

/* ---------- Product line-up cards ---------- */
.lineup {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 50px;
}
.card {
  background: var(--white); border-radius: var(--r);
  padding: 34px 24px; text-align: center;
  box-shadow: 0 2px 14px rgba(0,0,0,.05);
  display: flex; flex-direction: column;
}
.card__chip {
  align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #1a1206; background: var(--amber);
  padding: 4px 11px; border-radius: 980px; margin-bottom: 16px;
}
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.card .card__std { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; min-height: 38px; }
.card p { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; flex: 1; letter-spacing: -.01em; }
.card .link { font-size: 15px; justify-content: center; }

/* ---------- Device frame (iPhone) for screenshots ---------- */
.device {
  width: 290px; margin: 0 auto;
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #2a2722, #0c0b09);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
  position: relative;
}
.device::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #0b0a08; border-radius: 18px; z-index: 3;
}
.device__screen {
  border-radius: 34px; overflow: hidden; background: #1a140c;
  aspect-ratio: 660 / 1434;
}
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* video "in action" duo (iPad + iPhone playing together) */
.video-duo {
  display: flex; align-items: center; justify-content: center;
  gap: 34px; flex-wrap: wrap; margin-top: 44px;
}
.video-duo .device--ipad { max-width: 620px; flex: 0 1 620px; }
.video-duo .device { width: 232px; flex: 0 0 232px; }
@media (max-width: 760px) {
  .video-duo .device--ipad { flex-basis: 100%; }
  .video-duo .device { width: 210px; }
}

/* showcase rows (alternating) on eRef */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 40px; padding: 80px 0; text-align: left;
}
.showcase--rev .showcase__copy { order: 2; }
.showcase__copy h3 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 600; letter-spacing: -.025em;
  margin: 0 0 14px; line-height: 1.08;
}
.showcase__copy h3 .grad {
  background: var(--grad-amber); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.showcase__copy p { font-size: 18px; color: var(--ink-2); margin: 0 0 14px; letter-spacing: -.01em; }
.showcase--dark { color: #f5f5f7; }
.showcase--dark p { color: #c4beb4; }
.showcase__stage {
  display: grid; place-items: center; padding: 30px;
  border-radius: var(--r);
  background: var(--grad-stage);
}
.showcase__stage--pair {
  grid-template-columns: 1fr 1fr; gap: 18px; place-items: center;
}
.showcase__stage--pair .device { width: 210px; }

/* ---------- Legal / prose (privacy) ---------- */
.legal { max-width: 760px; margin: 0 auto; text-align: left; }
.legal .legal__meta { color: var(--ink-3); font-size: 14px; margin: 0 0 6px; }
.legal h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 40px 0 10px; color: var(--ink); }
.legal h3 { font-size: 18px; font-weight: 600; margin: 24px 0 6px; color: var(--ink); }
.legal p, .legal li { font-size: 16px; color: var(--ink-2); line-height: 1.72; letter-spacing: -.005em; }
.legal ul { padding-left: 20px; margin: 8px 0 16px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--amber-ember); }

/* ---------- iPad (landscape) device frame ---------- */
.device--ipad {
  width: 100%; max-width: 560px; margin: 0 auto;
  border-radius: 30px; padding: 12px;
  background: linear-gradient(160deg, #2c2922, #0c0b09);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
  position: relative;
}
.device--ipad::before { display: none; }
.device--ipad .device__screen {
  border-radius: 18px; aspect-ratio: 2752 / 2064;
}

/* ---------- Merge (device-family) composite image ---------- */
.merge-img {
  width: 100%; max-width: 920px; margin: 0 auto; display: block;
  border-radius: var(--r);
}
.merge-stage { background: transparent; }

/* eRef gallery grid of all screens */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin-top: 50px;
}
.gallery .device { width: 100%; }
.gallery figure { margin: 0; }
.gallery figcaption {
  text-align: center; font-size: 14px; color: var(--ink-2);
  margin-top: 14px; letter-spacing: -.01em;
}
/* iPad gallery (2-up, wider tiles) */
.gallery--ipad { grid-template-columns: repeat(2, 1fr); gap: 30px; }
.gallery--ipad .device--ipad { max-width: 100%; }

/* catalog list (e-Reference titles) */
.catalog { margin-top: 46px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; text-align: left; }
.catalog a {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 3px;
  transition: border-color .2s, transform .2s;
}
.catalog a:hover { text-decoration: none; border-color: var(--amber); transform: translateY(-2px); }
.catalog .cat__code { font-size: 13px; font-weight: 700; color: var(--amber-ember); letter-spacing: .02em; }
.catalog .cat__name { font-size: 15px; color: var(--ink); letter-spacing: -.01em; }

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 40px; text-align: left; }
.faq__cat {
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--amber-ember); margin: 38px 0 8px;
}
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 2px;
  font-size: 19px; font-weight: 500; letter-spacing: -.01em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--amber-ember); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 2px 20px; font-size: 17px; color: var(--ink-2); line-height: 1.5; max-width: 70ch; }

/* ---------- Contact form ---------- */
.form { margin-top: 36px; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto; }
.form label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin: 18px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217,154,28,.2);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { margin-top: 26px; }
.form .req { color: var(--amber-ember); }

.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 40px; text-align: left; }
.info-grid .card { padding: 28px; text-align: left; }
.info-grid h4 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.01em; }
.info-grid p { font-size: 15px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ---------- Footer (Apple multi-column) ---------- */
.foot { background: var(--paper-2); color: var(--ink-3); font-size: 12px; }
.foot__top { max-width: 1024px; margin: 0 auto; padding: 40px 22px 22px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.foot__cols h5 { font-size: 12px; color: var(--ink); margin: 0 0 12px; }
.foot__cols a { display: block; color: var(--ink-2); margin: 8px 0; font-size: 12px; }
.foot__cols a:hover { color: var(--amber-ember); text-decoration: none; }
.foot__rule { border: 0; border-top: 1px solid var(--line); margin: 26px 0 18px; }
.foot__legal { max-width: 1024px; margin: 0 auto; padding: 0 22px 40px; line-height: 1.7; }
.foot__legal .foot__brand { color: var(--ink); font-weight: 600; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .bento, .lineup, .gallery, .catalog, .info-grid { grid-template-columns: 1fr 1fr; }
  .gallery--ipad { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 30px; padding: 56px 0; text-align: center; }
  .showcase--rev .showcase__copy { order: 0; }
  .showcase__copy p { margin-left: auto; margin-right: auto; max-width: 52ch; }
  .lineup { grid-template-columns: 1fr 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .nav__links a:not(.nav__buy) { display: none; }
  .bento, .gallery, .catalog, .lineup, .info-grid { grid-template-columns: 1fr; }
  .highlights__inner { gap: 10px 18px; font-size: 13px; }
  .hero { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
