/* teams.lasttime.today coming-soon site. Uses tokens.css (copied from the lasttime.today website) only.
   Logical properties throughout so the Arabic page mirrors. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--color-accent); text-underline-offset: 0.15em; }
a:hover { color: var(--color-accent-pressed); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

.wrap { max-width: calc(960px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-header { border-block-end: 1px solid var(--color-separator); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-3); }
.lockup {
  display: inline-flex; align-items: center; gap: var(--space-3);
  min-height: var(--target-min);
  color: var(--color-ink); text-decoration: none;
  font-size: 1.25rem; font-weight: var(--weight-bold); letter-spacing: -0.025em; white-space: nowrap;
}
.lockup:hover { color: var(--color-ink); }
.lockup b { color: var(--color-accent); font-weight: inherit; }
.lockup .team { font-weight: var(--weight-semibold); padding-inline-start: var(--space-3); border-inline-start: 1.5px solid currentColor; }
.mark { width: 36px; height: 15px; flex: none; color: var(--color-accent); }
.lang { display: inline-flex; align-items: center; min-height: var(--target-min); font-size: var(--text-small); }

/* Sections */
section { padding-block: var(--space-8); }
section + section { border-block-start: 1px solid var(--color-separator); }
.alt { background: var(--color-surface-alt); }

h1 {
  font-size: var(--text-display); line-height: var(--leading-tight);
  font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight);
  margin-block-end: var(--space-5); max-width: 18em;
}
h2 { font-size: var(--text-title); line-height: var(--leading-title); letter-spacing: var(--tracking-tight); margin-block-end: var(--space-5); }
h3 { font-size: var(--text-body-lg); line-height: var(--leading-heading); margin-block-end: var(--space-1); }
.lead { font-size: var(--text-body-lg); max-width: 40em; margin-block-end: var(--space-6); }
.muted { color: var(--color-ink-secondary); }
.small { font-size: var(--text-small); }
.status { font-weight: var(--weight-semibold); color: var(--color-accent); margin-block-end: var(--space-3); }

/* Buttons: rounded rectangles, never pills */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-end: var(--space-7); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--control-height); padding-inline: var(--space-5);
  border-radius: var(--radius-control); border: 1.5px solid var(--color-accent);
  font-weight: var(--weight-semibold); text-decoration: none;
}
.btn.primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn.primary:hover { background: var(--color-accent-pressed); border-color: var(--color-accent-pressed); color: var(--color-on-accent); }
.btn.secondary { color: var(--color-accent); }

/* Example card: last done per job, like the owner report */
.example { border: 1px solid var(--color-separator); border-radius: var(--radius-lg); padding: var(--space-5); background: var(--color-surface); max-width: 640px; }
.example-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; margin-block-end: var(--space-3); }
.example-head strong { font-size: var(--text-body-lg); }
.example ul { list-style: none; padding: 0; }
.example li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-1) var(--space-4); padding-block: var(--space-3); border-block-start: 1px solid var(--color-separator); }
.example .job { font-weight: var(--weight-semibold); }
.example .when { color: var(--color-ink-secondary); font-size: var(--text-small); grid-column: 1; }
.example .ago { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: var(--weight-semibold); color: var(--color-accent); white-space: nowrap; }
.example .note { margin-block-start: var(--space-3); font-size: var(--text-caption); color: var(--color-ink-secondary); }

/* Feature and audience grids */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6) var(--space-7); }
.grid.four { grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 560px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.grid p { color: var(--color-ink-secondary); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-accent); margin-block-end: var(--space-3); }

/* Price */
.prices { width: 100%; max-width: 640px; border-collapse: collapse; margin-block-end: var(--space-3); }
.prices td { padding-block: var(--space-4); border-block-end: 1px solid var(--color-separator); vertical-align: top; }
.prices td span { display: block; font-size: var(--text-small); color: var(--color-ink-secondary); }
.prices .amount { text-align: end; font-weight: var(--weight-semibold); white-space: nowrap; padding-inline-start: var(--space-4); }

.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6) var(--space-7); }
.offer ul { padding-inline-start: 1.2em; margin-block: var(--space-3) var(--space-5); }
.offer li + li { margin-block-start: var(--space-1); }

