/*
 * calendio.ai. Laid out like the other Forge sites (warmforge.ai): tinted hero
 * card, black buttons, one accent phrase per heading, dark footer. The accent
 * is the app's brand teal (packages/ui/src/styles/theme.css).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --accent: #0e9384;
  --accent-strong: #107569;
  --accent-bright: #00a18e;
  --accent-soft: #f0fdf9;
  --accent-border: #99f6e0;
  --ink: #1c1917;
  --heading: #101828;
  --text: #4d5761;
  --muted: #6c737f;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --background: #ffffff;
  --footer: #161412;
  --radius-card: 16px;
  --radius-section: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 600;
}

a {
  color: var(--accent-strong);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.accent {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.section {
  padding: 96px 0;
}

.section-flush {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2,
.split h2,
.faq h2,
.cta-band h2 {
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.5;
}

.pill {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 500;
}

/* Announcement bar */
.announcement {
  background: #134e48;
  color: #ffffff;
  font-size: 14px;
}

.announcement .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.announcement a {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo svg {
  width: 26px;
  height: 26px;
  color: var(--accent-bright);
}

.nav {
  display: flex;
  flex: 1;
  gap: 28px;
  margin-left: 24px;
}

.nav a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

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

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

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

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}

.button-small {
  padding: 8px 14px;
  font-size: 15px;
}

.button-dark {
  background: var(--ink);
  color: #ffffff;
}

.button-dark:hover {
  background: #3a3532;
}

.button-outline {
  border-color: var(--border);
  background: #ffffff;
  color: var(--ink);
}

.button-outline:hover {
  border-color: #d2d6db;
  background: var(--surface);
}

/* Hero */
.hero {
  padding: 24px 0 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 72px 16px 0;
  border-radius: var(--radius-section);
  background: linear-gradient(180deg, #ccfbef 0%, var(--accent-soft) 45%, #ffffff 100%);
  text-align: center;
}

/* The faint grid behind the hero, fading out towards the bottom. */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 147, 132, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 147, 132, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
}

.hero h1,
.hero .hero-title {
  max-width: 860px;
  margin: 20px auto 0;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 18px;
  line-height: 1.55;
}

.hero-lead strong {
  color: var(--heading);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.works-with {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.works-with li::before {
  content: "✓";
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

.hero-visual {
  max-width: 1000px;
  margin: 56px auto 0;
}

/* Browser frame around the product mockups */
.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.12);
  text-align: left;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d6db;
}

.browser-url {
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  padding: 4px 12px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Mock booking page (hero) */
.booking {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.booking-pitch {
  padding: 32px;
  border-right: 1px solid var(--border);
}

.booking-from {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-bright);
  color: #ffffff;
  font-weight: 600;
}

.booking-from strong {
  display: block;
  color: var(--heading);
}

.booking-pitch h3 {
  margin: 24px 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.booking-pitch p {
  margin: 0;
  line-height: 1.55;
}

.video {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin-top: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #134e48, #0e9384);
}

.video span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  font-size: 18px;
}

.quote {
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
}

.quote cite {
  display: block;
  margin-top: 8px;
  color: var(--heading);
  font-style: normal;
  font-weight: 600;
}

.booking-picker {
  padding: 32px;
}

.booking-meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.booking-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 18px;
}

.month {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--heading);
  font-weight: 600;
}

.month span {
  color: var(--muted);
  font-weight: 400;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 13px;
  text-align: center;
}

.days b {
  padding-bottom: 4px;
  color: var(--muted);
  font-weight: 500;
}

.days i {
  padding: 8px 0;
  border-radius: 8px;
  color: #9da4ae;
  font-style: normal;
}

