/* DialRewind website: the app's own colours (deep navy, blue, yellow). */
:root {
  --bg: #061018; --surface: #101B23; --raised: #15212A; --muted: #0C171F;
  --blue: #0878FF; --blue-soft: #0B2A48; --yellow: #E8B84A; --yellow-soft: #33290F;
  --green: #08D58C; --green-soft: #0B382B; --red: #FF424D;
  --text: #F6F8FA; --text-2: #9AA7B1; --text-3: #6B7A86; --border: #26343E;
  --radius: 8px; --max: 1080px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
main { overflow-x: clip; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--text); }
.wordmark .mark { width: 32px; height: 32px; border-radius: 22%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 0 16px rgba(61, 155, 255, .35); }
.wordmark b { color: var(--blue); font-weight: inherit; }

header.site { position: sticky; top: 0; z-index: 5; background: rgba(6, 16, 24, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
header.site nav { display: flex; gap: 22px; font-size: 15px; }
header.site nav { align-items: center; }
header.site nav a { color: var(--text-2); }
header.site nav a:hover { color: var(--text); text-decoration: none; }
.wordmark:hover { text-decoration: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px;
  background: var(--blue); color: #fff; font-weight: 700; border: 0; cursor: pointer; font-size: 16px; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
/* Under the mouse the edge lights up like the «Scarica per Android» badge next to it. */
.button.ghost:hover { filter: none; border-color: #9AA0A6; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.hero { padding-top: 88px; padding-bottom: 8px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { color: var(--text-2); font-size: 19px; margin: 0 0 28px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { color: var(--text-3); font-size: 14px; margin-top: 14px; }
/* The black icon with a light behind it, so it stands off the dark page. */
.hero .hero-mark { justify-self: center; display: grid; justify-items: center; gap: 14px; }
/* On a wide screen the logo sits a little above the middle of the text beside it. */
@media (min-width: 981px) { .hero .hero-mark { transform: translateY(-36px); } }
.hero .halo { position: relative; }
.hero .halo::before { content: ""; position: absolute; inset: -42%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(61, 155, 255, .55), rgba(8, 120, 255, .22) 48%, rgba(8, 120, 255, 0) 100%); }
.hero .icon { position: relative; z-index: 1; width: 230px; border-radius: 22%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 60px rgba(0, 0, 0, .45); }
/* The icon's red dot blinks like a recorder's REC light: on with a soft glow, then almost off (the icon's own dark
   colour, slightly red), then on again. It sits exactly over the dot drawn in the image, a little larger so no red
   edge of that dot shows while it is off. It blinks also where the system asks for less motion: it is small and slow,
   and it is the point of the logo. */
.rec { position: absolute; z-index: 2; left: 79.2%; top: 20.8%; width: 14.8%; height: 14.8%; border-radius: 50%; background: #FF424D;
  transform: translate(-50%, -50%); animation: rec-blink 1.8s ease-in-out infinite; }
@keyframes rec-blink {
  0%, 50%, 100% { background: #FF424D; box-shadow: 0 0 6px 1px rgba(255, 66, 77, .55), 0 0 18px 4px rgba(255, 66, 77, .35); }
  68%, 86% { background: #2A1520; box-shadow: 0 0 0 0 rgba(255, 66, 77, 0), 0 0 0 0 rgba(255, 66, 77, 0); } }
/* Price box: promotion badge, struck-through price (red), countdown; discount code. */
.offer { display: grid; justify-items: center; gap: 6px; margin: 6px 0 14px; }
.offer .amount { margin: 0; color: var(--text); }
.coupon [hidden], .offer [hidden] { display: none; }
.offer-badge { background: var(--red); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 4px; }
.offer-label { font-weight: 700; color: var(--yellow); }
.offer-was { color: var(--red); text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 700; font-size: 20px; }
.offer-count { color: var(--yellow); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.offer-alt { color: var(--text-2); font-size: 15px; }
.coupon { margin-top: 14px; display: grid; justify-items: center; gap: 8px; }
.coupon .link-button { background: none; border: 0; color: var(--blue); font: inherit; font-size: 15px; cursor: pointer; padding: 4px; }
.coupon form { display: flex; gap: 8px; width: 100%; max-width: 340px; }
.coupon input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--raised); color: var(--text);
  font: inherit; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.coupon .button.small { min-height: 44px; padding: 0 16px; }
/* Typing in the code field: a quiet blue edge instead of the browser's bright outline. */
.coupon input:focus, .coupon input:focus-visible { outline: none; border-color: rgba(8, 120, 255, .55); box-shadow: 0 0 0 3px rgba(8, 120, 255, .12); }
.coupon-result { margin: 0; font-size: 14px; }
.coupon-result.ok { color: var(--green); }
.coupon-result.bad { color: var(--red); }
.promo-ribbon { display: inline-flex; margin-top: 16px; padding: 6px 12px; border-radius: 8px; background: var(--yellow-soft); color: var(--yellow); font-weight: 700; font-size: 15px; }
.promo-ribbon[hidden] { display: none; }
.promo-ribbon:hover { text-decoration: none; filter: brightness(1.1); }
/* The name under the icon, like on a product box. */
.hero .brand-big { position: relative; z-index: 1; margin: 10px 0 0; font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.hero .brand-big b { color: var(--blue); font-weight: inherit; }
.hero .slogan { position: relative; z-index: 1; margin: 0; color: var(--text-2); font-size: 18px; font-weight: 600; letter-spacing: .02em; }

section { padding: 64px 0; }
section h2 { font-size: 32px; margin: 0 0 10px; }
/* Every title has the same line spacing as the big one at the top. */
h1, h2, h3 { line-height: 1.1; }
section .sub { color: var(--text-2); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
/* What the app does: eight cards of the same size, 4 per row on a computer, 2 on a tablet, 1 on a phone. */
.features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card .num { color: var(--yellow); font-weight: 800; font-size: 14px; }
/* Feature and step cards under the mouse: they rise a little, the edge lights up and a soft blue light shows behind,
   like the logo's. Only where there is a mouse (phones are left as they are). The 3-pixel rise stays also where the
   system asks for less motion (Windows with animations off): it is tiny, and it is what the owner asked for. */
@media (hover: hover) and (pointer: fine) {
  section .grid .card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
  section .grid .card:hover { transform: translateY(-3px); border-color: rgba(61, 155, 255, .45);
    box-shadow: 0 0 0 1px rgba(61, 155, 255, .12), 0 12px 32px rgba(8, 120, 255, .16); }
}

.price { max-width: 460px; margin: 0 auto; text-align: center; border-color: var(--blue); }
.price .amount { font-size: 46px; font-weight: 800; margin: 8px 0 0; line-height: 1.1; }
/* The price box's main button sits in the middle, like the title above it. */
.price > .button { display: flex; width: fit-content; margin: 0 auto; }
.price .amount small { font-size: 18px; color: var(--text-2); font-weight: 600; }
.price ul { text-align: left; color: var(--text-2); padding-left: 20px; margin: 20px 0 24px; }
.price li { margin: 6px 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; line-height: 1.3; }
details p { color: var(--text-2); margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
/* Footer: everything centred, one line under the other: links, then the copyright, then the small print. */
footer.site .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; order: 1; }

.doc { max-width: 760px; padding: 48px 24px 80px; margin: 0 auto; }
.doc h1 { font-size: 34px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc p, .doc li { color: var(--text-2); }

/* Tablet and phone: one column, the logo centred at the top of the page. */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .hero .hero-mark { grid-row: 1; justify-self: center; justify-items: center; text-align: center; }
}
@media (max-width: 760px) {
  header.site nav .nav-link { display: none; }
  .hero .icon { width: 150px; }
  .hero .slogan { font-size: 15px; }
  .hero .brand-big { font-size: 36px; margin-top: 4px; }
}
/* Phone: once the page is scrolled, an arrow in the bar at the top takes it back up (in the bar, so it covers nothing). */
.to-top { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border);
  border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { color: var(--text); border-color: var(--text-3); }
@keyframes to-top-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 760px) { .to-top.visible { display: inline-flex; animation: to-top-in .2s ease; } }

/* Languages */
html.i18n-loading body { visibility: hidden; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }
/* Centred subtitles that need two lines get two lines of similar length, not one long line and a few words. */
.center .sub { text-wrap: balance; }
.price { text-align: left; }
.price h3, .price .amount { text-align: center; }
.answer p { color: var(--text-2); margin: 10px 0 0; }
.note { color: var(--text-3); font-size: 14px; margin-top: 12px; }
.button.disabled { opacity: .5; pointer-events: none; }
.lang-switch { position: relative; }
.lang-button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 4px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.lang-button:hover { color: var(--text); }
.flag { width: 24px; height: 16px; flex: none; display: block; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; margin: 0; padding: 6px; list-style: none; z-index: 20;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.lang-menu li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--text-2); font-size: 15px; }
.lang-menu li:hover, .lang-menu li:focus-visible { background: var(--raised); color: var(--text); outline: none; }
.lang-menu li[aria-selected="true"] { color: var(--text); font-weight: 700; }

/* Android: the robot (green head, eyes in the color behind it), the store-style download button, the platform note. */
.android { flex: none; }
.android .head { fill: #3DDC84; }
.android .antenna { stroke: #3DDC84; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.android .eye { fill: var(--bg); }
.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 16px; background: #000; color: #fff;
  border: 1px solid #5F6368; border-radius: 8px; text-decoration: none; }
.store-badge:hover { text-decoration: none; border-color: #9AA0A6; }
/* Under the mouse the download button rises a little with a soft blue light, like the feature cards. */
@media (hover: hover) and (pointer: fine) {
  .store-badge { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(8, 120, 255, .22); }
}
.store-badge .android { width: 32px; height: 32px; }
.store-badge .android .eye { fill: #000; }
.store-badge span { display: grid; line-height: 1.15; text-align: left; }
.store-badge small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #E8EAED; }
.store-badge b { font-size: 22px; font-weight: 600; letter-spacing: .01em; }
.store-badge.large { min-height: 64px; padding: 0 28px 0 20px; gap: 14px; }
.store-badge.large .android { width: 38px; height: 38px; }
.store-badge.large b { font-size: 25px; }
.store-badge.disabled { opacity: .5; pointer-events: none; }
.hero .actions { align-items: center; }
.hero .actions .button { min-height: 56px; }
/* Which phones it is for: a quiet line under the download buttons. */
.platform { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--text-2); font-size: 14px; font-weight: 600; line-height: 1.3; }
.platform .android { width: 18px; height: 18px; }
.platform + .note { margin-top: 6px; }
.hero .note strong { color: var(--text-2); }
footer.site .wrap > div { order: 2; }
/* Computer: the copyright and the small print in a left column, the links on the right at the height of the copyright;
   the small print stops well before the links, so no edge is expected to line up with them. */
@media (min-width: 761px) {
  footer.site .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 48px; row-gap: 10px; text-align: left; }
  footer.site .wrap > div { grid-column: 1; grid-row: 1; }
  footer.site nav { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  footer.site .credit { grid-column: 1; max-width: 62ch; text-wrap: pretty; }
}
/* Phone: the links in two tidy columns instead of a row that leaves one link alone on the next line. */
@media (max-width: 560px) { footer.site nav:has(> a:nth-child(4)) { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 28px; } }
footer.site .credit { order: 3; max-width: 52em; margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-3); text-wrap: balance; }

/* Installation guide: numbered steps like the cards' numbers, one block per kind of phone. */
.install .lead { color: var(--text-2); font-size: 18px; margin: 0 0 8px; }
.install-block { padding: 0; margin-top: 32px; }
.install-block h2 { margin: 0 0 12px; }
.install-block p { margin: 0 0 12px; }
ol.steps { list-style: none; counter-reset: step; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text); }
ol.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px;
  background: var(--yellow-soft); color: var(--yellow); font-weight: 800; font-size: 14px; line-height: 1; margin-top: 1px; }
.install-download { margin-top: 18px; }
/* Legal pages: date under the title; the owner's details line in every footer. */
.doc .updated { color: var(--text-3); font-size: 14px; margin-top: -8px; }
.doc ul li { margin: 6px 0; }
footer.site .legal-id { order: 4; }
footer.site .legal-id[hidden] { display: none; }

/* Home cards that open their feature page: the whole card is the link (the hover light shows it can be clicked). */
a.card-link { display: block; color: inherit; text-decoration: none; }
a.card-link:hover { text-decoration: none; }

/* Feature pages: title and lead, the app's screenshots in phone frames, how it works, good to know, download. */
/* The same 32 px rhythm at the end: line, download, links, footer. */
.feature { padding: 36px 0 32px; }
.feature .crumb { display: inline-flex; gap: 6px; margin-bottom: 20px; color: var(--text-2); font-size: 15px; }
.feature .crumb:hover { color: var(--text); text-decoration: none; }
.feature h1 { font-size: clamp(32px, 4.6vw, 46px); margin: 0 0 14px; }
.feature .lead { color: var(--text-2); font-size: 18px; margin: 0; }
/* Computer: the explanation on the left, the phones on the right. Tablet and phone: explanation, phones, then the steps. */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); grid-template-areas: "lead shots" "body shots";
  column-gap: 56px; row-gap: 32px; align-items: start; }
.feature-grid .lead { grid-area: lead; }
.feature-shots { grid-area: shots; }
.feature-grid .feature-body { grid-area: body; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.shots-3 .shot:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px); }
.shot { margin: 0; }
.phone { display: block; width: 100%; padding: 7px; border: 1px solid #2B3945; border-radius: 30px; background: #000; cursor: zoom-in;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04); transition: transform .25s ease, box-shadow .25s ease; }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 540 / 1110; border-radius: 23px; background: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .phone:hover { transform: translateY(-3px); box-shadow: 0 28px 64px rgba(0, 0, 0, .5), 0 12px 32px rgba(8, 120, 255, .18); }
}
.shot figcaption { margin-top: 12px; color: var(--text-2); font-size: 14px; line-height: 1.45; text-align: center; text-wrap: balance; }
.feature-body { display: grid; gap: 36px; }
.feature-block h2 { font-size: 26px; margin: 0 0 16px; }
ul.good { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.good li { position: relative; padding-left: 30px; color: var(--text-2); }
ul.good li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
/* End of a feature page, kept quiet: a thin line, the download button with one small line beside it, then two
   plain text links to the previous and next feature. */
.feature-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 56px; padding: 32px 0;
  border-top: 1px solid var(--border); }
/* A faint blue light behind the download button, the same as behind the logo. */
.feature-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(520px, 90%); height: 140px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(61, 155, 255, .14), rgba(8, 120, 255, 0)); pointer-events: none; z-index: 0; }
.feature-cta > * { position: relative; z-index: 1; }
.feature-cta p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.6; }
.feature-nav { display: flex; justify-content: space-between; gap: 16px; margin: 0; font-size: 14px; }
.feature-nav a { color: var(--text-2); }
.feature-nav a:hover { color: var(--text); text-decoration: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 8, 12, .88); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 540px); max-height: 92vh; width: auto; height: auto; border-radius: 22px; box-shadow: 0 24px 80px rgba(0, 0, 0, .6); }
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "lead" "shots" "body"; }
  .feature-shots { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 760px) {
  .shots { gap: 14px; }
  .phone { padding: 4px; border-radius: 18px; }
  .phone img { border-radius: 14px; }
  .shot figcaption { font-size: 12.5px; }
}
@media (max-width: 560px) {
  .shots-3 .shot:last-child { width: calc(50% - 7px); }
  .feature-cta { flex-direction: column; text-align: center; gap: 14px; }
}
/* Swiping between feature pages on a phone or tablet: the page slides out the way the finger went. */
main.feature { transition: transform .16s ease, opacity .16s ease; }
main.feature.leaving-left { transform: translateX(-28px); opacity: 0; }
main.feature.leaving-right { transform: translateX(28px); opacity: 0; }
