/* Kadranname site. The app's "enamel dial" language: page colour, ink,
   hairlines instead of cards, light large titles, small tracked capitals,
   pill buttons. No shadows, no gradients. */

@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/Jost-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #f1f2f0;
  --ink: #101418;
  --ink-2: #565c63;
  --line: #c9ccca;
  --line-strong: #aeb2b1;
  --accent: #1b2a6b;
  --frame: #101418;
  --font: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --caps-track: 0.16em;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101418;
    --ink: #f1f2f0;
    --ink-2: #a9aeb4;
    --line: #2e343a;
    --line-strong: #4a5057;
    --accent: #93a5eb;
    --frame: #3a4148;
  }
}

/* Japanese, Korean and Chinese: the system's own fonts (Jost has no glyphs
   for them); capitals do not exist, so labels are tracked less. */
:lang(ja) {
  --font: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
  --caps-track: 0.06em;
}
:lang(ko) {
  --font: 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', 'Noto Sans KR', sans-serif;
  --caps-track: 0.06em;
}
:lang(zh) {
  --font: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', sans-serif;
  --caps-track: 0.06em;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

@media (min-width: 900px) {
  body {
    font-size: 18px;
  }
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Hidden until the chosen language is in place (see early.js). */
.i18n-pending [data-i18n] {
  visibility: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }
}

.caps {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: var(--caps-track);
  text-transform: uppercase;
  color: var(--ink-2);
}

.caps.dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
  color: var(--page);
}

/* ---------------------------------------------------------------- header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  min-height: 44px;
}

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

/* The name is always set in Jost, whatever the page language. */
.wordmark,
.hero h1 {
  font-family: 'Jost', system-ui, sans-serif;
}

.wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  gap: 4px 22px;
  flex-wrap: wrap;
}

.nav a,
.lang summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--caps-track);
  text-transform: uppercase;
  text-decoration: none;
}

.nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.nav .nav-features {
  display: none;
}

@media (min-width: 720px) {
  .nav {
    order: 0;
    flex-basis: auto;
  }
  .nav .nav-features {
    display: inline-flex;
  }
}

/* ------------------------------------------------------ language switch */
.lang {
  position: relative;
}

.lang summary {
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 0 2px;
}

.lang summary::-webkit-details-marker {
  display: none;
}

.lang summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 2px 4px 2px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.lang[open] summary::after {
  margin-bottom: -2px;
  transform: rotate(-135deg);
}

.lang-label {
  color: var(--ink-2);
}

/* Very narrow screens: the word "Language" is read out but not shown. */
@media (max-width: 400px) {
  .lang-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

.lang-current {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 15px;
  font-weight: 400;
}

.lang-panel {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  width: 240px;
  margin-top: 6px;
  padding: 6px 0;
  background: var(--page);
  border: 1px solid var(--ink);
  border-radius: 12px;
}

.lang-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 16px;
}

.lang-panel a[aria-current='true']::before {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 10px 0 -16px;
  border-radius: 50%;
  background: var(--accent);
}

.lang-panel .lang-note {
  margin: 6px 18px 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 56px;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(46px, 13vw, 104px);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero .lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(18px, 2.3vw, 22px);
  line-height: 1.5;
}

.soon {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1.35;
}

.soon::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.platforms {
  margin-top: 16px;
  max-width: 30em;
  font-size: 15px;
  color: var(--ink-2);
}

.hero-shot {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8% 0;
}

.hero-shot .dial {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(100%, 560px);
  height: auto;
  color: var(--line-strong);
  pointer-events: none;
}

.hero-shot .phone {
  position: relative;
  width: min(68vw, 300px);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 88px;
  }
}

/* --------------------------------------------------------- phone frames */
.phone {
  margin: 0;
  border: 7px solid var(--frame);
  border-radius: 38px;
  overflow: hidden;
  background: var(--page);
}

.phone img {
  width: 100%;
}

.tablet {
  margin: 0;
  border: 9px solid var(--frame);
  border-radius: 26px;
  overflow: hidden;
  background: var(--page);
}

.tablet img {
  width: 100%;
}

/* -------------------------------------------------------------- sections */
.section-head {
  padding-top: 56px;
  padding-bottom: 8px;
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 6vw, 52px);
}

.feature {
  display: grid;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
}

.section-head + .feature {
  margin-top: 32px;
}

.feature .num {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-right: 10px;
}

.feature h3 {
  margin-top: 12px;
  font-size: clamp(28px, 4.4vw, 40px);
}

.feature .body p {
  margin-top: 16px;
  max-width: 34em;
}

.feature .body p.quiet {
  color: var(--ink-2);
  font-size: 0.94em;
}