.days .open {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.days .picked {
  background: var(--accent-bright);
  color: #ffffff;
  font-weight: 600;
}

.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.slots span {
  padding: 10px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.slots .picked {
  border-color: var(--accent-bright);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.confirm {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 760px) {
  .booking {
    grid-template-columns: 1fr;
  }

  .booking-pitch {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

/* Problem / split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.split-title {
  position: sticky;
  top: 110px;
}

.split-title .accent {
  display: block;
}

.split-title p {
  margin: 24px 0 0;
  color: var(--heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.problems {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
  list-style: none;
}

.problems li {
  position: relative;
  padding: 0 0 40px 40px;
}

.problems li:last-child {
  padding-bottom: 0;
}

.problems li::before {
  content: "!";
  position: absolute;
  top: 0;
  left: -13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fef3f2;
  color: #d92d20;
  font-size: 13px;
  font-weight: 700;
}

.problems h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.problems p {
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split-title {
    position: static;
  }
}

/* Feature tabs */
.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tab {
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.tab:hover {
  background: #e5e7eb;
}

.tab[aria-selected="true"] {
  border-color: var(--accent-bright);
  background: #ffffff;
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-top: 16px;
  padding: 48px;
  border-radius: var(--radius-section);
  background: var(--surface);
}

.panel[hidden] {
  display: none;
}

.panel h3 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.panel p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.6;
}

.checks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--heading);
}

.checks li::before {
  content: "✓";
  position: absolute;
  top: 6px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.mock {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.mock-title {
  margin: 0 0 16px;
  color: var(--heading);
  font-weight: 600;
}

.mock-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.blocks span {
  padding: 14px;
  border: 1px dashed #d2d6db;
  border-radius: 10px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
}

.blocks span::before {
  content: "+ ";
  color: var(--accent);
}

.week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  font-size: 12px;
  text-align: center;
}

.week b {
  color: var(--muted);
  font-weight: 500;
}

.week i {
  height: 26px;
  border-radius: 6px;
  background: var(--accent-soft);
}

.week .busy {
  background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 4px, #e5e7eb 4px, #e5e7eb 8px);
}

.week .booked {
  background: var(--accent-bright);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  vertical-align: -1px;
}

.legend .busy::before {
  background: #e5e7eb;
}

.legend .booked::before {
  background: var(--accent-bright);
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--heading);
  font-size: 15px;
}

.timeline li:last-child {
  border-bottom: 0;
}

.timeline small {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-bright);
}

.funnel {
  display: grid;
  gap: 12px;
}

.funnel div {
  display: grid;
  grid-template-columns: 90px 1fr 48px;
  gap: 12px;
  align-items: center;
  color: var(--heading);
  font-size: 14px;
}

.funnel i {
  height: 28px;
  border-radius: 6px;
  background: var(--accent-bright);
}

.funnel b {
  text-align: right;
}

.code {
  margin: 0;
  overflow-x: auto;
  padding: 20px;
  border-radius: 12px;
  background: #101828;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code .k {
  color: #5fe9d0;
}

.code .s {
  color: #fec84b;
}

@media (max-width: 860px) {
  .panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #ffffff;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card p {
  margin: 0;
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  padding: 72px 24px;
  border-radius: var(--radius-section);
  background: linear-gradient(180deg, var(--accent-soft), #ffffff);
  text-align: center;
}

.cta-band p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 18px;
  line-height: 1.5;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.step {
  padding: 28px;
  border-right: 1px solid var(--border);
}

.step:last-child {
  border-right: 0;
  background: var(--accent-soft);
}

.step-number {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.step h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .step:last-child {
    border-bottom: 0;
  }
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
}

.faq-intro p {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  color: var(--heading);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: -8px 0 24px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Closing CTA */
.closing {
  padding-bottom: 96px;
}

.closing .hero-card {
  padding-bottom: 72px;
}

/* Long-form pages (privacy policy) */
.prose {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 96px;
}

.prose h1 {
  margin: 16px 0 0;
  font-size: clamp(34px, 5vw, 48px);
  letter-spacing: -0.03em;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.prose p,
.prose li {
  line-height: 1.65;
}

.prose strong {
  color: var(--heading);
}

.prose ul {
  padding-left: 22px;
}

.updated {
  margin-top: 12px;
  color: var(--muted);
}

.callout {
  margin: 24px 0;
  padding: 4px 20px;
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  background: var(--accent-soft);
}

.not-found {
  padding: 48px 0 96px;
}

/* Footer */
.footer {
  background: var(--footer);
  color: #a9a29d;
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.footer .logo {
  color: #ffffff;
}

.footer-tagline {
  margin: 16px 0 0;
  max-width: 260px;
  line-height: 1.5;
}

.footer h4 {
  margin: 0 0 16px;
  color: #77706b;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 12px;
}

.footer a {
  color: #e7e5e4;
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
}

.forge {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.forge a {
  display: block;
  padding: 14px;
  border: 1px solid #2e2a27;
  border-radius: 12px;
  background: #1f1c1a;
}

.forge a:hover {
  border-color: #4a4440;
}

.forge strong {
  display: block;
  color: #ffffff;
  font-weight: 600;
}

.forge small {
  color: #a9a29d;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid #2e2a27;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 64px 0;
  }

  .hero-card {
    padding-top: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .header-actions .button-outline {
    display: none;
  }
}
