/* Projecto website. One theme that follows the system (light or dark), one accent (teal, the same as the app). */
@font-face { font-family: 'Geist'; src: url('fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f7f8f8;
  --bg-tint: #eef2f1;
  --surface: #ffffff;
  --ink: #11181a;
  --ink-2: #44504f;
  --muted: #5f6b69;
  --line: #dfe5e4;
  --accent: #0f766e;
  --accent-hover: #0c625b;
  --on-accent: #ffffff;
  --accent-soft: #e0f0ee;
  --shadow: 15 118 110; /* tinted shadow colour, rgb channels */
  --r-card: 20px;
  --r-shot: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1112;
    --bg-tint: #101718;
    --surface: #141c1d;
    --ink: #e9f0ef;
    --ink-2: #b6c3c1;
    --muted: #8d9c9a;
    --line: #233030;
    --accent: #3cc4b3;
    --accent-hover: #5fd3c4;
    --on-accent: #05201c;
    --accent-soft: #12302d;
    --shadow: 0 0 0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.ico-lg { width: 30px; height: 30px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Buttons: pill shaped */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s; }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px rgb(var(--shadow) / 0.7); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a, .nav-gh { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-gh:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 22px; }
.nav-gh { display: inline-flex; align-items: center; gap: 8px; }

/* Hero */
.hero { padding: 48px 0 96px; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: 56px; margin-top: 40px; }
h1 { font-size: clamp(2.3rem, 4.5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; text-wrap: balance; max-width: 15em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { max-width: 30em; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-shot { margin-right: -6vw; }
.shot, .big-shot img { border-radius: var(--r-shot); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 40px 80px -30px rgb(var(--shadow) / 0.35), 0 10px 30px -12px rgb(0 0 0 / 0.18); }
.hero-shot .shot { width: 100%; }

/* Sections */
.section { padding: 128px 0; }
.section-tint { background: var(--bg-tint); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.02em; font-weight: 620; }
.sub { margin-top: 18px; max-width: 34em; font-size: 1.15rem; color: var(--ink-2); }
.stack { max-width: 44rem; }

/* Promises: a sticky title beside the list */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.why-title { position: sticky; top: 120px; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.promises { display: grid; gap: 44px; }
.promises li { display: grid; grid-template-columns: 30px 1fr; gap: 22px; }
.promises .ico { color: var(--accent); margin-top: 2px; }
.promises p { margin-top: 8px; color: var(--ink-2); max-width: 30em; }

/* Files demo */
.big-shot { margin-top: 56px; }
.big-shot img { width: min(100%, 1060px); margin-inline: auto; }

/* Bento: 4 cells, 7/5 then 5/7 */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 56px; }
.cell { display: flex; flex-direction: column; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.cell-text { padding: 34px 36px 26px; }
.cell-text p { margin-top: 10px; color: var(--ink-2); max-width: 28em; }
.cell img { width: 100%; margin-top: auto; border-top: 1px solid var(--line); }
.cell-invoices { grid-column: span 7; background: var(--accent-soft); }
.cell-time { grid-column: span 5; }
.cell-tasks { grid-column: span 5; }
.cell-reports { grid-column: span 7; background: var(--accent-soft); }
.cell-time img, .cell-tasks img { flex: 1; min-height: 0; object-fit: cover; object-position: left top; }

/* Local */
.local-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: center; }
.paths { display: grid; gap: 14px; }
.paths > div { padding: 22px 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.path-os { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.paths code { font: 500 16px/1.4 var(--mono); color: var(--ink); overflow-wrap: anywhere; }

/* Download */
.dl-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.dl-main { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 40px; border-radius: var(--r-card); background: var(--accent-soft); border: 1px solid var(--line); }
.dl-os { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; font-weight: 650; letter-spacing: -0.025em; color: var(--accent); }
.dl-main p { color: var(--ink-2); max-width: 28em; }
.dl-main .dl-note { font-size: 14.5px; color: var(--muted); margin-top: auto; }
.dl-others { display: grid; gap: 12px; align-content: start; }
.dl-others li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.dl-others strong { display: block; font-weight: 620; }
.dl-others span { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s; }
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 26px/1 var(--font); color: var(--accent); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--ink-2); max-width: 38em; }
details a { color: var(--accent); }

/* Closing */
.closing { padding: 120px 0; }
.closing-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing .cta-row { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand p { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: flex-start; }
.foot-links a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* Motion: the hero fades up on load, sections rise as they enter (both switched off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-copy > *, .hero-shot { opacity: 0; transform: translateY(22px); animation: rise 0.9s var(--ease) forwards; }
  .hero h1 { animation-delay: 0.05s; }
  .hero-copy .lede { animation-delay: 0.18s; }
  .hero-copy .cta-row { animation-delay: 0.3s; }
  .hero-shot { animation-delay: 0.25s; transform: translateY(34px); }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .promises li:nth-child(2) { transition-delay: 0.08s !important; }
  .promises li:nth-child(3) { transition-delay: 0.16s !important; }
  .promises li:nth-child(4) { transition-delay: 0.24s !important; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Tablet and phone: every multi-column layout collapses to one column */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding: 36px 0 72px; }
  .hero-grid, .why-grid, .local-grid, .dl-grid, .faq { grid-template-columns: 1fr; gap: 44px; }
  .hero-shot { margin-right: 0; }
  .why-title { position: static; }
  .section { padding: 88px 0; }
  .bento { grid-template-columns: 1fr; }
  .cell-invoices, .cell-time, .cell-tasks, .cell-reports { grid-column: auto; }
  .cell-time img, .cell-tasks img { flex: none; height: auto; }
  .closing { padding: 88px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 32px); }
  .nav-gh span { display: none; }
  .nav-end { gap: 14px; }
  .cell-text { padding: 26px 24px 20px; }
  .dl-main { padding: 28px 24px; }
  .dl-others li { flex-direction: column; align-items: flex-start; }
  .cta-row .btn { flex: 1 1 100%; }
}
