/* DWG Viewer site: teal hero, app-window mock, icon feature grid. Shared by / and /online-dwg-viewer. */
:root {
  --teal: #1fa5a3;
  --teal-dark: #13807e;
  --teal-deep: #0e5f5e;
  --teal-soft: #e7f6f5;
  --ink: #23292f;
  --body: #4f5a64;
  --faint: #7d8891;
  --line: #e4e9ec;
  --bg: #ffffff;
  --bg-alt: #f5f8f9;
  --sheet: #1d2125;
  --radius: 6px;
  color-scheme: light;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--body); font: 15px/1.65 "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif }
img, svg { display: block; max-width: 100% }
a { color: var(--teal-dark) }
h1, h2, h3 { color: var(--ink); line-height: 1.22; margin: 0 }
p { margin: 0 }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99 }
.skip:focus { left: 8px }
:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border-radius: var(--radius); border: 2px solid transparent; font: 600 15px/1 inherit; font-family: inherit;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s }
.btn svg { width: 18px; height: 18px; flex: none }
.btn:active { transform: translateY(1px) }
.btn-fill { background: var(--teal); color: #fff }
.btn-fill:hover { background: var(--teal-dark) }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7) }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff }
.btn-white { background: #fff; color: var(--teal-dark) }
.btn-white:hover { background: var(--teal-soft) }
.btn-line { background: #fff; color: var(--teal-dark); border-color: var(--teal) }
.btn-line:hover { background: var(--teal-soft) }

/* Top bar: transparent on the teal hero, white once the page scrolls */
.top { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .2s, box-shadow .2s }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap }
.brand img { width: 34px; height: 34px; border-radius: 8px }
.top nav { display: flex; gap: 26px; flex: 1 }
.top nav a { color: rgba(255, 255, 255, .92); text-decoration: none; font-size: 14px; font-weight: 600 }
.top nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px }
.top .btn { min-height: 36px; padding: 0 16px; font-size: 14px }
.top.solid { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(20, 40, 50, .06) }
.top.solid .brand { color: var(--ink) }
.top.solid nav a { color: var(--body) }
.top.solid nav a:hover { color: var(--teal-dark) }
.top.solid .btn-ghost { color: var(--teal-dark); border-color: var(--teal) }
.top.solid .btn-ghost:hover { background: var(--teal-soft) }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 112px 0 0;
  background: linear-gradient(160deg, #27b8b2 0%, var(--teal) 45%, #18908f 100%) }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(#fff 1px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, transparent 80%) }
.hero .wrap { position: relative }
.plus { position: absolute; width: 18px; height: 18px; opacity: .75 }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; left: 8px; top: 0; width: 2px; height: 18px }
.plus::after { transform: rotate(90deg) }

