/* TrueNap — shared styles. Started from the ActuallyDoIt site's stylesheet (itself from the
   TulipByte Studio site), with the app icon's orange (AppIcon.icon) as the accent. Light and dark
   follow the system, like the app's default theme. The light accent is a shade darker than the
   icon's #D95700 so links and button text keep 4.5:1 contrast. */

:root {
  --bg: #fff6ee;
  --surface: #ffffff;
  --surface-alt: #fcebdd;
  --text: #1c1c1e;
  --text-muted: #6e6259;
  --border: #f0dfd0;
  --accent: #b84a00;
  --accent-hover: #943b00;
  --accent-soft: #ffe5d1;
  --on-accent: #ffffff;
  --glow: rgba(255, 104, 1, 0.16);
  --icon-shadow: rgba(255, 104, 1, 0.35);
  --radius: 14px;
  --max-width: 1080px;
  --shadow: 0 1px 2px rgba(60, 30, 10, 0.04), 0 8px 24px rgba(60, 30, 10, 0.06);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --surface: #1b1917;
    --surface-alt: #231f1c;
    --text: #f5f5f7;
    --text-muted: #a89e96;
    --border: #322c28;
    --accent: #ff8a3d;
    --accent-hover: #ffa466;
    --accent-soft: #3a2416;
    --on-accent: #1a0e05;
    --glow: rgba(255, 104, 1, 0.18);
    --icon-shadow: rgba(255, 104, 1, 0.30);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.6rem;
  margin: 2em 0 0.6em;
}

h3 {
  font-size: 1.15rem;
  margin: 1.6em 0 0.4em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 760px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* Hero (404 page) */

.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Sections */

.section {
  padding: 24px 0 64px;
}

.section-title {
  margin-top: 0;
}

.section > .container > p {
  max-width: 720px;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

/* Apple's localised App Store badge (assets/img/badges/, from ActuallyDoIt), used as delivered:
   black artwork, never recoloured or redrawn. Apple's guidelines: at least 40px high on screen, with
   clear space of a quarter of its height around it, which the button-row's 12px gap provides. The
   French badge is wider, so its img is 152px wide rather than 144px. */

.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
}

.app-store-badge img {
  display: block;
}

/* Product page. The hero keeps the coming soon page's soft orange glow behind the icon. The icon
   images are the full rounded icon from Icon Composer, so they need no border radius of their own. */

.product-hero {
  padding: 64px 0 40px;
  text-align: center;
  background: radial-gradient(ellipse 60% 70% at 50% 30%, var(--glow), transparent 70%);
}

.product-hero .app-icon {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 12px 32px var(--icon-shadow));
}

.product-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.product-hero .platform-note {
  margin-top: 12px;
  font-size: 0.95rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.feature h3 {
  margin-top: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.feature ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--text-muted);
}

.feature li {
  margin-bottom: 0.4em;
}

.prose p {
  font-size: 1.1rem;
}

/* Long-form documents (privacy, support) */

.doc {
  padding: 48px 0 72px;
}

.doc .meta {
  color: var(--text-muted);
  margin-top: -0.5em;
}

.doc li {
  margin-bottom: 0.4em;
}

.callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* The footer's language switcher: every page exists in English, German, Spanish, French and
   Dutch, and each links to the same page in the others. */
.lang-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* On narrow phones the hero's badge drops to 44px tall, as on ActuallyDoIt, so it and the Support
   button stay on one line with room to spare in every language, French's wider badge included. */
@media (max-width: 382px) {
  .product-hero .button-row .app-store-badge img {
    height: 44px;
    width: auto;
  }
}
