/* The homepage and privacy page of jottem.app, in Dutch and English (no build step; colours and
   type from the Jottem tokens: Manrope for headings, Open Sans for text). */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --page: #fefdfb;
  --ink: #171717;
  --ink-soft: #38352e;
  --ink-muted: #736854;
  --line: #e8e2da;
  --sunken: #f6f2ec;
  --brand: #ffd47d;
  --brand-deep: #efb236;
  --on-brand: #3d2f0a;
  --accent: #d9603a;
  --focus: #b07a00;
  --display: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

/* The tilted screenshots stick out a little; never let them scroll the page sideways. */
main { overflow-x: clip; }

a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.column { max-width: 560px; margin: 0 auto; }

header.top { display: flex; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.logo img { width: 32px; height: 32px; }
.lang { font: 600 14px/1 var(--text); color: var(--ink-muted); text-decoration: none; padding: 8px 6px; }
.lang:hover { color: var(--ink); }

/* Buttons as in the app (j-btn): a pill with a hairline border, no shadow; a bit taller for the web. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 14px/1 var(--text); text-decoration: none; white-space: nowrap;
  background: #fff; color: var(--ink);
}
.button:hover { background: var(--sunken); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button.brand { height: 44px; padding: 0 20px; font-size: 15px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.button.brand:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

/* Hero: the Figma homepage, a centred column under the app icon. */
.hero { padding: 48px 0 24px; text-align: center; }
.hero .icon { width: 80px; height: 80px; margin: 0 auto 24px; }
.hero .name { font: 800 40px/1 var(--display); letter-spacing: -0.04em; margin: 0; }
.hero .slogan { font: 700 13px/1.6 var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 8px 0 0; }
.intro { text-align: left; padding: 48px 0 8px; }
.intro h1 { font: 700 clamp(26px, 5vw, 32px)/1.15 var(--display); letter-spacing: -0.03em; margin: 0 0 24px; }
.intro p { font: 500 18px/1.5 var(--display); margin: 0 0 16px; }
.intro .motto { color: var(--accent); font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.cta .note { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* The screenshots: a tilted browser window with a phone leaning on it, on a yellow blob. */
.shots { position: relative; margin: 56px auto 24px; padding: 0 4% 9%; max-width: 1040px; }
.shots::before {
  content: ""; position: absolute; inset: 8% -2% 0 6%; z-index: -1;
  background: var(--brand); border-radius: 48% 52% 44% 56% / 58% 46% 54% 42%;
  transform: rotate(-3deg);
}
.browser {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(61, 47, 10, 0.35), 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: rotate(-1.5deg);
}
.browser .bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--sunken); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2d9cc; }
.browser .bar span { margin: 0 auto; font: 600 12px/1 var(--text); color: var(--ink-muted); background: #fff; border-radius: 999px; padding: 5px 14px; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 25%; min-width: 120px;
  border: 7px solid var(--ink); border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 48px -12px rgba(23, 23, 23, 0.45);
  transform: rotate(5deg);
}
.sticker {
  position: absolute; left: 0; bottom: 4%; max-width: 46%;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 14px;
  font: 700 15px/1.3 var(--display); box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
}
.sticker small { display: block; font: 600 12px/1.4 var(--text); color: var(--ink-muted); }

/* Principles, as in Figma: one column, bold title, plain text. */
.principles { padding-top: 48px; padding-bottom: 72px; }
.principles h2 { font: 700 18px/1.5 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 32px; }
.principle { margin: 0 0 40px; }
.principle h3 { font: 700 16px/1.5 var(--display); margin: 0 0 8px; }
.principle h3 span { font-weight: 400; }
.principle p { margin: 0 0 12px; }
.closing { text-align: center; padding-top: 8px; padding-bottom: 72px; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .europe { margin-left: auto; }

.text { padding-top: 32px; padding-bottom: 64px; }
.text > * { max-width: 680px; }
.text h1 { font: 800 36px/1.15 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; }
.text h2 { font: 700 20px/1.3 var(--display); margin: 32px 0 8px; }
.text .meta { color: var(--ink-muted); margin: 0 0 24px; }
.text ul { padding-left: 20px; }

@media (max-width: 640px) {
  .shots { padding: 0 0 18%; margin-top: 40px; }
  .shots::before { inset: 10% -16px 0 -16px; }
  .browser { transform: none; border-radius: 10px; }
  .browser .bar { height: 24px; }
  .browser .bar span { display: none; }
  .phone { width: 36%; border-width: 5px; border-radius: 20px; right: 2%; }
  .sticker { font-size: 13px; padding: 6px 10px; bottom: 2%; }
  .sticker small { display: none; }
  footer .europe { margin-left: 0; }
}
