/*
|--------------------------------------------------------------------------
| ibisCar External Website
|--------------------------------------------------------------------------
|
| Shared styles for the public/external website.
|
| Used by:
|   - index.html
|   - 404.html
|   - future public/marketing/error pages
|
| Page-specific styles belong in separate files, for example:
|   - launch.css
|   - error.css
|
| Internal authenticated application styles must NOT be placed here.
|
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {

  /* Brand */

  --navy: #0E3A63;
  --navy-mid: #144A7D;
  --navy-light: #1B5A98;

  --orange: #F26B22;
  --orange-dark: #D8571A;
  --orange-tint: #FDECE1;


  /* Surfaces */

  --surface: #FFFFFF;
  --surface-2: #F6F9FC;


  /* Text */

  --ink: #10243D;
  --muted: #5C7290;
  --muted-light: #8CA0BC;


  /* Borders */

  --line: #E1E8F0;


  /* Status */

  --success: #1FAA59;
  --success-bg: #EAF8EF;


  /* Typography */

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;


  /* Radius */

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;


  /* Layout */

  --content-width: 720px;
}


/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html,
body {
  min-height: 100%;
}


html {
  -webkit-text-size-adjust: 100%;
}


body {
  margin: 0;
  min-height: 100vh;

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;

  color: var(--ink);
  background: var(--surface);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: flex;
  flex-direction: column;
}


img,
svg {
  display: block;
}


img {
  max-width: 100%;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input,
textarea,
select {
  font: inherit;
}


button {
  cursor: pointer;
}


button:disabled {
  cursor: not-allowed;
}


h1,
h2,
h3,
h4,
p {
  margin: 0;
}


h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy);
}


:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* ==========================================================================
   Shared content wrapper
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--content-width);

  margin-left: auto;
  margin-right: auto;

  padding-left: 24px;
  padding-right: 24px;
}


/* ==========================================================================
   Accessibility
   ========================================================================== */

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;

  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;

  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;

  white-space: nowrap !important;

  border: 0 !important;
}


/* ==========================================================================
   Shared buttons
   ========================================================================== */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  min-height: 46px;

  padding: 13px 22px;

  border: 1px solid transparent;
  border-radius: var(--radius-s);

  color: inherit;

  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1;
  font-weight: 600;

  white-space: nowrap;

  transition:
    transform 0.1s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}


.btn:active {
  transform: translateY(1px);
}


.btn-primary {
  color: #FFFFFF;
  background: var(--orange);
}


.btn-primary:hover {
  background: var(--orange-dark);
}


.btn-primary:disabled {
  color: var(--muted-light);
  background: var(--line);
}


/* ==========================================================================
   External website header
   ========================================================================== */

header.site {
  flex-shrink: 0;

  padding: 26px 0;
}


header.site .wrap {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;
}


/* ==========================================================================
   Brand
   ========================================================================== */

.brand {
  display: flex;

  align-items: center;

  gap: 9px;
}


.brand-logo {
  display: block;

  width: auto;
  height: 42px;

  max-width: 190px;

  object-fit: contain;

  flex-shrink: 0;
}


/* ==========================================================================
   External website team login
   ========================================================================== */

.team-login {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  padding: 8px 4px;

  color: var(--muted);

  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;

  transition:
    color 0.15s ease;
}


.team-login:hover {
  color: var(--navy);
}


.team-login svg {
  width: 15px;
  height: 15px;

  flex-shrink: 0;
}


/* ==========================================================================
   Shared external main area
   ========================================================================== */

main {
  position: relative;

  flex: 1;

  display: flex;
  align-items: center;

  overflow: hidden;
}


/* ==========================================================================
   Shared decorative hero rings
   ========================================================================== */

.hero-rings {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 1300px;
  height: 1300px;

  transform: translate(-50%, -50%);

  pointer-events: none;
  user-select: none;
}


.hero-rings circle {
  fill: none;

  stroke: var(--line);
}


.hero-rings circle.r-accent {
  stroke: var(--orange-tint);
}


/* ==========================================================================
   Shared external hero
   ========================================================================== */

.hero-shell {
  position: relative;

  z-index: 2;

  text-align: center;
}


/* ==========================================================================
   External status / eyebrow
   ========================================================================== */

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  position: relative;

  z-index: 3;

  padding: 7px 16px;

  border-radius: 20px;

  color: var(--orange);
  background: var(--orange-tint);

  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.3px;
}


/* ==========================================================================
   Status dot
   ========================================================================== */

.eyebrow .dot {
  width: 6px;
  height: 6px;

  flex-shrink: 0;

  border-radius: 50%;

  background: var(--orange);

  animation: ibiscar-pulse 1.8s ease-in-out infinite;
}


@keyframes ibiscar-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}


/* ==========================================================================
   Shared external typography
   ========================================================================== */

.headline {
  position: relative;

  z-index: 2;

  color: var(--navy);

  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}


.sub {
  color: var(--muted);

  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}


/* ==========================================================================
   External website footer
   ========================================================================== */

footer.site-footer {
  flex-shrink: 0;

  padding: 26px 0;

  border-top: 1px solid var(--line);
}


footer.site-footer .wrap {
  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  color: var(--muted-light);

  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
}


/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;
  }


  .eyebrow .dot {
    animation: none;
  }
}


/* ==========================================================================
   Mobile — 560px
   ========================================================================== */

@media (max-width: 560px) {

  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }


  header.site {
    padding: 22px 0;
  }


  .brand-logo {
    height: 34px;
    max-width: 155px;
  }


  .headline {
    font-size: 26px;
  }


  footer.site-footer {
    padding: 22px 0;
  }
}