.window { position: relative; max-width: 900px; margin: 0 auto; border-radius: 10px 10px 0 0; overflow: hidden;
  background: #2a2f35; box-shadow: 0 30px 70px rgba(5, 50, 50, .35) }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: #eef1f3; color: #59636c; font-size: 12px; font-weight: 600 }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159 }
.window-bar i:nth-child(2) { background: #ffbd2e }
.window-bar i:nth-child(3) { background: #28c941; margin-right: 8px }
.window-bar img { width: 16px; height: 16px; border-radius: 4px }
.window-bar .url { margin-left: auto; background: #fff; border-radius: 4px; padding: 2px 10px; font-weight: 400; color: var(--faint) }
.window-body { position: relative; display: grid; grid-template-columns: 46px 1fr; background: var(--sheet) }
.rail { display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 16px 0; background: #262b31; border-right: 1px solid #343a41 }
.rail span { width: 22px; height: 22px; border-radius: 5px; background: #3a4149; display: grid; place-items: center }
.rail span.on { background: var(--teal) }
.rail svg { width: 14px; height: 14px; color: #c7d0d8 }
.rail span.on svg { color: #fff }
.sheet { position: relative; min-height: 380px }
.sheet > svg.plan { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55 }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 28px 56px; min-height: 380px }
.hero-copy::before { content: ""; position: absolute; inset: 14% 8%; background: radial-gradient(closest-side, rgba(29, 33, 37, .95), rgba(29, 33, 37, .6) 70%, transparent); z-index: -1 }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 4px; padding: 4px 12px 4px 4px; font-size: 13px; font-weight: 600; margin-bottom: 18px }
.badge b { background: #ef5b4a; color: #fff; border-radius: 3px; padding: 1px 7px; font-size: 11px; letter-spacing: .04em }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.01em; max-width: 14ch }
.hero-copy > p { color: #d7dee4; font-size: 16px; max-width: 46ch; margin-top: 16px }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px }
.hero-meta { margin-top: 16px; font-size: 12.5px; color: #9eaab4; letter-spacing: .02em }
.tool-pill { position: absolute; z-index: 2; display: flex; gap: 2px; background: #31373e; border: 1px solid #434a52; border-radius: 6px; padding: 3px }
.tool-pill span { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #c7d0d8 }
.tool-pill span.on { background: var(--teal); color: #fff }
.tool-pill.tr { top: 16px; right: 16px }
.measure-tag { position: absolute; z-index: 2; left: 20%; bottom: 22%; background: #ffd166; color: #3b2f00; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px }

/* Sections */
section { position: relative }
.sec { padding: 96px 0 }
.sec-alt { background: var(--bg-alt) }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px }
.sec-head h2, .split h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800 }
.sec-head p { margin-top: 12px; color: var(--faint); font-size: 16px }

/* View, measure & share split */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center }
.split-copy h2 { max-width: 13ch }
.split-list { margin-top: 28px; display: grid; gap: 24px }
.split-list h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px }
.split-list p { font-size: 15px }
.split-art { position: relative }

/* Live demo on a teal wave */
.demo { background: var(--teal); padding: 84px 0 0; overflow: hidden }
.demo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: #fff; clip-path: ellipse(80% 100% at 50% 100%) }
.demo .sec-head h2 { color: #fff }
.demo .sec-head p { color: rgba(255, 255, 255, .85) }
.demo .sec-head { margin-bottom: 40px }
.demo .window { position: relative; z-index: 1; max-width: 1040px; border-radius: 10px; margin-bottom: 64px }
.demo-stage { position: relative; height: min(62vh, 560px); min-height: 360px; background: var(--sheet) }
.demo-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 }
.demo-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #d7dee4; text-align: center; padding: 24px }
.demo-cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35 }
.demo-cover .btn { position: relative }
.demo-cover p { position: relative; font-size: 14px }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start }
.feat .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center }
.feat .ico svg { width: 22px; height: 22px }
.feat h3 { font-size: 19px; font-weight: 700; margin: 6px 0 8px }
.feat p { font-size: 14.5px }

/* Devices */
.tabs { display: flex; justify-content: center; gap: 0; margin: 0 auto 40px; width: max-content; max-width: 100%; border-bottom: 2px solid var(--line) }
.tabs button { appearance: none; border: 0; background: none; padding: 12px 22px; margin-bottom: -2px; border-bottom: 2px solid transparent; font: 600 15px inherit; font-family: inherit; color: var(--faint); cursor: pointer }
.tabs button[aria-selected="true"] { color: var(--teal-dark); border-bottom-color: var(--teal) }
.device { display: none; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center }
.device.on { display: grid }
.device h3 { font-size: 26px; font-weight: 800; margin-bottom: 14px }
.device ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px }
.device li { display: flex; gap: 10px; align-items: flex-start }
.device li svg { width: 20px; height: 20px; flex: none; color: var(--teal); margin-top: 2px }
.device-art { display: flex; justify-content: center }
.phones { display: flex; gap: 18px; justify-content: center; align-items: flex-start }
.phones img { width: 46%; height: auto; max-width: 230px; border-radius: 22px; box-shadow: 0 20px 50px rgba(20, 60, 70, .18); background: #fff }
.phones img:nth-child(2) { margin-top: 48px }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none; padding: 8px 18px 8px 14px; border-radius: 8px; min-height: 52px }
.store-badge svg { width: 24px; height: 24px }
.store-badge small { display: block; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .8 }
.store-badge b { display: block; font-size: 17px; line-height: 1.1 }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 30px; background: #fff }
.tier.pro { border: 2px solid var(--teal); box-shadow: 0 16px 40px rgba(31, 165, 163, .12) }
.tier h3 { font-size: 20px; font-weight: 800 }
.tier .price { margin: 6px 0 18px; color: var(--faint) }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px }
.tier li { display: flex; gap: 10px }
.tier li svg { width: 18px; height: 18px; flex: none; color: var(--teal); margin-top: 3px }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto }
.qa { border-bottom: 1px solid var(--line) }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 16.5px; color: var(--ink) }
.qa summary::-webkit-details-marker { display: none }
.qa summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; font-weight: 400 }
.qa[open] summary::after { content: "−" }
.qa .ans { padding: 0 0 20px; max-width: 70ch }

/* Final call */
.final { background: var(--teal); color: #fff; text-align: center; padding: 72px 0 }
.final h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); font-weight: 800 }
.final p { margin-top: 10px; color: rgba(255, 255, 255, .88) }
.final .hero-cta { margin-top: 26px }

