/* ==========================================================================
   NG Video Cuts - styles
   Sections: 1 Colors and base | 2 Header | 3 Buttons | 4 Home | 5 Portfolio
             6 Booking calendar | 7 Forms | 8 Pricing | 9 Privacy | 10 Owner tool
   ========================================================================== */


/* 1. Colors and base ------------------------------------------------------ */

:root {
  --bg: #000000;        /* page background */
  --surface: #0b1416;   /* cards and panels */
  --line: #1d3b3e;      /* borders */
  --text: #f3fbfb;
  --muted: #8fb0b2;
  --accent: #5ce6ea;    /* the cyan from the logo */
  --accent-text: #001516; /* text on top of the accent color */
  --accent-dim: #2b8a8e;
  --danger-bg: #4a1d1d;
  --danger-text: #ffb4b4;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Make the HTML "hidden" attribute win over display rules like form {display: grid} */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.05rem/1.6 var(--font-body);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.8rem, 8vw, 5.4rem); max-width: 16ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.4rem; letter-spacing: 0.02em; }

p {
  margin: 0 0 1em;
  max-width: 62ch;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.25rem;
}

/* Only one page is visible at a time. script.js adds .on to the current one. */
.page {
  display: none;
  padding: 3.5rem 0 4rem;
}
.page.on {
  display: block;
}

.lede {
  font-size: 1.25rem;
  color: var(--muted);
}

.fine {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 80ch;
  margin: 0;
}

.note {
  display: none; /* shown by script.js when there is a message */
  padding: 0.9rem 1rem;
  border-radius: 6px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise 0.7s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
  }
}


/* 2. Header and navigation ------------------------------------------------ */

header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.4rem;
  max-width: 1100px;
  margin: auto;
  padding: 0.9rem 1.25rem;
}

.logo {
  margin-right: auto; /* pushes the menu links to the right */
}
.logo img {
  display: block;
  height: 44px;
  width: auto;
}

nav a.link {
  text-decoration: none;
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
nav a.link[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}
nav a.link.quiet { /* the Client portal link */
  font-size: 0.9rem;
  opacity: 0.7;
}


/* 3. Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}


/* 4. Home page ------------------------------------------------------------ */

/* The little video-editor timeline graphic */
.timeline {
  margin: 2.5rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow-x: auto;
}
.timeline-row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.6rem;
  align-items: center;
  margin: 0.35rem 0;
  min-width: 480px;
}
.timeline-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.track {
  display: flex;
  gap: 4px;
  height: 1.7rem;
}
.track i {
  display: block;
  border-radius: 3px;
  background: var(--line);
}
.track i.bright { background: var(--accent); }
.track i.dim    { background: var(--accent-dim); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid var(--line);
}
.stats b {
  display: block;
  font: 400 3rem var(--font-display);
  color: var(--accent);
}
.stats span {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.step {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.step p {
  color: var(--muted);
}


/* 5. Portfolio page ------------------------------------------------------- */

/* The row of phones. Scrolls sideways on small screens. */
.reel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
}

/* One phone plus its title and caption */
.phone {
  flex: 0 0 240px;
  scroll-snap-align: start;
}
.phone h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1.3rem;
}
.phone p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* The phone body (rounded frame) that holds the video */
.screen {
  position: relative;
  aspect-ratio: 9 / 19;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
  background: #05090b;
  border: 8px solid #24484b;
  border-radius: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.screen video,
.screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the phone; fullscreen switches to "contain" below */
  border: 0;
}
.screen video:fullscreen {
  object-fit: contain; /* black bars instead of cropping */
  background: #000;
}
.screen video:-webkit-full-screen {
  object-fit: contain;
  background: #000;
}

/* Shown instead of a video when it is missing or fails to load */
.screen-message {
  position: relative;
  z-index: 1;
  margin: 0;
}
.screen-message code {
  display: block;
  margin-top: 0.5rem;
  color: var(--text);
  word-break: break-all;
}


/* 6. Booking calendar ----------------------------------------------------- */

.cal {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.cal.bare { /* used inside the owner tool, which has its own frame */
  padding: 0;
  border: 0;
  background: none;
}
.cal-grid {
  display: grid;
  grid-template-columns: minmax(0, 350px) 1fr;
  gap: 2rem;
}
@media (max-width: 760px) {
  .cal-grid { grid-template-columns: 1fr; }
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.cal button {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.cal button:disabled {
  color: var(--muted);
  opacity: 0.3;
  cursor: not-allowed;
}
.cal button.selected {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
.cal-head button {
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.5rem;
  border-color: var(--line);
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.weekdays span {
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.days button {
  aspect-ratio: 1;
  font-weight: 500;
}
.days button:hover:not(:disabled) {
  border-color: var(--accent);
}
.days button.blocked { /* owner tool: a day marked as unavailable */
  background: var(--danger-bg);
  color: var(--danger-text);
  font-weight: 600;
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.slots button {
  padding: 0.6rem 0.4rem;
  border-color: var(--line);
}
.slots button:hover {
  border-color: var(--accent);
}

.chosen-time {
  margin: 0;
  font-weight: 600;
}
.done {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
}


/* 7. Forms (booking and client portal) ------------------------------------ */

form {
  display: grid;
  gap: 1.1rem;
  max-width: 640px;
}
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}
input,
textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
textarea {
  min-height: 170px;
  resize: vertical;
}


/* 8. Pricing page --------------------------------------------------------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 1.5rem;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.tier.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.badge {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tier-brand {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.tier h3 {
  margin: 0.1rem 0 0.6rem;
  font-size: 1.9rem;
}
.price {
  margin: 0;
  font: 400 3.2rem/1 var(--font-display);
  color: var(--accent);
}
.price small {
  font: 400 1rem var(--font-body);
  color: var(--muted);
}
.tier ul {
  flex: 1; /* pushes the button to the bottom so all three line up */
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.tier li {
  position: relative;
  padding-left: 1.6rem;
}
.tier li::before {
  content: "\2713"; /* check mark */
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}


/* 9. Privacy policy ------------------------------------------------------- */

.legal {
  max-width: 70ch;
}
.legal h3 {
  margin: 2rem 0 0.5rem;
}
.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2rem;
}
.legal li {
  margin-bottom: 0.4rem;
}


/* 10. Owner tool (#/owner) ------------------------------------------------ */

.owner-panel {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.owner-output {
  min-height: 200px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9rem;
}
.owner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}
