/* Tobid Interactive — design tokens from pencil-new.pen */
:root {
  --surface-dark: #042f36;
  --surface-mid: #0a3d46;
  --surface-light: #fafbfc;
  --surface-mist: #e7f1f0;
  --text-light: #f5fafa;
  --text-muted-light: #9bb8bc;
  --text-dark: #042f36;
  --text-muted-dark: #4a6b70;
  --accent: #f2a65a;
  --accent-water: #2a9d8f;
  --border-dark: #1a4e56;
  --border-light: #c5d9d7;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;

  --container: 72rem;
  --page-gutter: 1rem;
  --logo-width: 13.75rem;
  --header-h: 4.5rem;

  --text-xs: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-md: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  --text-hero: clamp(2.5rem, 1.5rem + 4vw, 4.125rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, var(--header-h));
  -webkit-text-size-adjust: 100%;
  background: var(--surface-dark);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  padding-top: var(--header-offset, var(--header-h));
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--surface-light);
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

address {
  font-style: normal;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--surface-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  left: 1rem;
  top: calc(var(--header-offset, var(--header-h)) + 0.5rem);
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
}

.container {
  width: min(100% - (var(--page-gutter) * 2), var(--container));
  margin-inline: auto;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 2rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: 3.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --logo-width: 10.5rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--accent);
  color: var(--surface-dark);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-water);
}

#top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: var(--surface-dark);
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 100vh;
  background: var(--surface-dark);
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  width: var(--logo-width);
  max-width: 100%;
  height: auto;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  top: var(--header-offset, var(--header-h));
  z-index: 110;
  background: rgb(4 47 54 / 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 121;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem var(--page-gutter) 1.5rem;
  background: var(--surface-dark);
  border-top: 1px solid var(--border-dark);
  text-align: center;
}

.site-nav.is-open {
  display: flex;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.nav-list a {
  color: var(--text-muted-light);
  font-size: var(--text-md);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active,
.nav-list a[aria-current="true"] {
  color: var(--accent);
}

.site-nav .btn {
  width: fit-content;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .nav-toggle,
  .nav-overlay {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
  }

  .nav-list a {
    font-size: var(--text-base);
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 54rem);
  display: flex;
  align-items: center;
  color: var(--text-light);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(4 47 54 / 0.2) 0%,
    rgb(4 47 54 / 0.35) 40%,
    rgb(4 47 54 / 0.88) 100%
  );
}

.hero-content {
  position: relative;
  padding-block: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-copy {
  width: min(100%, 36rem);
  display: grid;
  gap: 0.9rem;
  text-align: center;
  justify-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  color: var(--accent);
  font-size: var(--text-lg);
  font-weight: 500;
}

.hero-tagline {
  font-size: var(--text-md);
}

.hero-body {
  color: var(--text-muted-light);
  font-size: var(--text-base);
}

.hero-cta {
  margin-top: 0.5rem;
  justify-self: center;
  width: fit-content;
}

@media (min-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgb(4 47 54 / 0.15) 0%,
      rgb(4 47 54 / 0.25) 40%,
      rgb(4 47 54 / 0.72) 100%
    ),
    linear-gradient(
      180deg,
      transparent 0%,
      rgb(4 47 54 / 0.55) 100%
    );
  }

  .hero-content {
    justify-content: flex-end;
    padding-block: 0;
  }

  .hero-copy {
    text-align: right;
    justify-items: end;
  }

  .hero-cta {
    justify-self: end;
  }

  .hero-media img {
    object-position: center left;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: min(100svh, 42rem);
  }

  .hero-media img {
    object-position: 20% center;
  }
}

/* Sections */
.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

/* Featured */
.featured {
  background: var(--surface-light);
}

.featured-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.featured-copy {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  color: var(--text-muted-dark);
  font-size: var(--text-md);
}

.featured-motto {
  color: var(--accent-water);
  font-weight: 700;
  font-size: var(--text-md);
}

.featured-media {
  width: 100%;
  margin: 1rem 0 0;
  border-radius: 0.85rem;
  overflow: hidden;
}

.featured-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

@media (max-width: 767px) {
  .featured-media img {
    aspect-ratio: 4 / 3;
  }
}

/* How it works */
.how {
  background: var(--surface-mist);
}

