/* Franzbrötchen: home page (layout franz_home) and its sub-pages (layout app_page). */

/* ---------- Tokens ---------- */
:root {
  --cream: #FFDEA8; /* app icon background */
  --cream-soft: #FFEFD2;
  --paper: #FFFAF1;
  --ink: #24160D;
  --ink-2: #6A5443;
  --ink-3: #5B4433;
  --cinnamon: #B94F17;
  --sugar: #EEC963;
  --line: rgba(36, 22, 13, .13);
  --night: #17100B;
  /* Headlines use the system font, like the app and its release banners: SF Pro on Apple devices. */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--cinnamon); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.eyebrow {
  font: 600 13px/1.2 var(--body); letter-spacing: .09em; text-transform: uppercase;
  color: var(--cinnamon); margin-bottom: 18px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; margin-top: 20px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.02em; margin-right: auto; }
.brand img { width: 40px; height: 40px; margin: -3px -2px -3px -4px; }
.nav nav { display: flex; gap: 24px; }
.nav nav a, .nav .lang { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav nav a:hover, .nav .lang:hover { color: var(--ink); }
.nav .lang { font-weight: 700; letter-spacing: .04em; padding: 6px 2px; }
.pill { background: var(--ink); color: #fff; text-decoration: none; padding: 10px 16px; border-radius: 999px; font: 600 14px/1 var(--body); white-space: nowrap; }
.pill:hover { background: #000; }
@media (max-width: 860px) { .nav nav { display: none; } }

/* ---------- Devices ----------
   Real device bezels (assets/img/franz/devices) laid over the screenshots.
   Each device is sized by --w; the screen sits in the bezel's opening, given in percent of the bezel image. */
.phone, .ipad, .duo, .watch { width: var(--w); flex: none; position: relative; filter: drop-shadow(0 26px 30px rgba(60, 30, 5, .28)); }
.phone::after, .ipad::after, .duo::after, .watch::after { content: ""; position: absolute; inset: 0; background: center / 100% 100% no-repeat; pointer-events: none; }
.screen { position: absolute; overflow: hidden; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; }

.phone { --w: 280px; aspect-ratio: 1002 / 2000; }
.phone::after { background-image: url("/assets/img/franz/devices/iphone.webp"); }
.phone .screen { left: 7.9%; top: 3.9%; width: 84.8%; height: 92.2%; border-radius: 12.5% / 5.8%; }

.ipad { --w: 320px; aspect-ratio: 1880 / 2640; }
.ipad::after { background-image: url("/assets/img/franz/devices/ipad.webp"); }
.ipad .screen { left: 5.4%; top: 4%; width: 89.2%; height: 92%; border-radius: 2.6% / 1.8%; }

.duo { --w: 460px; aspect-ratio: 3093 / 2247; } /* iPhone Duo, unfolded */
.duo::after { background-image: url("/assets/img/franz/devices/duo.webp"); }
.duo .screen { left: 3.6%; top: 5%; width: 92.8%; height: 90%; border-radius: 4.4% / 6.2%; }

.watch { --w: 150px; aspect-ratio: 560 / 880; }
.watch::after { background-image: url("/assets/img/franz/devices/watch.webp"); }
.watch .screen { left: 12.5%; top: 21.6%; width: 75%; height: 56.8%; border-radius: 21% / 17.5%; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: clamp(40px, 6vw, 80px); }
.hero-copy { padding-bottom: clamp(48px, 8vw, 110px); }
.hero h1 { font-size: clamp(48px, 7.6vw, 98px); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.hero h1 em { font-style: normal; color: var(--cinnamon); }
.hero .lead { color: var(--ink-3); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }
.cta p { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.badge { display: inline-block; transition: transform .15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: auto; }
.hero-devices { position: relative; height: clamp(440px, 46vw, 590px); align-self: end; }
.hero-devices > * { position: absolute; }
.hero-devices .ipad { --w: clamp(250px, 27vw, 350px); right: -2%; top: 0; }
.hero-devices .phone { --w: clamp(180px, 18.5vw, 236px); left: 2%; top: 14%; z-index: 2; }
.hero-devices .watch { --w: clamp(104px, 10.5vw, 136px); z-index: 3; left: 39%; bottom: 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-devices { height: 400px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-devices .ipad { --w: 250px; right: 0; }
  .hero-devices .phone { --w: 172px; left: 0; top: 13%; }
  .hero-devices .watch { --w: 100px; left: 42%; bottom: 0; }
}

/* ---------- Facts ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts .wrap > div { padding: 30px 24px 30px 0; }
.facts .wrap > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts b { display: block; font: 800 clamp(30px, 3.6vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.facts .wrap > div > span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 720px) {
  .facts .wrap { grid-template-columns: 1fr 1fr; }
  .facts .wrap > div { padding: 22px 16px 22px 0; }
  .facts .wrap > div + div { padding-left: 16px; }
  .facts .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Questions ---------- */
.moments { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 7vw, 96px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.moment { position: relative; border-top: 1px solid var(--line); }
.moment:last-child { border-bottom: 1px solid var(--line); }
.moment .bar { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--cinnamon); }
.moments.auto .moment.on .bar { animation: fill 6s linear forwards; }
.moments.auto:hover .bar, .moments.auto:focus-within .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.moment > button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: baseline; gap: 18px; padding: 22px 0;
  font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink-2);
  transition: color .2s;
}
.moment > button small { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; width: 124px; flex: none; white-space: nowrap; color: var(--cinnamon); opacity: .8; }
.moment > button:hover, .moment.on > button { color: var(--ink); }
.moment > button:focus-visible { outline: 3px solid var(--cinnamon); outline-offset: 2px; border-radius: 6px; }
.moment .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.moment.on .panel { grid-template-rows: 1fr; }
.moment .panel > div { overflow: hidden; padding-left: 142px; }
.moment .panel p { color: var(--ink-2); max-width: 30em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 18px 0 28px; margin: 0; }
.tags li { font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--cream-soft); }
.stage { position: sticky; top: 96px; display: grid; padding: 0 clamp(0px, 3vw, 40px); }
.stage::before { content: ""; position: absolute; inset: 12% 0 -4%; border-radius: 40px; background: var(--cream); }
.stage .phone { --w: clamp(250px, 25vw, 300px); grid-area: 1 / 1; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .35s ease, transform .35s ease; }
.stage .phone.on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .moments { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; order: -1; justify-content: center; }
  .stage .phone { --w: 230px; }
  .moment > button { flex-direction: column; gap: 8px; }
  .moment > button small { width: auto; }
  .moment .panel > div { padding-left: 0; }
}

/* ---------- Devices ---------- */
.night { background: var(--night); color: #FFF4E2; }
.night .eyebrow { color: var(--sugar); }
.night .lead { color: #C9B8A4; }
.devices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
.device { display: flex; flex-direction: column; border-radius: 32px; background: #231811; overflow: hidden; }
.device-ipad { grid-column: span 5; }
.device-duo { grid-column: span 7; }
.device-watch { grid-column: span 8; }
.device-mac { grid-column: span 4; }
.device .show { flex: 1; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 1.6vw, 20px); padding: 40px 24px 8px; }
.device .text { padding: 22px 30px 30px; }
.device h3 { font-size: 24px; font-weight: 700; }
.device .new { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--sugar); margin-left: 6px; }
.device p { margin-top: 8px; font-size: 16px; color: #C9B8A4; max-width: 36em; }
.device .ipad, .device .duo, .device .watch { filter: none; }
.device .ipad { --w: clamp(220px, 23vw, 290px); }
.device .duo { --w: clamp(260px, 42vw, 520px); }
.device .watch { --w: clamp(104px, 13vw, 158px); }
.device-mac { justify-content: center; }
@media (max-width: 860px) {
  .devices { grid-template-columns: 1fr; }
  .device { grid-column: auto; }
  .device .duo { --w: min(100%, 420px); }
  .device-watch .show { display: grid; grid-template-columns: auto auto; }
  .device .watch { --w: 132px; }
}

/* ---------- Widgets ---------- */
.widgets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.widget-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.widget-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.widget-list b { display: block; font: 700 18px/1.2 var(--display); }
.widget-list span { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.siri { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; font-size: 15px; color: var(--ink-2); }
html[lang="de"] .siri q { quotes: "„" "“"; }
.siri q { quotes: "“" "”"; font-weight: 600; color: var(--ink); padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.widgets-show { display: flex; justify-content: center; padding: clamp(20px, 3vw, 40px); border-radius: 36px; background: var(--cream); }
.widgets-show .duo { --w: min(100%, 520px); }
@media (max-width: 860px) {
  .widgets { grid-template-columns: 1fr; }
  .widget-list { grid-template-columns: 1fr; }
}

/* ---------- Index ---------- */
.index { background: var(--cream-soft); }
.index-list { columns: 3 260px; column-gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 56px); }
.index-list > div { break-inside: avoid; padding: 14px 0; border-top: 1px solid var(--line); }
.index-list h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.index-list p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-top: 5px; }

/* ---------- Who makes it ---------- */
.promise { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: start; }
.promise blockquote { margin: 28px 0 0; }
.promise blockquote p { font: 500 clamp(20px, 2.1vw, 25px)/1.45 var(--display); letter-spacing: -.015em; }
.author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.promise cite { font: 500 15px/1.4 var(--body); font-style: normal; color: var(--ink-2); }
.pledges { list-style: none; margin: 0; padding: 0; }
.pledges li { display: grid; grid-template-columns: 9.4em 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.pledges li:last-child { border-bottom: 1px solid var(--line); }
.pledges b { font: 800 21px/1.15 var(--display); color: var(--cinnamon); }
.pledges li > span { color: var(--ink-2); }
.pledges strong { display: block; color: var(--ink); font-weight: 600; }
.pledges a { display: inline-block; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--cinnamon); }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pledges li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Closing and footer ---------- */
.closing { background: var(--cream); text-align: center; }
.closing .icon { width: 136px; height: 136px; margin: 0 auto 16px; }
.closing .lead { margin-inline: auto; color: var(--ink-3); }
.closing .cta { justify-content: center; }
.site-footer { background: var(--cream); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-block: 26px; }
.site-footer .wrap > span { margin-right: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Sub-pages (layout app_page: changelog, privacy, accessibility, contact) ---------- */
body > header:not(.nav) { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body > header:not(.nav) nav { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 22px; }
.logo-text { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.logo-text img { width: 40px; height: 40px; margin: -3px -2px -3px -4px; }
.menu { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }
.nav-link[data-set-lang] { font-weight: 700; letter-spacing: .04em; }
body:not(.franz-home) .hero { background: none; }
.page { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 112px); }
.page:has(table) { max-width: var(--wrap); }
.page h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; margin-bottom: 28px; }
.page h2 { font-size: 26px; font-weight: 700; margin: 40px 0 12px; }
.page h3 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.page p { margin: 0 0 16px; color: var(--ink-3); }
.page ul { margin: 0 0 20px; padding-left: 1.2em; color: var(--ink-3); }
.page li { margin-bottom: 10px; }
.page li strong, .page p strong { color: var(--ink); }
.page a { color: var(--cinnamon); font-weight: 600; }
.page .button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 12px; font-weight: 600; }
.page .button:hover { background: #000; }
.page thead th:empty { display: none; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page th { text-align: left; font: 600 13px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--cinnamon); padding: 0 16px 12px 0; }
.page td { vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid var(--line); color: var(--ink-3); }
.page td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.page td:last-child { white-space: nowrap; }
@media (max-width: 640px) {
  .page td:last-child { white-space: normal; }
  .menu { gap: 14px; }
}
body > footer:not(.site-footer) { background: var(--cream); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer-inside { max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gutter); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-right { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-left: auto; }
.footer-text { text-decoration: none; }
a.footer-text[href]:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
