/* PMTech Apps — dark-first studio site. Midnight navy + amber, Sora display type. */
:root {
  --bg: #060b14;
  --bg-2: #0a1220;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #eef2f7;
  --muted: #93a0b4;
  --amber: #f5a524;
  --amber-2: #ffc45c;
  --on-amber: #1a1203;
  --aurora-1: rgba(245, 165, 36, 0.16);
  --aurora-2: rgba(79, 132, 214, 0.14);
  --phone-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
  --display: "Sora", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --text: -apple-system, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fb; --bg-2: #ffffff; --surface: #ffffff; --surface-hover: #ffffff;
    --line: rgba(15, 27, 45, 0.08); --line-strong: rgba(15, 27, 45, 0.18);
    --ink: #0f1b2d; --muted: #5d6676; --amber: #ea9a12; --amber-2: #f8b23a;
    --aurora-1: rgba(245, 165, 36, 0.20); --aurora-2: rgba(79, 132, 214, 0.14);
    --phone-shadow: 0 30px 60px -30px rgba(15, 27, 45, 0.35);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto;
        padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.logo { width: 34px; height: 34px; flex: none; display: block; }
.wordmark { font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.wordmark span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.logo-lg { width: 56px; height: 56px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(20px);
       -webkit-backdrop-filter: saturate(160%) blur(20px);
       background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid var(--line);
       transition: background .3s; }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
       background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 18px; } }

/* Buttons */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h);
       padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
       font: 600 15.5px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
       transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-amber { background: var(--amber); color: var(--on-amber);
             box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-amber:hover { background: var(--amber-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--ink); }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--display);
           letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.eyebrow::before { content: ""; width: 20px; height: 1.5px; border-radius: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.0; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.lead { font-size: clamp(17.5px, 1.6vw, 20px); color: var(--muted); max-width: 34em; margin: 0; text-wrap: pretty; }
.gradient-text { background: linear-gradient(100deg, var(--amber-2) 0%, var(--amber) 45%, #ff8a3d 70%, var(--amber-2) 100%);
                 background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero */
.hero { position: relative; padding: 96px 0 56px; isolation: isolate; }
.aurora { position: absolute; inset: 0 0 -160px; z-index: -1; pointer-events: none; overflow: hidden;
          -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.aurora::before, .aurora::after { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%;
       filter: blur(40px); }
.aurora::before { right: -120px; top: -160px; background: radial-gradient(closest-side, var(--aurora-1), transparent); }
.aurora::after { right: 260px; top: 140px; width: 520px; height: 520px;
                 background: radial-gradient(closest-side, var(--aurora-2), transparent); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14.5px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--amber); }
.hero-phones { position: relative; height: 640px; perspective: 1400px; }
.hero-phones .phone { position: absolute; width: 292px; }
.hero-phones .phone.back { right: 4%; top: 0; --r: 6deg; }
.hero-phones .phone.front { left: 4%; top: 64px; --r: -4deg; }
.hero-phones .phone { transform: rotate(var(--r)); }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 248px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 60px; }
  .hero-phones { height: 460px; }
  .hero-phones .phone { width: 196px; }
}

/* Phone frame */
.phone { border-radius: 46px; padding: 8px; background: linear-gradient(160deg, #2b3546, #0c121b);
         box-shadow: var(--phone-shadow), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone img { border-radius: 39px; width: 100%; height: auto; }

/* Sections */
section.block { padding: 104px 0; }
.section-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 52px; }
.app-intro { display: flex; align-items: center; gap: 18px; }
.app-intro img { width: 72px; height: 72px; border-radius: 18px; }
.app-intro > div { display: grid; gap: 8px; justify-items: start; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
        background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface);
        border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0;
        transition: transform .35s var(--ease), border-color .35s, background .35s; }
.grid .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--amber) 45%, var(--line)); background: var(--surface-hover); }
.card p { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
        background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber);
        border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent); }
.icon svg { width: 21px; height: 21px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; }
.gallery figure { margin: 0; display: grid; gap: 16px; justify-items: center; }
.gallery figcaption { color: var(--muted); font-size: 15px; text-align: center; }
.gallery .phone { width: 100%; max-width: 290px; transition: transform .6s var(--ease); }
.gallery figure:hover .phone { transform: translateY(-6px); }
.gallery figure:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; gap: 44px; }
  .gallery figure:nth-child(2) { transform: none; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1080px; }
@media (max-width: 920px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
        display: grid; gap: 14px; align-content: start; }
.plan.pro { position: relative; border-color: color-mix(in srgb, var(--amber) 50%, transparent);
            background: linear-gradient(170deg, color-mix(in srgb, var(--amber) 12%, transparent), transparent 55%), var(--surface); }
.plan .tag { position: absolute; top: 22px; right: 22px; font: 700 11px/1 var(--display); letter-spacing: .1em;
             text-transform: uppercase; color: var(--on-amber); background: var(--amber); padding: 7px 10px; border-radius: 8px; }
.price { font: 700 42px/1 var(--display); letter-spacing: -0.035em; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: 1px; border-left: 2px solid var(--amber);
                   border-bottom: 2px solid var(--amber); transform: rotate(-45deg) translateY(-3px); }

