/* ------------------------------------------------------------------
   OSTO — Coming Soon Landing Page
   ------------------------------------------------------------------ */

:root {
  --navy: #071A58;
  --osto-blue: #458BE8;
  --osto-blue-deep: #2B5FCB; /* darkened for AA text/button contrast on white */
  --cyan: #BCEEF3;
  --lavender: #E8E5FF;
  --white: #FFFFFF;
  --coral: #FF7B65;
  --warm: #FFD44A;

  --ink: var(--navy);
  --ink-soft: #45508A;
  --border-soft: rgba(7, 26, 88, 0.09);
  --shadow-card: 0 20px 40px -24px rgba(7, 26, 88, 0.28);
  --shadow-btn: 0 12px 24px -10px rgba(43, 95, 203, 0.55);

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;

  --max-width: 1240px;
  --radius-card: 20px;
  --radius-btn: 14px;

  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;

  /* single continuous atmosphere behind the whole page — one gradient,
     no per-section backgrounds, so there are no seams between sections */
  background-color: var(--white);
  background-image: linear-gradient(
    170deg,
    rgba(188, 238, 243, 0.5) 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0) 60%,
    rgba(232, 229, 255, 0.4) 82%,
    rgba(188, 238, 243, 0.4) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 800; font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-weight: 700; font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--osto-blue-deep);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 770px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  padding: 0.85em 1.6em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
}

.btn-primary {
  background: var(--osto-blue-deep);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: #234ea8; }

.btn-lg { padding: 1em 2em; font-size: 1.05rem; }
.btn-sm { padding: 0.6em 1.2em; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 20px; width: auto; }

.site-nav {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.site-nav a:hover { border-color: var(--osto-blue-deep); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ---------------- Section basics ---------------- */
main section {
  padding: 88px 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--osto-blue-deep);
  margin: 0 0 0.75em;
}

.section-heading { text-align: center; margin-bottom: 3rem; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}

.hero-body {
  font-size: 1.15rem;
  max-width: 52ch;
}

.hero-cta-row { margin: 1.75rem 0 1rem; }

.hero-support {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(45% 55% at 60% 30%, rgba(69, 139, 232, 0.35), transparent 70%),
    radial-gradient(40% 45% at 30% 70%, rgba(232, 229, 255, 0.8), transparent 70%),
    radial-gradient(35% 40% at 80% 80%, rgba(188, 238, 243, 0.7), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: drift 16s ease-in-out infinite alternate; }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 2%) scale(1.04); }
}

/* ---------------- Phone mockups ---------------- */
.phone {
  position: relative;
  width: 240px;
  height: 490px;
  background: var(--navy);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(7, 26, 88, 0.06);
  z-index: 1;
}
.phone-screen {
  background: var(--white);
  height: 100%;
  border-radius: 28px;
  padding: 22px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.phone-screen.has-image { padding: 0; }
.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-back {
  position: absolute;
  right: 8%;
  top: -18px;
  transform: rotate(4deg) scale(0.92);
  opacity: 0.9;
}
.phone-front {
  position: relative;
  left: -6%;
  transform: rotate(-3deg);
}
@media (prefers-reduced-motion: no-preference) {
  .phone-back, .phone-front { animation: float-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
  .phone-back { animation-delay: 0.15s; }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(24px) rotate(var(--r, 0deg)); }
  to { opacity: 1; }
}

.phone-mini {
  width: 168px;
  height: 340px;
  border-radius: 26px;
  transform: none;
  position: static;
}
.phone-mini .phone-screen { padding: 16px 12px 12px; border-radius: 19px; gap: 8px; }
.phone-mini .phone-screen.has-image { padding: 0; }

/* skeleton UI blocks used inside phone placeholders */
.skel-topbar { display: flex; align-items: center; gap: 8px; }
.skel-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--lavender); flex-shrink: 0; }
.skel-line { display: block; height: 8px; border-radius: 5px; background: var(--border-soft); }
.skel-line-sm { width: 40%; }
.skel-line-md { width: 55%; height: 10px; }
.skel-line-lg { width: 75%; height: 12px; }
.skel-center { margin: 0 auto; }
.skel-card { border-radius: 14px; background: var(--cyan); opacity: 0.55; height: 54px; }
.skel-card-lg { height: 90px; background: var(--lavender); }
.skel-card-media { height: 100px; background: linear-gradient(135deg, var(--cyan), var(--lavender)); opacity: 0.8; }
.skel-card-alert { height: 60px; background: rgba(255, 212, 74, 0.45); }
.skel-row { display: flex; gap: 8px; }
.skel-chip { flex: 1; height: 26px; border-radius: 999px; background: var(--border-soft); }
.skel-navbar { margin-top: auto; display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.skel-navbar span { width: 18px; height: 18px; border-radius: 6px; background: var(--osto-blue); opacity: 0.35; }
.skel-navbar span:first-child { opacity: 0.9; }
.skel-option { height: 40px; border-radius: 12px; background: var(--border-soft); }
.skel-list-row { height: 34px; border-radius: 10px; background: var(--border-soft); }
.skel-contact-row { height: 44px; border-radius: 12px; background: var(--border-soft); position: relative; }

/* ---------------- Value proposition ---------------- */
.value-prop { text-align: center; }
.value-prop h2 { margin-bottom: 0.6em; }
.value-prop p { font-size: 1.1rem; }

/* ---------------- Features ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(69, 139, 232, 0.12);
  color: var(--osto-blue-deep);
  margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-lede { font-weight: 700; color: var(--navy); }

/* ---------------- Product preview ---------------- */
.preview-intro { max-width: 770px; text-align: center; margin: 0 auto 3.5rem; }

.check-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 0.6rem 2.5rem;
  text-align: left;
}
.check-list li {
  position: relative;
  padding-left: 1.6em;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--osto-blue-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/60% no-repeat;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.screen-card { text-align: center; }
.screen-card .phone-mini { margin: 0 auto 14px; }
.screen-label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin: 0;
}

