/**
 * CorService splash — product landing
 * Direction: deep teal ink, warm mist, refined type, calm motion
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --ink: #102a43;
  --ink-soft: #243b53;
  --muted: #486581;
  --paper: #eef5f4;
  --paper-deep: #f7f5f1;
  --line: rgba(16, 42, 67, 0.12);
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --warm: #b45309;
  --warm-soft: rgba(180, 83, 9, 0.14);
  --surface: #ffffff;
  --font: 'DM Sans', system-ui, sans-serif;
  --display: 'DM Serif Display', Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.6 var(--font);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 8% -8%, rgba(15, 118, 110, 0.18), transparent 55%),
    radial-gradient(900px 520px at 96% 4%, rgba(180, 83, 9, 0.1), transparent 52%),
    linear-gradient(180deg, #e8f3f1 0%, var(--paper) 38%, var(--paper-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

button,
a { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.45);
  outline-offset: 4px;
}

.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 48px;
}

/* —— Nav —— */
.splash-nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #0f766e 0%, #134e4a 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.28);
}

.mark svg {
  width: 1.1rem;
  height: 1.1rem;
}

.navlinks {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.navlinks a:hover { color: var(--accent); }

.nav-login {
  color: var(--ink) !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: 0.55rem;
  background: var(--ink);
  color: #fff !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: calc(100vh - 88px);
  padding: 4.5rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto;
  height: 70%;
  background:
    radial-gradient(ellipse 55% 70% at 20% 40%, rgba(15, 118, 110, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 20%, rgba(180, 83, 9, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--warm);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--warm-soft);
}

.brand-hero {
  margin: 1.35rem 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.4rem 0 1.1rem;
  color: var(--ink-soft);
}

.hero h1 em {
  color: var(--accent);
  font-style: italic;
}

.intro {
  max-width: 26rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.85rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
  border-radius: 0.55rem;
  background: linear-gradient(145deg, #0f766e 0%, #134e4a 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.34);
}

.btn-ink {
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.22);
}

.btn-ink:hover {
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.3);
}

.link {
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
  padding: 0.3rem 0;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.small {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin-top: 1.35rem;
  color: var(--muted);
}

/* —— Product preview —— */
.preview-stage {
  position: relative;
  padding: 2rem 0 2.1rem;
}

.orb {
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 50%;
  top: 0.4rem;
  left: 0.8rem;
}

.orb::before {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(180, 83, 9, 0.28);
  border-radius: 50%;
  animation: orbit 80s linear infinite;
}

.app {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(16, 42, 67, 0.1);
  box-shadow: 0 28px 65px rgba(16, 42, 67, 0.12);
  border-radius: 0.85rem;
  overflow: hidden;
  transform: rotate(-1.5deg);
  animation: enter 1s ease both;
}

.appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.05rem 1.25rem;
  background: linear-gradient(180deg, #f7fbfa 0%, #f3f8f7 100%);
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
  font-size: 0.72rem;
  color: var(--muted);
}

.appbrand {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.avatar {
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
  padding: 0.3rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.tabs {
  display: flex;
  padding: 1rem 1.25rem 0;
  gap: 1.35rem;
  border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.tabs button[aria-selected='true'] {
  border-color: var(--accent);
  color: var(--ink);
}

.panel {
  padding: 1.4rem 1.35rem 1.5rem;
  min-height: 306px;
}

.panel small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
}

.panel h3 {
  margin: 0.35rem 0 1.1rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  padding: 0.85rem 0.95rem;
  background: rgba(15, 118, 110, 0.07);
  border-radius: 0.5rem;
}

.service b {
  display: block;
  font-size: 0.8rem;
  color: var(--ink);
}

.service span {
  font-size: 0.7rem;
  color: var(--muted);
}

.status {
  font-size: 0.65rem !important;
  background: rgba(4, 120, 87, 0.12);
  color: #047857 !important;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-weight: 700;
}

.row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(16, 42, 67, 0.06);
  font-size: 0.75rem;
}

.row:last-child { border: 0; }

.initial {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(180, 83, 9, 0.12);
  color: var(--warm);
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}

.row b {
  font-weight: 600;
  color: var(--ink);
}

.row .role {
  font-size: 0.65rem;
  color: var(--muted);
}

.row .tick {
  margin-left: auto;
  color: #047857;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.float {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 42, 67, 0.1);
  border-radius: 0.65rem;
  box-shadow: 0 12px 30px rgba(16, 42, 67, 0.1);
  padding: 0.8rem 1.05rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  animation: bob 6s ease-in-out infinite;
  font-size: 0.75rem;
  backdrop-filter: blur(6px);
}

.float b {
  display: block;
  font-size: 0.8rem;
  color: var(--ink);
}

.float span {
  color: var(--muted);
  font-size: 0.68rem;
}

.float .check {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.12);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.f1 { right: -1.2rem; top: 0.3rem; }
.f2 { bottom: 0.7rem; left: -1.5rem; animation-delay: -3s; }

.caption {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1rem 0 0;
  font-weight: 600;
}

/* —— Strip —— */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.strip i {
  color: var(--accent);
  font-style: normal;
  margin-right: 0.35rem;
}

/* —— Sections —— */
section { padding: 5rem 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-head p {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0.55rem 0 0;
  color: var(--ink);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.25s ease;
}

.feature:hover { background: rgba(255, 255, 255, 0.72); }

.feature .icon {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 0.45rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.day {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    radial-gradient(600px 280px at 0% 0%, rgba(15, 118, 110, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.55);
}

.day p {
  color: var(--muted);
  max-width: 22rem;
  line-height: 1.7;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(15, 118, 110, 0.2);
}

.step { padding-left: 1.25rem; position: relative; }

.step .num {
  display: block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.ending {
  text-align: center;
  padding: 5rem 0 2.5rem;
}

.ending .eyebrow { justify-content: center; }

.ending h2 { margin-bottom: 0.85rem; }

.ending > p {
  max-width: 28rem;
  margin: 0 auto;
  color: var(--muted);
}

.ending .btn { margin-top: 1.75rem; }

.ending .small { margin-top: 1rem; }

.cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.faq {
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
  font-size: 0.92rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}

.faq p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.splash-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.splash-footer .brand { font-size: 1.05rem; color: var(--ink); }

.splash-footer .footer-links {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
}

.splash-footer a:hover { color: var(--accent); }

/* —— Reveal —— */
.reveal { opacity: 1; }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes bob {
  50% { transform: translateY(-9px); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(20px) rotate(-1.5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1.5deg);
  }
}

@media (min-width: 1500px) {
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 950px) {
  .wrap { padding: 0 1.75rem; }
  .hero { gap: 1.75rem; }
  .f1 { right: -0.4rem; }
  .f2 { left: -0.5rem; }
  .strip { font-size: 0.7rem; }
  .orb { width: 350px; height: 350px; }
  .navlinks { gap: 1rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .day {
    gap: 2rem;
    padding: 2.25rem;
  }
}

@media (max-width: 700px) {
  .wrap { padding: 0 1.35rem; }
  .splash-nav { height: 72px; }
  .navlinks > a:not(.nav-cta):not(.nav-login) { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2.75rem 0 1.75rem;
    gap: 1.25rem;
  }
  .brand-hero { font-size: 2.4rem; }
  .hero h1 { font-size: 2.1rem; }
  .preview-stage {
    max-width: 470px;
    width: 100%;
    margin: auto;
    padding: 2rem 0.5rem;
  }
  .orb {
    width: 300px;
    height: 300px;
    left: 1rem;
  }
  .f1 { top: 0.4rem; right: 0; }
  .f2 { bottom: 0.3rem; left: 0; }
  .strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    font-size: 0.7rem;
  }
  section { padding: 3.75rem 0; }
  .section-head {
    display: block;
    margin-bottom: 1.5rem;
  }
  .section-head p { margin-top: 1rem; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 1.35rem 1.1rem; }
  .day {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.35rem;
  }
  .ending { padding: 3.75rem 0 1.5rem; }
  .splash-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .actions { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
