/* The landing page and the legal pages. */
main { display: block; }

.hero { position: relative; overflow: hidden; padding: 32px 16px 48px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 120%;
  background:
    radial-gradient(45% 40% at 72% 40%, rgba(255, 90, 42, 0.16), transparent 70%),
    radial-gradient(60% 50% at 25% 45%, rgba(31, 58, 102, 0.6), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 1080px; margin: 0 auto;
  display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center;
}
.kicker { margin: 0 0 10px; color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 16px; }
.lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--text-2); margin: 0 0 26px; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }
.fine { color: var(--text-3); font-size: 14px; margin: 16px 0 0; }
.fine.full { flex-basis: 100%; margin: 0; }

/* a phone screenshot in a plain dark frame */
.phone {
  margin: 0; border-radius: 34px; padding: 8px;
  background: #05070a; border: 1px solid #2b3240;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img { width: 100%; height: auto; border-radius: 27px; }
.hero-phone { max-width: 300px; margin: 0 auto; transform: rotate(2deg); }

.head-actions { display: flex; gap: 8px; }

.tour, .detail, .steps, .maker { max-width: 1080px; margin: 0 auto; padding: 48px 16px; }
.tour h2, .detail h2, .steps h2, .yours h2 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -0.015em; }
.section-lede { color: var(--text-2); margin: 0 0 28px; font-size: 17px; }
.tour-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
.tour-item { margin: 0; }
.tour-item .phone { max-width: 270px; margin: 0 auto 16px; }
.tour-item figcaption { color: var(--text-2); font-size: 15px; max-width: 30em; margin: 0 auto; }
.tour-item figcaption b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }

.detail-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; grid-template-columns: 1fr; }
.detail-list li { padding: 16px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.detail-list li b { color: var(--text); }

.step-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.step-list li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.step-list li b { color: var(--text); }
.step-list span {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--accent);
}

.yours { padding: 8px 16px; }
.yours-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.yours p { margin: 0; color: var(--text-2); font-size: 17px; max-width: 40em; }

.maker { text-align: center; }
.maker p { color: var(--text-2); font-size: 17px; max-width: 36em; margin: 0 auto 22px; }

.compare { padding: 24px 16px 40px; }
.compare-inner {
  max-width: 1080px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr; align-items: center;
}
.compare h2 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.015em; }
.compare-copy p { color: var(--text-2); font-size: 17px; margin: 0 0 14px; max-width: 32em; }
.compare-phone { max-width: 290px; margin: 0 auto; transform: rotate(-2deg); }

/* "Try it with your own file": the drop zone and the engine's progress (trial.js) */
.try-link { margin: 18px 0 0; color: var(--text-2); font-size: 15px; }
.beta-ask { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.beta-ask[hidden] { display: none; }
.beta-ask b { color: var(--text); }
.try { padding: 8px 16px 24px; scroll-margin-top: 72px; }
.try-inner {
  max-width: 1080px; margin: 0 auto; padding: 28px 20px;
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.try h2 { font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.015em; }
.try-copy p { color: var(--text-2); font-size: 17px; margin: 0 0 12px; max-width: 34em; }
.try-private b { color: var(--text); }
.try-box { min-width: 0; }
.try-box .fine { margin-top: 12px; }
.try-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  position: relative; min-height: 170px; padding: 20px; text-align: center; cursor: pointer;
  border: 2px dashed #3a4352; border-radius: var(--radius); background: var(--bg-2);
  color: var(--text-2); transition: border-color 0.15s, background 0.15s;
}
.try-drop b { color: var(--text); font-size: 17px; }
.try-drop svg { color: var(--accent); }
.try-drop u { color: var(--accent); text-decoration: none; font-weight: 600; }
.try-drop:hover, .try-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.try-drop.busy { opacity: 0.5; pointer-events: none; }
.try-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.try-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.try-status { margin-top: 16px; }
.try-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.try-steps li { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.try-steps li.done { color: var(--text-2); }
.try-steps li.now { color: var(--text); font-weight: 600; }
.try-steps .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.try-steps li.done .dot { background: var(--good); border-color: var(--good); }
.try-steps li.now .dot { border-color: var(--accent); animation: try-pulse 1s ease-in-out infinite alternate; }
.try-steps .secs { color: var(--text-3); font-weight: 400; }
@keyframes try-pulse { from { background: transparent; } to { background: var(--accent); } }
.try-msg { padding: 16px; border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.try-msg b { display: block; color: var(--text); font-size: 17px; }
.try-msg p { color: var(--text-2); margin: 8px 0 0; }
.try-msg .cta { margin-top: 14px; }
.try-msg.good { border-color: rgba(61, 217, 140, 0.45); }
.try-msg.bad { border-color: rgba(255, 107, 90, 0.5); }
.try-msg code { font-family: var(--mono); font-size: 0.9em; background: var(--card); padding: 1px 5px; border-radius: 5px; }
@media (min-width: 900px) {
  .try-inner { grid-template-columns: 1fr 0.9fr; gap: 48px; padding: 36px 36px; align-items: center; }
}

.brand.small { font-size: 16px; }
.brand.small img { height: 20px; }

@media (max-width: 420px) {
  .site-head .brand { font-size: 18px; }
  .head-actions .btn { padding: 0 12px; }
}
@media (min-width: 720px) {
  .tour-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .detail-list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 900px) {
  .hero { padding: 64px 24px 80px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero-phone { max-width: 320px; }
  .compare-inner { grid-template-columns: 1fr 0.8fr; gap: 64px; }
}

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 0 0 18px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: #d6dae1; }
.legal table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; }
.legal code { font-family: var(--mono); font-size: 0.92em; background: var(--card); padding: 1px 5px; border-radius: 5px; }
.legal blockquote { margin: 16px 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); }
.legal .loading { color: var(--text-3); }

/* the trial's drop box speaks to the pointer it has: drag and drop with a mouse, a file
   picker on a touch screen, where nothing can be dropped */
.try-drop .on-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .try-drop .on-mouse { display: none; }
  .try-drop .on-touch { display: block; }
}
