/* duskjournal.app: one stylesheet for all pages. Colours come from the app icon's dusk sky. */
:root {
  --page: #fbf8f5;
  --surface: #ffffff;
  --well: #f4efea;
  --text: #1c1d24;
  --body: #3a3b45;
  --muted: #6c6c78;
  --line: #e9e3dc;
  --accent: #4b58a6;
  --accent-text: #3f4c99;
  --peach: #e9976b;
  --sky-1: #1b234a;
  --sky-2: #3a4482;
  --sky-3: #f0b086;
  --hill-1: #3b4683;
  --hill-2: #262f5a;
  --shadow: 0 1px 2px rgba(24, 22, 40, .05), 0 12px 40px rgba(24, 22, 40, .10);
  --shadow-lg: 0 2px 6px rgba(14, 16, 40, .10), 0 30px 80px rgba(14, 16, 40, .28);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #10121f;
    --surface: #171a2b;
    --well: #1b1f33;
    --text: #f3f1f6;
    --body: #d5d4de;
    --muted: #9b9aab;
    --line: #262a40;
    --accent: #8f9cf0;
    --accent-text: #a8b3ff;
    --peach: #f2a77d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 80px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 {
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0;
}
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--peach); margin: 0 0 14px;
}

/* Header */
.top {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px max(16px, calc((100% - 1120px) / 2));
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: rgba(255, 255, 255, .82); font-size: 15px; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav .lang {
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 3px 11px; font-size: 13px; font-weight: 600;
}
@media (max-width: 640px) { .nav a:not(.lang) { display: none; } }

/* Hero: the icon's sky, a low sun and two hills that run into the page */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 46%, #8d7fa6 66%, var(--sky-3) 84%, #f6cba6 100%);
  color: #fff; text-align: center;
  padding: 132px 0 0;
}
.hero::before { /* stars, very faint */
  content: ""; position: absolute; inset: 0 0 50%; z-index: -1; opacity: .5;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 47% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 81% 26%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 36%, #fff 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 38% 33%, #fff 50%, transparent 51%);
}
.sun {
  position: absolute; z-index: -1; left: 50%; bottom: 300px; width: 560px; height: 560px; translate: -50% 50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3e4 0 17%, rgba(255, 226, 196, .75) 24%, rgba(255, 196, 150, .25) 45%, transparent 70%);
}
.hills { position: absolute; z-index: -1; inset: auto 0 0; height: 420px; }
.hills svg { width: 100%; height: 100%; display: block; }
.hero .icon {
  width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(10, 12, 40, .45), inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.hero h1 { color: #fff; font-size: clamp(40px, 7vw, 72px); font-weight: 700; max-width: 14ch; margin: 0 auto; }
.hero .lead { font-size: clamp(18px, 2.2vw, 21px); color: rgba(255, 255, 255, .86); max-width: 34em; margin: 20px auto 0; line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; align-items: center; margin-top: 34px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(12, 14, 34, .55); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; border-radius: 14px; padding: 11px 20px 11px 16px; font-weight: 600; font-size: 16px; line-height: 1.2; text-align: left;
}
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.store:hover { text-decoration: none; background: rgba(12, 14, 34, .7); }
.price { color: rgba(255, 255, 255, .85); font-size: 15px; }
.price strong { color: #fff; }
.price, .hero .lead { text-shadow: 0 1px 12px rgba(20, 22, 60, .35); }
@media (max-width: 640px) {
  .sun { bottom: 200px; width: 420px; height: 420px; }
  .hills { height: 240px; }
  .price { background: rgba(12, 14, 34, .35); border-radius: 999px; padding: 4px 12px; }
}

.devices { position: relative; margin: 64px auto 0; width: min(1040px, 100% - 32px); padding-bottom: 72px; }
.mac {
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg);
  outline: 1px solid rgba(255, 255, 255, .14); background: #fff;
}
.phone {
  position: absolute; right: -8px; bottom: 28px; width: 23%; min-width: 150px;
  border-radius: 13% / 6%; padding: 1.2%; background: #0c0d12;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2b2d36;
}
.phone img { border-radius: 11.5% / 5.3%; }
@media (max-width: 640px) {
  .devices { padding-bottom: 40px; }
  .phone { width: 34%; min-width: 0; right: -4px; bottom: 12px; }
}

/* Sections */
section { padding: 112px 0; }
section + section { padding-top: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.flip > :first-child { order: 0; }
}
.split h2, .center h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; }
.split p.lead, .center p.lead { font-size: 19px; color: var(--muted); margin: 18px 0 0; max-width: 32em; }
.center { text-align: center; }
.center p.lead { margin-inline: auto; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.points b { display: block; color: var(--text); font-weight: 600; }
.points span { color: var(--muted); font-size: 16px; }
.dot {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--well); color: var(--accent); font-size: 17px; line-height: 1;
}
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); outline: 1px solid var(--line); background: var(--surface); }
.phones { display: flex; gap: 20px; justify-content: center; }
.phones .phone { position: static; width: 46%; max-width: 290px; min-width: 0; }
.phones .phone:nth-child(2) { margin-top: 48px; }
kbd {
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 7px; padding: 4px 7px;
}

/* Privacy band */
.private {
  margin: 0 16px; border-radius: 32px; color: #fff; overflow: hidden; position: relative; isolation: isolate;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2) 60%, #6c5d8c);
}
.private::after {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 178, .55), transparent 65%);
}
.private h2 { color: #fff; }
.private .lead { color: rgba(255, 255, 255, .78) !important; }
.private .eyebrow { color: #ffc9a3; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; text-align: left; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.tile {
  border-radius: var(--radius); padding: 24px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.tile h3 { color: #fff; font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 15.5px; }

/* Small features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; text-align: left; }
.feature h3 { font-size: 17px; letter-spacing: -0.01em; margin: 12px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Price */
.buy {
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow);
  padding: 56px 32px; text-align: center;
}
.buy .amount { font-size: clamp(56px, 8vw, 84px); font-weight: 700; color: var(--text); letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; }
.buy .store { background: var(--sky-1); border-color: transparent; margin-top: 26px; }
.req { color: var(--muted); font-size: 14.5px; margin: 26px auto 0; max-width: 36em; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 112px; padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); }

/* Text pages (privacy, support, imprint) */
.page-head {
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 80%, #6f6296); color: #fff;
  padding: 128px 0 64px; text-align: center;
}
.page-head h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); }
.page-head p { color: rgba(255, 255, 255, .78); margin: 12px 0 0; }
.prose { padding: 56px 0 0; }
.prose h2 { font-size: 24px; margin: 44px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--body); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin: 18px 0; }
.card p:first-child { margin-top: 0; } .card p:last-child { margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; color: var(--text); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Arrival */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .26s; } .rise.d4 { animation-delay: .4s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
