/* WeekSign website. Colors and fonts are the app's (lib/core/tokens.dart). */
@font-face { font-family: 'Instrument Sans'; src: url(fonts/InstrumentSans.ttf) format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/JetBrainsMono.ttf) format('truetype'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url(fonts/Caveat.ttf) format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #16213E;
  --paper: #F6F2E8;
  --card: #FFFFFF;
  --line: #DDD5C3;
  --seg: #EAE3D2;
  --muted: #6B6455;
  --body2: #4A4435;
  --ink-soft: #B9C0D6;
  --accent: #B33A2F;
  --green: #3F6B4F;
  --green-tint: #E3EDE5;
  --green-text: #2F5340;
  --amber-tint: #F7E9D9;
  --amber-text: #5E4310;
  --ui: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sign: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--ui); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 10px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.2px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { text-decoration: none; color: var(--body2); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }
@media (max-width: 480px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid var(--ink); white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 48px 64px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 18px; }
.hero h1 .sig { font-family: var(--sign); font-weight: 700; color: var(--accent); letter-spacing: 0; font-size: 1.15em; }
.hero p.lead { font-size: 20px; color: var(--body2); margin: 0 0 28px; max-width: 34ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 24px; } }

/* The timesheet card in the hero */
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px rgba(22, 33, 62, .10); max-width: 420px; justify-self: center; width: 100%; }
.sheet .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sheet .head b { font-size: 17px; }
.day { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--seg); font-size: 15px; }
.day .h { font-family: var(--mono); font-weight: 700; }
.day.off { color: var(--muted); }
.total { display: flex; justify-content: space-between; padding: 12px 0 4px; font-weight: 700; }
.total .h { font-family: var(--mono); font-size: 20px; }
.signed { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--green-tint); color: var(--green-text); display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.signed .who { font-family: var(--sign); font-size: 26px; line-height: 1; color: var(--ink); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.12; letter-spacing: -.6px; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.intro { color: var(--body2); max-width: 60ch; margin: 0 0 32px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
section.alt .card { background: var(--paper); }
section:not(.alt) .card { background: var(--card); }
.card p { margin: 0; color: var(--body2); font-size: 16px; }
.step { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.taps { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--green-text); background: var(--green-tint); border-radius: 999px; padding: 3px 10px; margin-top: 12px; }
.soon { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--amber-text); background: var(--amber-tint); border-radius: 999px; padding: 2px 9px; vertical-align: 3px; margin-inline-start: 6px; }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.ticks li { padding-inline-start: 30px; position: relative; color: var(--body2); }
ul.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232F5340' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
ul.ticks li b { color: var(--ink); }

.promise { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 36px; }
.promise h2 { color: var(--paper); }
.promise p { color: var(--ink-soft); margin: 0; }
.promise .grid3 { margin-top: 24px; }
.promise h3 { color: var(--paper); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; font-family: var(--mono); color: var(--muted); }
details[open] summary::after { content: '–'; }
details p { color: var(--body2); margin: 10px 0 0; }

/* Text pages */
.page { padding-block: 24px 64px; }
.page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1px; margin: 12px 0 8px; line-height: 1.1; }
.page h2 { font-size: 22px; letter-spacing: -.2px; margin: 36px 0 8px; }
.page p, .page li { color: var(--body2); }
.page table { border-collapse: collapse; width: 100%; font-size: 15px; }
.page th, .page td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.page th { font-weight: 600; color: var(--ink); }
.tablewrap { overflow-x: auto; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 24px 0; }
.contact a.mail { font-family: var(--mono); font-weight: 700; font-size: 18px; word-break: break-all; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* App screenshots */
.shots { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 28px; align-items: center; }
.shots .ticks { margin-top: 8px; }
figure.phone { margin: 0; background: var(--ink); padding: 8px; border-radius: 30px; box-shadow: 0 18px 40px rgba(22, 33, 62, .16); }
figure.phone img { display: block; width: 100%; height: auto; border-radius: 23px; }
@media (max-width: 860px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shots > div { grid-column: 1 / -1; }
}
