/* The public website's only stylesheet. Colours follow the application (deep green,
   lime, warm paper) so its screenshots sit naturally on the page. */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f5ef;
  --tint: #edefe4;
  --surface: #fff;
  --ink: #1c2a23;
  --muted: #55625b;
  --line: #dfe2d6;
  --green: #1f352b;
  --green-soft: #2c4a3c;
  --cream: #f4f1e4;
  --lime: #c8e986;
  --lime-deep: #b7dc6b;
  --lime-wash: #e4f2c2;
  --app: #f7f8fa;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 5; padding: 10px 14px; border-radius: 10px; background: var(--lime); color: var(--green); font-weight: 650; }
.skip:focus { top: 12px; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 13px; background: var(--lime); color: var(--green); font-weight: 680; text-decoration: none; line-height: 1.2; transition: background .15s; }
.button:hover { background: var(--lime-deep); }
.button.small { padding: 10px 15px; font-size: 15px; border-radius: 11px; white-space: nowrap; }
.text-link { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* Header */
.site-header { background: var(--green); color: var(--cream); }
.site-header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lime); color: var(--green); }
.brand-name { font: 620 25px/1 var(--display); letter-spacing: -.015em; }
.site-nav { display: none; gap: 26px; margin-left: 12px; font-size: 15.5px; }
.site-nav a { text-decoration: none; opacity: .82; }
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.site-header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.sign-in { font-size: 15.5px; text-decoration: none; opacity: .9; }
.language { display: flex; gap: 4px; font-size: 13.5px; font-weight: 650; letter-spacing: .04em; }
.language a, .language span { padding: 5px 8px; border-radius: 8px; text-decoration: none; }
.language a { opacity: .68; }
.language a:hover { opacity: 1; }
.language span { background: rgb(255 255 255 / .13); }
@media (min-width: 900px) { .site-nav { display: flex; } }
/* On a phone the hero's own button is right below: the header keeps the name and the language. */
@media (max-width: 560px) { .site-header .button { display: none; } }