.feature .shots {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.feature .shots .phone {
  width: min(64vw, 280px);
}

.feature .shots.pair .phone {
  width: min(43vw, 260px);
  border-width: 5px;
  border-radius: 26px;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .feature.flip .body {
    order: 2;
  }
  .feature .shots .phone {
    width: 280px;
  }
  .feature .shots.pair .phone {
    width: 240px;
    border-width: 6px;
    border-radius: 32px;
  }
  .feature.text-only {
    align-items: start;
  }
}

.feature.text-only .body p:first-child {
  margin-top: 0;
}

@media (min-width: 900px) {
  .feature.text-only .body {
    padding-top: 26px;
  }
}

/* Privacy and languages side by side on wide screens. */
.duo {
  display: grid;
  border-top: 1px solid var(--line);
}

.duo .feature {
  display: block;
  border-top: 0;
}

.duo .feature + .feature {
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .duo .feature + .feature {
    border-top: 0;
  }
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.languages li {
  font-size: 16px;
}

.feature.wide {
  grid-template-columns: 1fr;
}

.feature.wide .shots {
  display: block;
}

@media (min-width: 900px) {
  .feature.wide {
    gap: 40px;
  }
  .feature.wide .body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: end;
  }
  .feature.wide .tablet {
    max-width: 900px;
    margin: 0 auto;
  }
}

/* ------------------------------------------------------------- start */
.start {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0 40px;
  counter-reset: step;
}

.start li {
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.start li::before {
  content: counter(step);
  display: block;
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}

.start h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 400;
}

.start p {
  margin-top: 8px;
  color: var(--ink-2);
}

@media (min-width: 720px) {
  .start {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .start {
    grid-template-columns: repeat(4, 1fr);
  }
}

.plans {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 40px;
  padding-top: 32px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
}

.plans p {
  flex: 1 1 22em;
  max-width: 36em;
}

.plans .caps {
  display: block;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------- pills */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--caps-track);
  text-transform: uppercase;
  text-decoration: none;
}

.pill:hover {
  border-color: var(--accent);
}

/* ---------------------------------------------------------- plain pages */
.page {
  padding-top: 56px;
  padding-bottom: 80px;
}

.page h1 {
  margin-top: 14px;
  font-size: clamp(44px, 10vw, 84px);
  letter-spacing: -0.02em;
}

.page .lead {
  margin-top: 24px;
  max-width: 32em;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
}

.page .lead + .lead {
  margin-top: 14px;
  color: var(--ink-2);
}

.page .actions {
  margin-top: 40px;
}

.contact {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 40em;
}

.contact h2,
.faq h2 {
  font-size: clamp(28px, 4vw, 36px);
}

.contact p {
  margin-top: 14px;
}

.mail {
  display: inline-block;
  margin-top: 18px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 300;
  word-break: break-all;
}

.faq {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.faq dl {
  margin: 20px 0 0;
}

.faq dt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.faq dt:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq dd {
  margin: 10px 0 0;
  max-width: 40em;
}

.faq dd + dd {
  color: var(--ink-2);
}

/* ---------------------------------------------------------- legal pages */
.legal {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal h1 {
  margin-top: 14px;
  font-size: clamp(30px, 5vw, 44px);
}

.legal .meta {
  margin-top: 16px;
  color: var(--ink-2);
}

.legal .other {
  margin-top: 8px;
  font-size: 15px;
}

/* Top of the legal pages: the other language, without JavaScript. */
.lang-jump {
  margin: 0;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 15px;
}

.lang-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.legal h3 {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 400;
}

.legal ul ul {
  margin-top: 8px;
}

.legal code {
  font-family: inherit;
  font-size: 0.95em;
  padding: 0 3px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal p[id],
.legal h2[id],
.legal h3[id] {
  scroll-margin-top: 16px;
}

@media (min-width: 900px) {
  .legal {
    max-width: 880px;
  }
  .legal table.cols-5 {
    font-size: 14px;
  }
}

.legal-note {
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 15px;
}

.legal h2 {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 400;
}

.legal p,
.legal ul {
  margin-top: 14px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}

.legal table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.legal th,
.legal td {
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal thead th {
  border-top: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--caps-track);
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Narrow screens: every row becomes a small block with its labels. */
@media (max-width: 760px) {
  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .legal table,
  .legal tbody,
  .legal tr,
  .legal td {
    display: block;
  }
  .legal tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }
  .legal td {
    padding: 4px 0;
    border-top: 0;
  }
  .legal td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--caps-track);
    text-transform: uppercase;
    color: var(--ink-2);
  }
}

/* Values the owner has not given yet (see site/placeholders.json). */
.ph {
  padding: 0 4px;
  border: 1px dashed currentColor;
  border-radius: 4px;
}

/* ----------------------------------------------------------------- 404 */
.missing {
  padding-top: 72px;
  padding-bottom: 96px;
}

.missing h1 {
  margin-top: 14px;
  font-size: clamp(40px, 9vw, 72px);
}

.missing p {
  margin-top: 18px;
  max-width: 32em;
}

.missing .h1like {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(30px, 6vw, 48px);
}

.missing .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* -------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 48px;
  font-size: 15px;
}

.site-footer .grid {
  display: grid;
  gap: 24px;
}

.site-footer .tagline {
  margin-top: 8px;
  color: var(--ink-2);
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer .note {
  max-width: 48em;
  font-size: 13px;
  color: var(--ink-2);
}

.site-footer .note + .note {
  margin-top: 6px;
}

@media (min-width: 900px) {
  .site-footer .grid {
    grid-template-columns: 1fr 2fr;
    gap: 24px 64px;
  }
  .site-footer .notes {
    grid-column: 2;
  }
}