/* ---------------- Founder ---------------- */
.founder {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.founder h2, .founder .eyebrow { color: var(--white); }
.founder .eyebrow { color: var(--cyan); }
.founder p { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; }

/* ---------------- Legal pages ---------------- */
.legal {
  padding-top: 56px;
}
.legal h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 0.4em;
}
.legal-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}
.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2em;
}
.legal-body p,
.legal-body li {
  font-size: 1rem;
}
.legal-body ul {
  padding-left: 1.25em;
  margin: 0 0 1em;
  color: var(--ink-soft);
}
.legal-body li { margin-bottom: 0.5em; }
.legal-body a {
  color: var(--osto-blue-deep);
  font-weight: 600;
}

/* ---------------- Early access ---------------- */
.early-access {
  text-align: center;
}
.early-access-body { font-size: 1.05rem; margin-bottom: 2.5rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding: 40px;
  text-align: left;
}

.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-row input,
.form-row select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.8em 1em;
  border-radius: 12px;
  border: 1.5px solid rgba(7, 26, 88, 0.18);
  background: var(--white);
  color: var(--navy);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23071A58' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 16px;
}
.form-row input:focus,
.form-row select:focus {
  border-color: var(--osto-blue-deep);
  box-shadow: 0 0 0 4px rgba(43, 95, 203, 0.15);
}
.form-row input[aria-invalid="true"],
.form-row select[aria-invalid="true"] {
  border-color: var(--coral);
}

.field-error {
  display: block;
  min-height: 1.2em;
  color: #C43D2A;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-status[data-tone="error"] { color: #C43D2A; }

.form-success {
  text-align: center;
  padding: 12px 0;
}
.form-success h3 { font-size: 1.5rem; }
.form-success p { font-size: 1.05rem; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  gap: 24px;
  text-align: center;
  justify-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.6rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.footer-links a:hover { color: var(--white); }
.footer-disclaimer {
  max-width: 560px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-gallery { grid-template-columns: repeat(3, 1fr); }
  .wrap { padding: 0 20px; }
  main section { padding: 72px 0; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; margin-top: 2.5rem; }
  .hero { padding-top: 40px; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .screen-gallery { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; justify-items: start; }

  .form-card { padding: 28px 20px; }

  main section { padding: 64px 0; }

  .phone { width: 200px; height: 410px; }
  .phone-back { display: none; }
  .phone-front { left: 0; transform: none; }
}

@media (max-width: 480px) {
  .screen-gallery { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 2rem; }
  .btn-lg { width: 100%; }
}