/* Footer */
.foot { background: #1f2a30; color: #aab6bf; padding: 56px 0 28px; font-size: 14px }
.foot a { color: #d5dde3; text-decoration: none }
.foot a:hover { color: #fff; text-decoration: underline }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px }
.foot .brand { color: #fff; margin-bottom: 12px }
.foot h4 { margin: 0 0 12px; color: #fff; font-size: 14px }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #33424a; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; color: #8796a1 }

/* Drop overlay, viewer overlay, status */
.dropping::after { content: "Drop the drawing to open it"; position: fixed; inset: 12px; z-index: 50; display: grid; place-items: center;
  border: 3px dashed #fff; border-radius: 14px; background: rgba(19, 128, 126, .88); color: #fff; font-size: 22px; font-weight: 700 }
#app { position: fixed; inset: 0; z-index: 40; display: none; flex-direction: column; background: var(--sheet) }
body.viewing { overflow: hidden }
body.viewing #app { display: flex }
#bar { display: flex; align-items: center; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none }
#bar .home img { width: 30px; height: 30px; border-radius: 7px }
#bar .name { flex: 1; min-width: 80px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
#bar .btn { min-height: 34px; padding: 0 14px; font-size: 14px; border-width: 1px }
#bar .btn[hidden] { display: none }
.seg { display: inline-flex; border: 1px solid var(--teal); border-radius: var(--radius); overflow: hidden; flex: none }
.seg[hidden] { display: none }
.seg button { border: 0; background: #fff; color: var(--teal-dark); padding: 0 14px; min-height: 32px; font: 700 13px inherit; font-family: inherit; cursor: pointer }
.seg button.on { background: var(--teal); color: #fff }
#frame { flex: 1; width: 100%; border: 0; background: var(--sheet) }
#status { position: fixed; left: 50%; top: 50%; z-index: 60; transform: translate(-50%, -50%); display: none; max-width: min(440px, 90vw);
  background: #fff; color: var(--ink); border-radius: 10px; padding: 16px 22px; text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .25) }
#status.shown { display: block }

/* Online viewer page */
.drop { margin: 0 auto; max-width: 820px; border: 2px dashed rgba(255, 255, 255, .7); border-radius: 12px; padding: 44px 24px; text-align: center; background: rgba(255, 255, 255, .06) }
.drop h1 { color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; max-width: none }
.drop > p { color: rgba(255, 255, 255, .9); margin: 12px auto 0; max-width: 52ch }
.drop .formats { margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .75); letter-spacing: .03em }
.hero.compact { padding-bottom: 72px }

@media (max-width: 960px) {
  .top nav { display: none }
  .top .wrap { justify-content: space-between }
  .split, .device { grid-template-columns: 1fr; gap: 40px }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px }
  .foot-grid { grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px }
  .hero { padding-top: 88px }
  .window-body { grid-template-columns: 1fr }
  .rail, .tool-pill, .measure-tag, .window-bar .url { display: none }
  .hero-copy { padding: 44px 18px 40px; min-height: 0 }
  .hero-cta .btn { flex: 1 1 100% }
  .sec { padding: 68px 0 }
  .grid, .plans { grid-template-columns: 1fr }
  .foot-grid { grid-template-columns: 1fr }
  .phones img:nth-child(2) { margin-top: 28px }
  .top .btn { display: none }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } * { transition: none !important } }