/* Hero: the green ends partway down the screenshots, which stand on the page below. */
.hero { color: var(--cream); background: linear-gradient(var(--green) 0, var(--green) calc(100% - 150px), var(--paper) calc(100% - 150px)); overflow: hidden; }
.hero > .wrap:first-child { padding-top: 56px; }
.eyebrow { color: var(--lime); font-size: 13.5px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 15ch; margin-top: 18px; font: 560 clamp(2.6rem, 7.2vw, 4.9rem)/1.02 var(--display); letter-spacing: -.028em; text-wrap: balance; }
.lead { max-width: 58ch; margin-top: 24px; font-size: clamp(1.06rem, 1.6vw, 1.24rem); line-height: 1.55; color: rgb(244 241 228 / .86); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14.5px; color: rgb(244 241 228 / .78); }
.hero-notes li { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes svg { color: var(--lime); }
.hero-stage { position: relative; margin-top: 56px; padding-bottom: 36px; }

/* Frames around real screenshots */
.window { padding: 10px; border-radius: 22px; background: var(--app); border: 1px solid rgb(28 42 35 / .1); box-shadow: 0 30px 70px -28px rgb(15 30 22 / .55), 0 4px 14px rgb(15 30 22 / .08); overflow: hidden; }
.window img { width: 100%; border-radius: 13px; }
.phone { position: relative; width: 100%; max-width: 270px; aspect-ratio: 9 / 17; padding: 9px; border-radius: 38px; background: var(--app); box-shadow: 0 26px 50px -22px rgb(15 30 22 / .6), 0 3px 10px rgb(15 30 22 / .12); overflow: hidden; }
.phone img { width: 100%; }
/* A long screen fades out at the bottom edge instead of being cut. */
.phone::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgb(247 248 250 / 0), var(--app) 80%); z-index: 1; }
/* The bezel is drawn over the screen, so a screen taller than the phone stays inside it. */
.phone::after { content: ""; position: absolute; inset: 0; border: 9px solid #14211b; border-radius: 38px; z-index: 2; }
.hero .window { max-width: 900px; }
.hero-phone { position: absolute; right: var(--gutter); bottom: 0; max-width: 232px; aspect-ratio: 9 / 13.6; }
@media (max-width: 760px) {
  .hero { background: linear-gradient(var(--green) 0, var(--green) calc(100% - 110px), var(--paper) calc(100% - 110px)); }
  .hero-stage { margin-top: 44px; padding-bottom: 28px; }
  /* Show the left of a wide screen at a readable size instead of shrinking all of it. */
  .window { margin-right: calc(var(--gutter) * -1); border-radius: 22px 0 0 22px; padding-right: 0; }
  .window img { width: 760px; max-width: none; border-radius: 13px 0 0 13px; }
  .hero-phone { max-width: 168px; right: calc(var(--gutter) - 4px); }
}

/* Sections */
.section { padding: 96px 0; }
.section.tinted { background: var(--tint); }
#demo.section { padding-top: 0; }
.section-header { max-width: 720px; margin-bottom: 52px; }
.section h2 { font: 560 clamp(1.9rem, 4.2vw, 2.85rem)/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.section-header p { margin-top: 18px; font-size: 1.13rem; color: var(--muted); }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.005em; }
@media (max-width: 760px) { .section { padding: 68px 0; } .section-header { margin-bottom: 36px; } }

.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.features li { padding: 28px 26px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 13px; background: var(--lime-wash); color: var(--green-soft); }
.features p, .roles p, .steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.also { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; margin-top: 30px; padding: 22px 26px; border-radius: var(--radius); background: var(--tint); }
.also h3 { font-size: 1rem; }
.also ul { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15.5px; }
.also li, .view li { display: flex; align-items: flex-start; gap: 9px; }
.also svg, .view li svg { flex: none; margin-top: 5px; color: #5e8a2a; }

.steps { display: grid; gap: 44px 34px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: none; }
.steps li { display: grid; gap: 26px; justify-items: start; align-content: start; }
.steps .phone { justify-self: center; }
.steps li > div { position: relative; padding-left: 52px; }
.step-number { position: absolute; left: 0; top: -4px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--lime); font: 600 18px/1 var(--display); }

.views { display: grid; gap: 96px; }
.view { display: grid; gap: 34px; }
.view-text { display: grid; gap: 22px 64px; }
.view-text p { margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.view ul { display: grid; gap: 10px; }
@media (min-width: 900px) { .view-text { grid-template-columns: 1fr 1fr; align-items: end; } }

.roles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (min-width: 1060px) { .roles { grid-template-columns: repeat(5, 1fr); } }
.roles li { padding: 24px 22px 26px; border-radius: var(--radius); background: var(--surface); }
.roles .feature-icon { width: 42px; height: 42px; margin-bottom: 16px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; font-weight: 650; font-size: 1.08rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 28px/1 var(--display); color: var(--green-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2px 24px; max-width: 64ch; color: var(--muted); }

.demo { position: relative; padding: clamp(40px, 7vw, 76px) clamp(24px, 6vw, 72px); border-radius: 30px; background: radial-gradient(120% 140% at 100% 0, #35584a 0, var(--green) 56%); color: var(--cream); overflow: hidden; }
.demo h2 { max-width: 18ch; }
.demo > p { max-width: 54ch; margin-top: 18px; font-size: 1.12rem; color: rgb(244 241 228 / .85); }
.demo .button { margin-top: 30px; }
.demo .demo-or { margin-top: 18px; font-size: 15.5px; }

/* Footer */
.site-footer { padding: 56px 0 44px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 36px 72px; align-items: flex-start; }
.site-footer .brand { color: var(--ink); margin-bottom: 14px; }
.site-footer .brand-mark { background: var(--green); color: var(--lime); }
.site-footer h2 { margin-bottom: 10px; font: 650 13px/1.4 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.site-footer li + li { margin-top: 7px; }
.site-footer .language { margin-left: auto; color: var(--ink); }
.site-footer .language span { background: var(--tint); }
.site-footer-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 4px; }

/* Legal and other plain pages */
.legal { padding-top: 64px; padding-bottom: 96px; }
.legal h1 { font: 560 clamp(2.1rem, 5vw, 3rem)/1.08 var(--display); letter-spacing: -.02em; margin-bottom: 26px; }
.legal h2 { margin: 44px 0 12px; font: 600 1.5rem/1.2 var(--display); letter-spacing: -.01em; }
.legal h3 { margin: 28px 0 8px; }
.legal p, .legal ul, .legal ol, .legal .table-scroll { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ol { list-style: decimal; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { text-underline-offset: 3px; }
.legal .button { margin-top: 12px; }
.table-scroll { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.legal th, .legal td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal-back { margin-top: 48px !important; }