/* CTA band */
.band { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(36px, 6vw, 72px); text-align: center;
        display: grid; gap: 18px; justify-items: center; background: var(--bg-2); border: 1px solid var(--line); isolation: isolate; }
.band::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
                background: radial-gradient(50% 50% at 50% 0%, var(--aurora-1), transparent 70%); }
.band .lead { margin-bottom: 6px; }

/* Docs (support, privacy) */
.doc-hero { position: relative; padding: 80px 0 32px; isolation: isolate; }
.doc-hero .aurora::after { display: none; }
.doc-hero .aurora::before { right: -220px; top: -260px; }
.doc-hero .wrap { display: grid; gap: 16px; justify-items: start; }
.doc-hero .wrap > * { max-width: 780px; }
.doc { padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 780px) minmax(260px, 320px);
       gap: 40px; justify-content: space-between; align-items: start; }
.doc-main { min-width: 0; }
.doc-aside { position: sticky; top: 88px; display: grid; gap: 14px; }
.doc .card.aside-card { gap: 18px; padding: 24px; justify-items: start; }
.aside-card h3 { margin-top: 2px; }
.aside-card .btn { width: 100%; }
.aside-link { font-size: 14.5px; color: var(--muted); text-decoration: none; justify-self: center; }
.aside-link:hover { color: var(--ink); }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact .icon { margin: 0; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.fact .icon svg { width: 18px; height: 18px; }
.fact strong { display: block; font: 600 15.5px/1.3 var(--display); letter-spacing: -0.01em; }
.fact span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
@media (max-width: 980px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc-aside { position: static; }
}
.doc .card { padding: clamp(24px, 4vw, 40px); gap: 0; }
.doc h2 { font-size: 21px; margin: 34px 0 10px; letter-spacing: -0.015em; }
.doc .card > h2:first-child { margin-top: 0; }
.doc p { color: var(--muted); margin: 0 0 12px; font-size: 17px; text-wrap: pretty; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:first-of-type { border-top: 0; padding-top: 4px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
               font: 600 17.5px/1.35 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--amber);
                      border-bottom: 2px solid var(--amber); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: 12px 0 0; }
.faq details[open] p { animation: fadeDown .35s var(--ease); }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.contact-card .who { flex: 1; min-width: 220px; display: grid; gap: 3px; }
.contact-card .who strong { font: 600 19px/1.3 var(--display); }
.contact-card .who span { color: var(--muted); font-size: 15px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 10px; }

/* Motion */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: no-preference) {
  /* Logo draws its roof lines on load */
  .logo .roof, .logo .ridge { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .9s .15s var(--ease) forwards; }
  .logo .ridge { animation-delay: .45s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* Hero copy rises in */
  .rise { animation: rise .9s var(--ease) both; }
  .rise.d1 { animation-delay: .1s; } .rise.d2 { animation-delay: .2s; } .rise.d3 { animation-delay: .3s; } .rise.d4 { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
  .gradient-text { animation: shine 6s linear infinite; }
  @keyframes shine { to { background-position: -200% 0; } }

  /* Phones fly in, then breathe gently */
  .hero-phones .phone { animation: phoneIn 1.1s var(--ease) both, float 9s ease-in-out 1.2s infinite; }
  .hero-phones .phone.back { animation-delay: .35s, 1.6s; }
  .hero-phones .phone.front { animation-delay: .2s, 1.2s; }
  @keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(calc(var(--r) * 2)) rotateX(14deg); } }
  @keyframes float { 50% { transform: rotate(var(--r)) translateY(-8px); } }

  /* Aurora drifts slowly */
  .aurora::before { animation: driftA 18s ease-in-out infinite alternate; }
  .aurora::after { animation: driftB 22s ease-in-out infinite alternate; }
  @keyframes driftA { to { transform: translate(-80px, 60px) scale(1.1); } }
  @keyframes driftB { to { transform: translate(90px, -40px) scale(.9); } }

  /* Sections reveal on scroll (only when JS is running) */
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; }
  .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; } .js .reveal.d5 { transition-delay: .4s; }
}

/* How it works */
.steps .card { position: relative; }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
          font-weight: 800; font-size: 18px; color: var(--on-amber); background: var(--amber); }

/* Feature rows: phone + copy, alternating sides */
.features { display: grid; gap: 72px; }
.feature { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.feature.flip .phone { order: 2; }
.feature .phone { width: 100%; max-width: 300px; justify-self: center; transition: transform .6s var(--ease); }
.feature:hover .phone { transform: translateY(-6px); }
.feature-copy h3 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; margin: 10px 0 14px; letter-spacing: -0.02em; }
.feature-copy p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 18px; max-width: 560px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.ticks li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--amber); }
@media (max-width: 760px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .phone { order: 0; }
  .feature .phone { max-width: 250px; }
}

/* Home FAQ */
#faq .faq { max-width: 860px; }
.more { margin: 18px 0 0; }
.more a { color: var(--amber); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

.more a svg { width: 16px; height: 16px; }