.how h2 {
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.step-card {
  background: var(--surface-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: grid;
  gap: 0.65rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--accent);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}

.step-card p {
  color: var(--text-muted-dark);
  font-size: var(--text-sm);
}

@media (min-width: 640px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* Features */
.features {
  background: var(--surface-dark);
  color: var(--text-light);
}

.features h2 {
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--surface-mid);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  display: grid;
  gap: 0.75rem;
  text-align: center;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  color: var(--accent);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
}

.feature-card p:last-child {
  color: var(--text-muted-light);
  font-size: var(--text-sm);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

/* About */
.about {
  background: #fff;
}

.about-inner {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
}

.about-rule {
  width: 4rem;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.about-copy {
  display: grid;
  gap: 1rem;
  max-width: 46rem;
  color: var(--text-muted-dark);
  font-size: var(--text-md);
}

.about-goal {
  width: min(100%, 40rem);
  margin-top: 0.75rem;
  padding: 1.75rem;
  background: var(--surface-mist);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.75rem;
}

.goal-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  color: var(--accent-water);
}

.goal-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark);
}

/* Brand */
.brand {
  background: var(--surface-mist);
}

.brand-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.brand-subtitle {
  max-width: 40rem;
  color: var(--text-muted-dark);
  font-size: var(--text-md);
}

.brand-keywords {
  width: 100%;
  display: grid;
  gap: 1rem;
  margin-top: 0.75rem;
}

.brand-item {
  background: var(--surface-light);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  display: grid;
  gap: 0.65rem;
  border-bottom: 1px solid var(--border-light);
}

.brand-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--accent-water);
}

.brand-item p {
  color: var(--text-muted-dark);
  font-size: var(--text-sm);
}

@media (min-width: 768px) {
  .brand-keywords {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .brand-item {
    border-bottom: 0;
  }
}

/* Contact */
.contact {
  background: #fff;
}

.contact-inner {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
  text-align: center;
}

.contact-intro {
  max-width: 34rem;
  color: var(--text-muted-dark);
  font-size: var(--text-md);
}

.contact-email {
  color: var(--accent-water);
  font-size: var(--text-lg);
  font-weight: 700;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration: underline;
}

.contact-card {
  width: min(100%, 30rem);
  margin-top: 0.5rem;
  padding: 1.75rem;
  background: var(--surface-mist);
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.35rem;
  color: var(--text-muted-dark);
  font-size: var(--text-sm);
}

.contact-card strong {
  color: var(--text-dark);
  font-size: var(--text-base);
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-muted-light);
  padding-block: 3rem 2rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-top {
  display: grid;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.footer-brand .logo img {
  width: var(--logo-width);
}

.footer-brand p {
  max-width: 22rem;
  font-size: var(--text-sm);
}

.footer-links {
  display: grid;
  gap: 1.25rem;
}

.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: var(--text-sm);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: var(--text-xs);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
  text-align: right;
  font-family: var(--font-body);
}

.footer-legal a {
  color: var(--text-muted-light);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent);
}

@media (max-width: 599px) {
  .footer-brand {
    justify-items: center;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-links nav {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-legal {
    margin-left: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }

  .footer-links {
    grid-auto-flow: column;
    align-items: center;
    gap: 2.5rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav-toggle span {
    transition: none;
  }
}

/* Legal pages */
.legal-main {
  background: var(--surface-light);
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
  min-height: 60vh;
}

.legal-wrap {
  max-width: 48rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: var(--accent-water);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--text-dark);
}

.legal-back-icon {
  flex-shrink: 0;
}

.legal-header {
  margin-bottom: 1.75rem;
}

.legal-doc-id {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--text-muted-dark);
}

.legal-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  text-align: left;
}

.legal-date {
  margin-bottom: 1.5rem !important;
  color: var(--text-muted-dark);
  font-weight: 600;
}

.legal-body {
  color: var(--text-muted-dark);
  font-size: var(--text-base);
  line-height: 1.75;
}

.legal-body h2 {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  text-align: left;
}

.legal-body h3 {
  margin: 1.35rem 0 0.65rem;
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-dark);
}

.legal-body p {
  margin: 0 0 0.9rem;
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body a {
  color: var(--accent-water);
  text-decoration: underline;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: max(1rem, var(--page-gutter));
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface-dark);
  box-shadow: 0 8px 20px rgb(4 47 54 / 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #e09448;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

