/* FlowCAD3D — temporary landing page of flowcad3d.com (website in development) */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
:root { --navy: #0B1E3A; --blue: #0066FF; --cyan: #14C8FF; --white: #FFFFFF; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { min-height: 100svh; background: var(--navy); color: var(--white); font: 500 16px/1.55 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: grid; grid-template-rows: auto 1fr auto; overflow-x: hidden; }
.bg { position: fixed; inset: 0; z-index: -1; }
.bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }
.bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 50%, rgba(11, 30, 58, .86) 0%, rgba(11, 30, 58, .72) 45%, rgba(11, 30, 58, .45) 100%); }
.top { display: flex; align-items: center; justify-content: center; padding: 28px 16px 0; }
.logo { width: clamp(190px, 18vw, 250px); height: auto; display: block; padding: 14px 22px; box-sizing: content-box; border-radius: 16px;
  background: rgba(11, 30, 58, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.login { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 18px; border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px; transition: background .15s, border-color .15s; }
.login:hover, .login:focus-visible { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.card { align-self: center; justify-self: center; width: 100%; max-width: 620px; padding: 24px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
h1 { text-wrap: balance; margin: 0 0 16px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.lede { letter-spacing: .02em; font-weight: 600; margin: 0 auto 30px; font-size: clamp(16px, 1.4vw, 18px); color: rgba(255, 255, 255, .82); max-width: 44ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font-family: inherit; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 102, 255, .35); transition: background .15s, transform .15s; }
.btn:hover, .btn:focus-visible { background: #0052CC; transform: translateY(-1px); }
.btn .ico { flex: none; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.foot { padding: 24px 16px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .6); }
@media (max-width: 720px) {
  .bg img { object-position: 50% 50%; }
  .bg::after { background: linear-gradient(180deg, rgba(11, 30, 58, .6) 0%, rgba(11, 30, 58, .8) 40%, rgba(11, 30, 58, .92) 100%); }
  .btn { width: 100%; justify-content: center; }
  .row { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) { .btn, .login { transition: none; } .btn:hover { transform: none; } }

/* ---------- interactive: pipe route drawing itself, CAD crosshair, parallax ---------- */
.bg img { transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(1.025); transition: transform .25s ease-out; will-change: transform; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.cross { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s; }
.cross.on { opacity: 1; }
.cross .cx, .cross .cy { position: absolute; background: rgba(20, 200, 255, .28); }
.cross .cx { left: 0; right: 0; height: 1px; top: var(--my, -10px); }
.cross .cy { top: 0; bottom: 0; width: 1px; left: var(--mx, -10px); }
.cross .ro { position: absolute; left: calc(var(--mx, -100px) + 12px); top: calc(var(--my, -100px) + 10px); font: 700 10px/1 "Montserrat", sans-serif;
  letter-spacing: .08em; color: rgba(20, 200, 255, .9); background: rgba(11, 30, 58, .55); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
.card, .top, .foot { position: relative; z-index: 2; }
@media (hover: none), (pointer: coarse) { .cross { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .bg img { transform: scale(1.025); transition: none; }
  .net-lit { display: none; }
  .net .flow { animation: none !important; }
  .cross { display: none; }
}

/* ---------- contact form (instead of a mail link) ---------- */
.form { width: 100%; max-width: 620px; text-align: left; display: grid; gap: 14px; margin: 0 auto; padding: 22px; border-radius: 16px;
  background: #0B1E3A; box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.form[hidden], .thanks[hidden] { display: none; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.form label em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .55); }
.form input, .form textarea { width: 100%; font: 500 15px/1.4 "Montserrat", system-ui, sans-serif; color: var(--white); background: #13294A;
  border: 1px solid #3A5378; border-radius: 10px; padding: 12px 14px; outline: none; transition: border-color .15s, background .15s; }
.form textarea { resize: vertical; min-height: 92px; }
.form input::placeholder, .form textarea::placeholder { color: rgba(255, 255, 255, .4); }
.form input:focus, .form textarea:focus { border-color: var(--cyan); background: #172F55; }
.form [aria-invalid="true"] { border-color: #FF6B6B; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .status { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.form .status.err { color: #FF9B9B; }
.btn[disabled] { opacity: .65; cursor: default; transform: none; }
.thanks { margin-top: 4px; padding: 22px 26px; border-radius: 16px; background: #0B1E3A; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.thanks h2 { margin: 0 0 8px; font-size: 22px; }
.thanks p { margin: 0; color: rgba(255, 255, 255, .82); }
body.journey-open { overflow: hidden; }


/* ---------- the pipe network over the whole page: faint, lit up around the mouse (or finger) ---------- */
.net { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.net svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.net-base { opacity: .07; }
.net-lit { -webkit-mask-image: radial-gradient(circle var(--r, 340px) at var(--lx, -999px) var(--ly, -999px), #000 0%, #000 30%, rgba(0, 0, 0, .55) 60%, transparent 100%);
          mask-image: radial-gradient(circle var(--r, 340px) at var(--lx, -999px) var(--ly, -999px), #000 0%, #000 30%, rgba(0, 0, 0, .55) 60%, transparent 100%);
          filter: drop-shadow(0 0 10px rgba(20, 200, 255, .7)); }
.net .p-out { fill: none; stroke: #14C8FF; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; opacity: 1; }
.net .p-in { fill: none; stroke: #0B2A55; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.net .flow { fill: none; stroke: #E6FAFF; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 3 22; animation: flow 1.6s linear infinite; }
.net .fl { fill: #0B2A55; stroke: #14C8FF; stroke-width: 2; }
.net .vl { fill: #0B2A55; stroke: #FFFFFF; stroke-width: 2; }
.net .vl-x { stroke: #FFFFFF; stroke-width: 1.5; }
.net .dim { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.net .dim-t { fill: rgba(255, 255, 255, .9); font: 700 11px "Montserrat", sans-serif; letter-spacing: .1em; }
.net .node { fill: #0B1E3A; stroke: #14C8FF; stroke-width: 2; }
@keyframes flow { to { stroke-dashoffset: -50; } }

/* ---------- the journey behind "Start your journey": the application itself stripped to drawing, contact ---------- */
.journey { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: #081629; color: var(--white);
  animation: j-in .35s ease-out; }
@keyframes j-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.j-bar { flex: none; display: flex; align-items: center; gap: 20px; padding: 12px clamp(16px, 3vw, 32px); background: rgba(11, 30, 58, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.j-logo { height: 34px; width: auto; }
.j-nav { display: flex; gap: 4px; margin-left: auto; }
.j-nav a { color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.j-nav a:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.j-nav a.on { color: var(--white); background: var(--blue); }
.j-close { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: transparent; color: var(--white); cursor: pointer; transition: background .15s; }
.j-close:hover, .j-close:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.j-scroll { flex: 1; overflow-y: auto; scroll-snap-type: y proximity; scroll-behavior: smooth; overscroll-behavior: contain; }
.j-sec { position: relative; min-height: calc(100svh - 66px); scroll-snap-align: start; display: flex; flex-direction: column;
  padding: clamp(20px, 4vh, 44px) clamp(16px, 4vw, 56px); gap: 20px; }
.j-head { text-align: center; max-width: 720px; margin: 0 auto; }
.j-head h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; text-wrap: balance; }
.j-head p { margin: 0; color: rgba(255, 255, 255, .72); text-wrap: balance; }

/* the try-out: the application itself in a frame (play.html) */
.t-frame { position: relative; flex: 1; min-height: max(520px, calc(100svh - 150px)); border-radius: 16px; overflow: hidden; background: #0B1E3A;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.t-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #F4F6F8; opacity: 0; transition: opacity .4s; }
.t-frame.ready iframe { opacity: 1; }
/* full screen: the drawing covers the whole window; Back (in the bar of the drawing) returns to the page */
.t-frame.full { position: fixed; inset: 0; z-index: 30; min-height: 0; margin: 0; border-radius: 0; box-shadow: none;
  height: 100vh; height: 100dvh; background: #0B1E3A; }
.t-frame.full iframe { top: env(safe-area-inset-top, 0px); left: env(safe-area-inset-left, 0px); right: auto; bottom: auto;
  width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.t-status { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: rgba(255, 255, 255, .7); font-weight: 700; }

/* contact */
.j-contact { justify-content: center; }
.j-contact .thanks { max-width: 620px; margin: 0 auto; text-align: center; }

@media (max-width: 720px) {
  .j-bar { gap: 10px; padding: 10px 12px; }
  .j-logo { height: 26px; }
  .j-nav a { padding: 7px 9px; font-size: 13px; }
  .j-sec { min-height: calc(100svh - 58px); padding: 18px 16px; gap: 14px; }
  .t-frame { min-height: calc(100svh - 90px); margin: 0 -8px; }
  .j-contact .btn { width: auto; }
}
@media (max-width: 420px) { .j-logo { display: none; } .j-nav { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .journey { animation: none; } 
  .t-frame iframe { transition: none; } .j-scroll { scroll-behavior: auto; } }

/* while the journey is open, the page behind it is not rendered (no filters, masks or animations competing with the
   try-out, which shares the main thread) */
body.journey-open .bg, body.journey-open .net, body.journey-open .cross, body.journey-open .top, body.journey-open .card,
body.journey-open .foot { display: none !important; }

/* ---------- pricing page (site/pricing.html) ---------- */
.home-links { margin-top: 18px; font-size: 14px; }
.home-links a { color: rgba(255, 255, 255, .82); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.home-links a:hover { color: var(--white); border-color: var(--white); }
.pricing-page .top a { display: inline-block; border-radius: 16px; }
.pricing { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 16px 8px; text-align: center; }
.pricing .lede { margin-bottom: 32px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 16px; background: rgba(11, 30, 58, .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.plan-main { box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 2px var(--blue); }
.plan h2 { margin: 0; font-size: 20px; }
.plan .price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .amount { font-size: 34px; font-weight: 700; line-height: 1.1; }
.plan .per { font-size: 13px; color: rgba(255, 255, 255, .65); }
.plan .for { margin: 0; color: rgba(255, 255, 255, .78); }
.plan ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 2px; background: var(--cyan); border-radius: 2px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
/* Monthly / Yearly (pricing and order page) */
.period { display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto 26px; border-radius: 999px; background: rgba(11, 30, 58, .82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.period button { appearance: none; border: 0; padding: 9px 18px; border-radius: 999px; background: transparent; color: rgba(255, 255, 255, .78);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.period button[aria-checked="true"] { background: var(--blue); color: #fff; }
.period button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.period .save { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 200, 255, .18); color: var(--cyan); font-size: 12px; }
.period button[aria-checked="true"] .save { background: rgba(255, 255, 255, .22); color: #fff; }
.plan .billed { margin: -4px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.plan .billed[hidden] { display: none; }
.order-form .period { margin: 0 0 4px; justify-self: start; }
.pricing .note { margin: 26px auto 0; max-width: 70ch; font-size: 13px; color: rgba(255, 255, 255, .65); }
.foot a { color: inherit; text-decoration: none; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } .plan .btn { align-self: stretch; } }
/* permission for Google Analytics (site/consent.js) */
.consent { position: fixed; z-index: 50; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-radius: 14px; background: rgba(11, 30, 58, .94); color: #FFFFFF; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); font-size: 14px; line-height: 1.45; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { padding: 8px 16px; font-size: 14px; }
.consent .btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #FFFFFF; }
.consent-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- order page (2026.10.69) ---------- */
.order .order-form { max-width: 720px; gap: 18px; }
.order-form fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 14px; }
.order-form legend { padding: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--white); }
.order-form select { width: 100%; font: 500 15px/1.4 "Montserrat", system-ui, sans-serif; color: var(--white); background: #13294A;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 11px 12px; }
.order-form select:focus { border-color: var(--cyan); outline: none; }
.order-form .total { margin: 0; font-size: 15px; }
.order-form .total strong { font-size: 20px; }
.order-form .hint { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }
.order-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; color: rgba(255, 255, 255, .8); }
.order-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.order .thanks { max-width: 720px; margin: 0 auto; text-align: left; }
.order .thanks .hint { margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.order-notice { max-width: 720px; margin: 0 auto 18px; padding: 14px 18px; border-radius: 12px; border-left: 4px solid #FF9B9B;
  background: rgba(255, 155, 155, .14); color: #fff; font-size: 15px; text-align: left; }
.order-notice[hidden] { display: none; }
.order .note a, .foot a { color: inherit; }
@media (max-width: 560px) { .order-form .row { grid-template-columns: 1fr; } }

/* ---------- the film behind "Watch the film" ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.card .btn.ghost { background: rgba(11, 30, 58, .35); border: 1px solid rgba(255, 255, 255, .5); color: var(--white); box-shadow: none; padding: 13px 22px; }
.card .btn.ghost:hover, .card .btn.ghost:focus-visible { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.film { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.film::backdrop { background: rgba(4, 11, 22, .88); }
.film[open] { animation: j-in .3s ease-out; }
.film-box { position: relative; }
.film-video { display: block; height: min(86svh, calc(92vw * 1.25)); width: auto; aspect-ratio: 4 / 5; border-radius: 12px; background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.film-close { position: absolute; top: -14px; right: -14px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35); background: var(--navy); color: var(--white); cursor: pointer; transition: background .15s; }
.film-close:hover, .film-close:focus-visible { background: #172F55; outline: none; }
body.film-open { overflow: hidden; }
@media (max-width: 720px) { .cta { flex-direction: column; width: 100%; } .film-close { top: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { .film[open] { animation: none; } }
