/* ==========================================================================
   Nakamates – custom styles
   Tailwind (CDN) handles layout and spacing utilities. This file holds the
   brand tokens, the logo, the HTML/CSS phone mockups and the animations.
   ========================================================================== */

:root {
  --coral: #FF6B5B;
  --coral-dark: #F0513F;
  --sun: #FFC857;
  --teal: #0EA5B7;
  --teal-deep: #0B6E7A;
  --teal-light: #5FD3E0;
  --night: #0B1F33;
  --sand: #F5E6CC;
  --cream: #FAF6EE;
  --shadow-soft: 0 10px 30px -12px rgba(11, 31, 51, .18);
  --shadow-lift: 0 30px 60px -25px rgba(11, 31, 51, .35);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--sand);
  color: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display { font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.03em; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--night); color: var(--cream); padding: .6rem 1rem; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Logo
   -------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo-word { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -0.035em; font-size: 1.6rem; color: var(--night); }
.logo-claim { font-family: "DM Sans", sans-serif; font-weight: 500; font-size: .72rem; color: var(--teal-deep); margin-top: .2rem; letter-spacing: .01em; }
.logo--dark .logo-name { color: var(--cream); }
.logo--dark .logo-claim { color: var(--teal-light); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header { background: var(--sand); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(11, 31, 51, .35); }
.nav-link { position: relative; font-weight: 500; color: var(--night); padding: .35rem 0; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover::after { transform: scaleX(1); }

/* Language selector */
.lang-select { appearance: none; -webkit-appearance: none; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230B1F33' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .7rem center; border: 1.5px solid rgba(11,31,51,.15); border-radius: 999px; padding: .45rem 1.9rem .45rem .85rem; font-weight: 600; font-size: .85rem; color: var(--night); cursor: pointer; }

/* --------------------------------------------------------------------------
   Buttons
   Coral background with night text keeps WCAG AA contrast (white on coral fails).
   -------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; border-radius: 999px; padding: .9rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--coral); color: var(--night); box-shadow: 0 10px 22px -10px rgba(255, 107, 91, .9); }
.btn-primary:hover { background: #ff7f71; transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(255, 107, 91, .95); }
.btn-ghost { background: transparent; color: var(--night); border: 2px solid rgba(11,31,51,.18); }
.btn-ghost:hover { border-color: var(--night); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.15rem; font-size: .9rem; }

/* Highlight under a word in headings (sun-coloured brush) */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after { content: ""; position: absolute; left: -.08em; right: -.08em; bottom: .06em; height: .32em; background: var(--sun); border-radius: .2em; z-index: -1; }

/* Section eyebrow */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-deep); }
.eyebrow::before { content: ""; width: 1.4rem; height: 3px; border-radius: 3px; background: var(--coral); }

/* Cards */
.card { background: var(--cream); border-radius: 1.5rem; box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.icon-badge { width: 3rem; height: 3rem; border-radius: 1rem; display: grid; place-items: center; flex: none; }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* Soft decorative blobs (flat colours, no loud gradients) */
.blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }

/* Wave divider */
.wave-line { display: block; width: 100%; height: 24px; }

/* --------------------------------------------------------------------------
   Phone mockup (pure HTML/CSS)
   -------------------------------------------------------------------------- */
.phone { position: relative; width: 280px; max-width: 100%; aspect-ratio: 9 / 19; background: var(--night); border-radius: 46px; padding: 11px; box-shadow: var(--shadow-lift), inset 0 0 0 2px #1c3550; margin-inline: auto; }
.phone::before { /* side button */ content: ""; position: absolute; right: -3px; top: 120px; width: 3px; height: 60px; background: #1c3550; border-radius: 0 3px 3px 0; }
.phone-screen { position: relative; height: 100%; background: var(--cream); border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; }
.phone-island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: var(--night); border-radius: 999px; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 11px 22px 4px; font-weight: 700; font-size: 11px; height: 34px; }
.phone-status .dots { display: flex; gap: 3px; align-items: center; }
.phone-status .dots i { display: block; width: 14px; height: 7px; border-radius: 2px; background: var(--night); }
.phone-status .dots i:first-child { width: 10px; opacity: .6; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 6px 14px 10px; border-bottom: 1px solid rgba(11,31,51,.08); }
.app-bar .title { font-weight: 700; font-size: 13px; }
.app-bar .sub { font-size: 10px; color: var(--teal-deep); }
.app-body { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.app-tabbar { display: flex; justify-content: space-around; padding: 8px 10px 16px; border-top: 1px solid rgba(11,31,51,.08); background: #fff8ef; }
.app-tabbar span { width: 22px; height: 4px; border-radius: 4px; background: rgba(11,31,51,.18); }
.app-tabbar span.on { background: var(--coral); }

/* Avatars: coloured circle with initials + country code tag */
.av { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 10px; color: var(--night); flex: none; }
.av-lg { width: 34px; height: 34px; font-size: 12px; }
.av .cc { position: absolute; right: -5px; bottom: -3px; font-size: 7px; font-weight: 800; background: var(--night); color: var(--cream); border-radius: 4px; padding: 0 2px; line-height: 10px; border: 1.5px solid var(--cream); }
.av-coral { background: var(--coral); } .av-sun { background: var(--sun); } .av-teal { background: var(--teal); } .av-night { background: var(--night); color: var(--cream); } .av-sand { background: #e9d3ad; } .av-mint { background: #9fe3ea; }
.av-stack { display: flex; } .av-stack .av { margin-left: -7px; border: 2px solid var(--cream); } .av-stack .av:first-child { margin-left: 0; }

/* Chat bubbles */
.msg { display: flex; gap: 6px; align-items: flex-end; max-width: 88%; }
.msg .bubble { background: #fff; border-radius: 14px 14px 14px 4px; padding: 6px 9px; box-shadow: 0 2px 6px -3px rgba(11,31,51,.2); }
.msg .who { font-weight: 700; font-size: 9.5px; color: var(--teal-deep); display: block; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--coral); color: var(--night); border-radius: 14px 14px 4px 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 8px; font-size: 9.5px; font-weight: 700; background: #fff; border: 1px solid rgba(11,31,51,.1); white-space: nowrap; }
.chip.on { background: var(--night); color: var(--cream); border-color: var(--night); }
.mini-card { background: #fff; border-radius: 14px; padding: 9px; box-shadow: 0 3px 10px -6px rgba(11,31,51,.3); }
.typing { display: inline-flex; gap: 3px; padding: 8px 10px; background: #fff; border-radius: 14px; width: max-content; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); animation: typing 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5 } 30% { transform: translateY(-3px); opacity: 1 } }

/* Floating notification cards next to the hero phone */
.float-card { position: absolute; background: var(--cream); border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow-lift); display: flex; align-items: center; gap: 10px; font-size: 13px; z-index: 2; animation: float 6s ease-in-out infinite; }
.float-card.delay { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* --------------------------------------------------------------------------
   Browser-window mockup (resort dashboard)
   -------------------------------------------------------------------------- */
.browser { background: var(--cream); border-radius: 22px; box-shadow: var(--shadow-lift); overflow: hidden; border: 1px solid rgba(11,31,51,.08); font-size: 12px; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #efe0c4; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(11,31,51,.2); }
.browser-bar i:nth-child(1) { background: var(--coral); } .browser-bar i:nth-child(2) { background: var(--sun); } .browser-bar i:nth-child(3) { background: var(--teal); }
.browser-bar .url { margin-left: 10px; flex: 1; background: var(--cream); border-radius: 999px; padding: 3px 12px; font-size: 11px; color: rgba(11,31,51,.7); }
.stat { background: #fff; border-radius: 14px; padding: 10px 12px; }
.stat b { font-family: "Bricolage Grotesque", sans-serif; font-size: 22px; letter-spacing: -.03em; display: block; line-height: 1.1; }
.stat small { font-size: 10.5px; color: rgba(11,31,51,.7); }
.bar-track { height: 6px; border-radius: 6px; background: rgba(11,31,51,.08); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; }
.dash-row { display: grid; grid-template-columns: 1.6fr 1fr .9fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; }

/* --------------------------------------------------------------------------
   FAQ (native <details>)
   -------------------------------------------------------------------------- */
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--sand); display: grid; place-items: center; transition: transform .25s ease, background-color .25s ease; }
.faq-item[open] .plus { transform: rotate(45deg); background: var(--coral); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; background: #fff; border: 1.5px solid rgba(11,31,51,.14); border-radius: 14px; padding: .75rem .95rem; font: inherit; color: var(--night); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(14,165,183,.18); }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230B1F33' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1rem center; }
.hidden-field { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   Scroll reveal (light, respects reduced motion)
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card, .typing i { animation: none; }
  .card:hover, .btn:hover { transform: none; }
}

/* Legal pages */
.legal h2 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; letter-spacing: -.03em; font-size: 1.4rem; margin: 2.2rem 0 .7rem; }
.legal p, .legal li { line-height: 1.7; margin-bottom: .7rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal a { color: var(--teal-deep); text-decoration: underline; }

/* Status chips in the dashboard rows keep their natural width */
.dash-row .chip { justify-self: start; }


/* "Example data" label on the dashboard mockup */
.example-tag { margin-left: 8px; flex: none; background: var(--night); color: var(--cream); border-radius: 999px; padding: 2px 9px; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
