/* Motion shared by tryamp.in pages. Ported from Gavel's landing page. */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* Hero entrance: fade up, staggered with --d. Only opacity and transform move,
   so the GPU does the work (an animated blur dropped frames, worst in Safari).
   It waits for EB Garamond so the text doesn't swap fonts mid-animation. */
.land-intro { animation: land-intro 1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.js:not(.ready) :is(.land-intro, .hl) { animation-play-state: paused; }
@keyframes land-intro {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

/* Underline that draws in on hover */
.land-link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(#d4d4d4, #d4d4d4);
  background-repeat: no-repeat;
  background-position: 0 100%, 0 100%;
  background-size: 0% 1px, 100% 1px;
  padding-bottom: 2px;
  transition: background-size .6s var(--ease-out);
}
.land-link:hover { background-size: 100% 1px, 100% 1px; }

/* Header gains a hairline once the page scrolls */
/* Once the page scrolls, content fades out softly under the header instead of
   meeting a hard line. */
[data-header] { position: sticky; top: 0; z-index: 50; background: #fff; }
[data-header]::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none; background: linear-gradient(#fff, rgba(255,255,255,.65) 40%, rgba(255,255,255,0)); opacity: 0; transition: opacity .5s var(--ease-out); }
[data-header][data-scrolled]::after { opacity: 1; }

/* Lenis smooth scrolling (vendor/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Eyebrow: sentence case with a short rule, never uppercase */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: #737373; letter-spacing: 0; text-transform: none; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--rule, #0a0a0a); flex-shrink: 0; }

/* Buttons nudge their arrow on hover */
.btn .arr { display: inline-block; transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translate(2px, -2px); }
/* No press flash: no tap highlight on phones, and focus rings only for keyboards. */
a, button { -webkit-tap-highlight-color: transparent; }
button:focus:not(:focus-visible) { outline: none; }

/* App-window mockups */
.frame { overflow: hidden; border-radius: 12px; border: 1px solid #e5e5e5; background: #f9fafb; box-shadow: 0 32px 64px -32px rgba(15,23,42,.25); text-align: left; user-select: none; }
.frame-bar { display: flex; height: 40px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(229,229,229,.8); padding: 0 16px; font-size: 12px; color: #6b7280; }
.frame-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-body { position: relative; overflow: hidden; }
.pv-caret { animation: pv-blink 1.1s steps(1) infinite; }
@keyframes pv-blink { 50% { opacity: 0; } }
.pv-mark { background-image: linear-gradient(var(--mark, rgba(20,159,94,.22)), var(--mark, rgba(20,159,94,.22))); background-repeat: no-repeat; background-size: 100% 100%; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Hidden start states only apply once JS has marked the page */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal][data-shown] { opacity: 1; transform: none; }
.js .pv-step { opacity: 0; transform: translate3d(0, 6px, 0); }
.js [data-shown] .pv-step { animation: pv-in .8s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.js .pv-mark { background-size: 0% 100%; }
.js [data-shown] .pv-mark { background-size: 100% 100%; transition: background-size 1.4s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-shown] .pv-ping { animation: pv-ping 1.4s var(--ease-out) 2; animation-delay: var(--d, 0ms); }
@keyframes pv-in { to { opacity: 1; transform: none; } }
@keyframes pv-ping { 0% { box-shadow: 0 0 0 0 var(--ping, rgba(20,159,94,.5)); } 100% { box-shadow: 0 0 0 6px rgba(20,159,94,0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .pv-step { opacity: 1 !important; transform: none !important; }
  .js .pv-mark { background-size: 100% 100% !important; }
  .land-intro { opacity: 1; transform: none; }
}

/* One typeface everywhere. EB Garamond has a small x-height, so body text is
   size-adjusted to read like the old sans; headings keep their own scale. */
body { font-size-adjust: 0.5; }
h1, h2, h3, .wordmark, .name, .logo, .n, .main-top .t, .sql { font-size-adjust: none; }

/* Sign-up form, shared by every page */
.signup { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.signup h2 { margin-top: 0; }
.signup .signup-sub { color: var(--muted, #5c5c5c); margin-top: 14px; max-width: 420px; }
.signup .signup-alt { margin-top: 18px; font-size: 15px; color: #8a8a8a; }
.signup .signup-alt a { color: inherit; text-decoration: none; border-bottom: 1px solid #d4d4d4; }
.signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.signup-form input, .signup-form textarea { font: inherit; font-size: 17px; color: #0a0a0a; width: 100%; border: 1px solid #dcdcdc; border-radius: 8px; padding: 12px 14px; background: #fff; transition: border-color .2s, box-shadow .2s; font-size-adjust: inherit; }
.signup-form input::placeholder, .signup-form textarea::placeholder { color: #9a9a9a; }
.signup-form input:focus, .signup-form textarea:focus { outline: none; border-color: #0a0a0a; box-shadow: 0 0 0 3px rgba(10,10,10,.06); }
.signup-form .full { grid-column: 1 / -1; }
.signup-form textarea { resize: vertical; min-height: 92px; }
.signup-form button { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; font: inherit; font-size: 16px; }
.signup-form button:disabled { opacity: .6; cursor: default; }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { grid-column: 1 / -1; font-size: 15px; color: #737373; min-height: 1.4em; }
.form-note.ok { color: #0e7f4a; }
.form-note.err { color: #b91c1c; }
.form-note a { color: inherit; }
.signup-form.sent input, .signup-form.sent textarea, .signup-form.sent button { display: none; }
@media (max-width: 760px) {
  .signup { grid-template-columns: 1fr; gap: 28px; }
  .signup-form { grid-template-columns: 1fr; }
  .signup-form button { justify-self: stretch; text-align: center; justify-content: center; }
}