/* Footer */
footer { padding-block: var(--space-7); font-size: var(--text-caption); color: var(--color-ink-secondary); border-block-start: 1px solid var(--color-separator); }
footer p + p { margin-block-start: var(--space-2); }

/* Arabic */
[lang="ar"] h1, [lang="ar"] h2 { letter-spacing: 0; line-height: var(--leading-title); }
[lang="ar"] .lockup [lang="en"] { letter-spacing: -0.025em; }
/* The lockup stays left to right on the Arabic page, as on the offer sheet, so the mark is not mirrored. */
.gap-top { margin-block-start: var(--space-6); }

/* Use-case carousel: radio buttons pick the slide, so it works without scripts; carousel.js only
   advances it and shows the pause button. */
.carousel { margin-block-start: var(--space-7); }
.carousel input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-end: var(--space-5); }
.tabs label, .tabs .pause {
  display: inline-flex; align-items: center; min-height: var(--target-min); padding-inline: var(--space-4);
  border: 1px solid var(--color-separator); border-radius: var(--radius-control);
  background: var(--color-surface); color: var(--color-ink); font: inherit; font-size: var(--text-small); cursor: pointer;
}
.tabs .pause { margin-inline-start: auto; color: var(--color-ink-secondary); }
#uc1:checked ~ .tabs [for="uc1"], #uc2:checked ~ .tabs [for="uc2"], #uc3:checked ~ .tabs [for="uc3"] {
  border-color: var(--color-accent); color: var(--color-accent); font-weight: var(--weight-semibold);
}
#uc1:focus-visible ~ .tabs [for="uc1"], #uc2:focus-visible ~ .tabs [for="uc2"], #uc3:focus-visible ~ .tabs [for="uc3"] {
  outline: 3px solid var(--color-focus); outline-offset: 2px;
}
.slide { display: none; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
#uc1:checked ~ .s1, #uc2:checked ~ .s2, #uc3:checked ~ .s3 { display: grid; animation: slide-in var(--duration-slow) var(--ease-standard); }
@media (min-width: 900px) { .slide { grid-template-columns: 2fr 3fr; gap: var(--space-8); } }
.slide-text h2 { font-size: var(--text-heading); line-height: var(--leading-heading); letter-spacing: 0; margin-block-end: var(--space-3); }
.slide-text p { color: var(--color-ink-secondary); }
.carousel > .note { margin-block-start: var(--space-4); font-size: var(--text-caption); color: var(--color-ink-secondary); }
@keyframes slide-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #uc1:checked ~ .s1, #uc2:checked ~ .s2, #uc3:checked ~ .s3 { animation: none; } }

/* ---- Screens and frames (screenshots are real prototype screens) ---- */
.shot { display: block; width: 100%; height: auto; }
.frame-browser { border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--color-separator); }
.frame-browser .bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-block-end: 1px solid var(--color-separator); background: var(--color-surface-alt); }
.frame-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-separator); }
.frame-browser .bar span { margin-inline-start: 10px; font-size: var(--text-caption); color: var(--color-ink-secondary); }
.frame-phone { border-radius: 40px; background: var(--color-phone-bezel); padding: 9px; box-shadow: var(--shadow-2); }
.frame-phone img { border-radius: 31px; }
.frame-tablet { border-radius: 28px; background: var(--color-phone-bezel); padding: 12px; box-shadow: var(--shadow-2); }
.frame-tablet img { border-radius: 16px; }

