/* timeswiper.app. Colours match the app: night-blue hero, green work hours, amber early/late. */
:root {
  --bg: #f5f5fa; --card: #ffffff; --text: #111114; --muted: #5f6070; --line: #e2e2ea;
  --accent: #3a4fd0; --accent-text: #ffffff; --work: #1f9d47; --shoulder: #c77700; --night: #5b4fc4;
  --hero: linear-gradient(135deg, #141838, #2b3a8c 60%, #5b4fc4);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c14; --card: #171823; --text: #f2f2f7; --muted: #a0a1b2; --line: #2a2b3a;
    --accent: #8c9aff; --accent-text: #0b0c14; --work: #34c759; --shoulder: #ff9f0a; --night: #a99cff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header and footer */
.top { display: flex; align-items: center; gap: 12px; padding: 16px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: inherit; text-decoration: none; font-weight: 500; opacity: .85; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; text-decoration: underline; }
footer.site { margin-top: 0; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: inherit; }
footer.site span { margin-right: auto; }

/* Hero */
.hero { background: var(--hero); color: #fff; }
.hero .top nav a, .hero .brand { color: #fff; }
.hero-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 40px 0 0; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; }
.hero p.lead { font-size: 20px; opacity: .88; margin: 0 0 26px; max-width: 30em; }
.hero .shot { align-self: end; text-align: center; }
.hero .shot img { width: min(320px, 80%); border-radius: 36px 36px 0 0; box-shadow: 0 20px 60px rgba(0,0,0,.45); display: block; margin: 0 auto; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 13px; font-weight: 600; text-decoration: none;
       background: var(--accent); color: var(--accent-text); border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.hero .btn { background: #fff; color: #1b1f4b; }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.platforms { margin-top: 18px; font-size: 14px; opacity: .75; }

/* Sections */
section { padding: 64px 0 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.015em; line-height: 1.15; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.strip { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 16px; gap: 2px; }
.strip i { flex: 1; background: color-mix(in srgb, var(--night) 35%, transparent); }
.strip i.w { background: var(--work); } .strip i.s { background: var(--shoulder); }
.plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plans .price { font-size: 30px; font-weight: 700; margin: 4px 0 12px; }
.plans .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plans ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plans .pro { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* Text pages */
.page { padding-top: 28px; padding-bottom: 72px; }
.page h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.02em; margin: 0 0 8px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.updated { color: var(--muted); margin-top: 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 2px; color: var(--muted); }

/* Forms */
form.request { display: grid; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
form.request .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
                          background: var(--bg); color: var(--text); width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Bait for scripts: people never see or tab into it. */
.hp { position: absolute; left: -9999px; }
.notice { border-radius: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--shoulder) 16%, transparent); display: none; }
.notice.show { display: block; }

/* Inbox (/admin) */
.inbox main { max-width: 820px; margin: 0 auto; padding: 24px 20px 60px; }
.inbox .tabs { display: flex; gap: 16px; margin-bottom: 20px; }
.inbox .tabs a.on { font-weight: 700; text-decoration: none; color: var(--text); }
.inbox article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.inbox article header { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 14px; color: var(--muted); }
.inbox article header strong { color: var(--text); font-size: 16px; }
.inbox article header time { margin-left: auto; }
.inbox article p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.inbox article footer { display: flex; gap: 14px; align-items: center; }
.inbox button { font: inherit; padding: 6px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; }
.tag { font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; color: #fff; background: var(--accent); }
.tag.support { background: var(--shoulder); }
.empty { color: var(--muted); }

@media (max-width: 760px) {
  .hero-body { grid-template-columns: 1fr; padding-top: 24px; }
  form.request .row { grid-template-columns: 1fr; }
  section { padding-top: 48px; }
}

/* ---- Home page: devices ---- */
/* Frames are drawn in CSS around real screenshots, so retaking a screenshot is all an update needs. */
.device { display: block; background: #0d0d12; box-shadow: 0 24px 60px rgba(8, 10, 40, .35); }
.device img { display: block; width: 100%; }
.phone { width: 270px; padding: 9px; border-radius: 46px; }
.phone img { border-radius: 38px; }
.tablet { width: 460px; padding: 14px; border-radius: 30px; }
.tablet img { border-radius: 16px; }
.watch { width: 150px; padding: 12px; border-radius: 40px; position: relative; }
.watch img { border-radius: 28px; }
/* Digital crown */
.watch::after { content: ""; position: absolute; right: -6px; top: 26%; width: 7px; height: 30px; border-radius: 3px; background: #2a2a33; }
.window { width: 330px; border-radius: 14px; overflow: hidden; background: #4a4a4a; }
.bar { width: min(560px, 100%); border-radius: 12px; overflow: hidden; }

/* Hero */
.hero.home { overflow: hidden; }
.hero.home .hero-copy { text-align: center; max-width: 780px; margin: 0 auto; padding: 44px 0 8px; }
.hero.home p.lead { margin-left: auto; margin-right: auto; }
.hero.home .cta { justify-content: center; }
.lineup { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 44px; }
/* Sink the lineup into the hero's bottom edge so the devices look set on it. */
.lineup > * { flex: none; margin-bottom: -70px; }
.lineup .phone { width: 230px; z-index: 2; }
.lineup .tablet { width: 400px; }
.lineup .window { width: 290px; margin-bottom: -40px; }
.lineup .watch { margin-bottom: 30px; }

/* Platform strip under the hero */
.on { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 110px; }
.on a { text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line);
        padding: 8px 16px; border-radius: 99px; font-weight: 600; font-size: 15px; }
.on a:hover { border-color: var(--accent); }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature .art { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.feature:nth-child(even) .art { order: 2; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; line-height: 1.15; margin: 8px 0 12px; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.feature ul { margin: 0; padding-left: 20px; color: var(--muted); }
.feature li { margin-bottom: 6px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.pro-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--accent-text); vertical-align: middle; margin-left: 6px; }
.mac-art { flex-direction: column; }

/* Colour key */
.key { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.key span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

.band { margin-top: 88px; padding: 56px 0; background: var(--hero); color: #fff; text-align: center; }
.band h2 { margin-bottom: 8px; }
.band p { opacity: .85; margin: 0 0 22px; }
.band .btn { background: #fff; color: #1b1f4b; }
.band .cta { justify-content: center; }

@media (max-width: 900px) {
  /* The four devices don't fit side by side: let them scroll. */
  .lineup { justify-content: flex-start; overflow-x: auto; padding: 0 20px 0; margin-left: -20px; margin-right: -20px; scroll-snap-type: x proximity; }
  .lineup > * { scroll-snap-align: center; }
  /* Most visitors here are on a phone: lead with the phone. */
  .lineup .phone { order: -1; }
  .lineup .tablet { width: 340px; }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .art { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .tablet { width: min(460px, 100%); }
}