/* ---- Hero composition ---- */
.hero { padding-block-end: var(--space-7); overflow: hidden; }
.hero-visual { position: relative; margin-block-start: var(--space-7); padding-inline-end: 12%; }
.hero-visual .frame-phone { position: absolute; inset-inline-end: 0; bottom: -40px; width: 24%; min-width: 150px; }
.hero-visual .toast { position: absolute; inset-inline-start: 46%; bottom: 14%; display: flex; gap: 10px; align-items: center; background: var(--color-ink); color: var(--color-bg); padding: 12px 16px; border-radius: var(--radius-md); box-shadow: var(--shadow-2); font-size: var(--text-small); max-width: 300px; }
.hero-visual .toast svg { flex: none; color: #3CC7B6; }
.hero-visual .trail { position: absolute; inset-inline-start: 58%; bottom: 4%; width: 24%; height: 22%; color: var(--color-accent); pointer-events: none; }
@media (max-width: 720px) {
  .hero-visual { padding-inline-end: 0; }
  .hero-visual .frame-phone { position: relative; width: 62%; margin: -60px auto 0; bottom: 0; inset-inline-end: auto; }
  .hero-visual .toast, .hero-visual .trail { display: none; }
}

.kicker { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-accent); margin-block-end: var(--space-2); }
.section-lead { font-size: var(--text-body-lg); color: var(--color-ink-secondary); max-width: 44em; margin-block-end: var(--space-7); }

/* ---- Owner story: a dot timeline down the side ---- */
.timeline { position: relative; display: flex; flex-direction: column; gap: var(--space-8); padding-inline-start: 44px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--color-accent-line); }
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); align-items: center; }
.scene::before { content: ""; position: absolute; inset-inline-start: -41px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 5px var(--color-bg); }
.scene.last::before { width: 30px; height: 30px; inset-inline-start: -47px; top: 0; }
.scene .when { font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-accent); }
.scene h3 { font-size: var(--text-heading); margin-block: var(--space-1) var(--space-3); }
.scene p { color: var(--color-ink-secondary); }
.scene .art.narrow { max-width: 300px; justify-self: center; }
@media (max-width: 820px) { .scene { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---- Staff story on a colour field ---- */
.field { background: var(--color-field); color: var(--color-on-field); }
.field h2, .field h3 { color: var(--color-on-field); }
.field a { color: var(--color-on-field); }
.day { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
@media (max-width: 900px) { .day { grid-template-columns: 1fr; } }
.day ol { list-style: none; padding: 0; margin: 0; position: relative; display: flex; flex-direction: column; gap: var(--space-5); padding-inline-start: 36px; }
.day ol::before { content: ""; position: absolute; inset-inline-start: 9px; top: 8px; bottom: 8px; width: 3px; background: var(--color-field-line); border-radius: 2px; }
.day li { position: relative; }
.day li::before { content: ""; position: absolute; inset-inline-start: -33px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--color-field-dot); }
.day li.big::before { width: 24px; height: 24px; inset-inline-start: -38px; top: 0; }
.day time { font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; margin-inline-end: var(--space-2); }
.day li p { margin-top: 2px; opacity: .92; }
.phones { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.phones .frame-phone:nth-child(2) { margin-top: var(--space-8); }
.phones .frame-phone:nth-child(3) { margin-top: var(--space-6); }
@media (max-width: 560px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } .phones .frame-phone:nth-child(3) { display: none; } }

/* ---- Two-up blocks ---- */
.twoup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; }
.twoup.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.twoup.flip > :first-child { order: 2; }
@media (max-width: 900px) { .twoup, .twoup.flip { grid-template-columns: 1fr; } .twoup.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.checks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checks svg { flex: none; color: var(--color-accent); margin-top: 3px; }
.stack { position: relative; }
.stack .frame-browser.back { width: 88%; }
.stack .email { position: absolute; inset-inline-end: 0; bottom: -30px; width: 42%; border-radius: var(--radius-md); box-shadow: var(--shadow-2); overflow: hidden; border: 1px solid var(--color-separator); }
.tablets { position: relative; padding-block-end: 12%; }
.tablets .frame-tablet:first-child { width: 78%; }
.tablets .frame-tablet:last-child { position: absolute; inset-inline-end: 0; bottom: 0; width: 56%; }
.report-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 28px rgba(0,0,0,.12)); }
.wrap.wide { max-width: calc(1160px + 2 * var(--gutter)); }
.field .kicker { color: var(--color-on-field); opacity: .85; }
.stack .email { height: auto; display: block; }
.scene::before { top: calc(50% - 9px); }
.scene.last::before { top: calc(50% - 15px); }
.scene .art.narrow { max-width: 260px; }
@media (max-width: 820px) { .scene::before { top: 6px; } .scene.last::before { top: 0; } }
