.journey-card {
  display: flex;
  flex-direction: column;
}

.steps {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
  gap: 2rem;
}

.journey-card > img {
  width: min(100%, 360px);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: .75rem auto 1.7rem;
  border: 10px solid #172246;
  border-radius: 2rem;
  background: #f8fafc;
  box-shadow: 0 18px 32px rgba(20, 32, 61, .2);
}

.journey-card .step-number { z-index: 1; }
.journey-card h3 { margin: 0 0 .6rem; font-size: 1.75rem; }
.journey-card p { font-size: 1.05rem; line-height: 1.55; max-width: 560px; }
.journey-card .analysis-trigger { font-size: .95rem; }

.hero-device {
  position: relative;
  z-index: 1;
  width: min(58%, 225px);
  overflow: hidden;
  border: 8px solid #172246;
  border-radius: 2.1rem;
  background: #f8fafc;
  box-shadow: 0 25px 30px rgba(21, 33, 63, .25);
}
.hero-device img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-section > .privacy-eyebrow {
  max-width: 760px;
  margin: -.35rem auto 1.35rem;
  line-height: 1.65;
}
.intro-section > .post-cards-eyebrow {
  max-width: 760px;
  margin: 2.5rem auto 0;
  line-height: 1.65;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
}
.screenshot-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: .55rem 1.5rem;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  padding: 1.4rem;
  background: #fff;
}
.screenshot-card .step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 2.15rem;
  min-height: 2.15rem;
  border-radius: .55rem;
  background: #edf0ff;
  color: var(--blue);
  font: 700 1.15rem/1 Outfit, sans-serif;
}
.screenshot-frame {
  grid-row: 1 / span 3;
  width: 100%;
  overflow: hidden;
  border: 7px solid #172246;
  border-radius: 1.75rem;
  background: #f8fafc;
  box-shadow: 0 14px 26px rgba(20, 32, 61, .17);
}
.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-card h3 {
  align-self: end;
  margin: 3.25rem 0 0;
  font: 600 1.55rem/1.1 Outfit, sans-serif;
}
.screenshot-card p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.55;
}
.screenshot-card .safety-note {
  margin-top: .35rem;
  color: #8a4215;
}
.screenshot-card .analysis-trigger { justify-self: start; }
.analysis-trigger {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--blue);
  font: 700 .85rem "DM Sans", sans-serif;
  cursor: pointer;
  padding: .2rem 0;
  align-self: flex-start;
  margin-top: 1rem;
}

.analysis-dialog {
  width: min(780px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(20, 32, 61, .35);
}
.analysis-dialog::backdrop { background: rgba(20, 32, 61, .68); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dialog-heading .eyebrow { margin: 0 0 .35rem; }
.dialog-heading h2 { font: 600 1.65rem/1.1 Outfit, sans-serif; margin: 0; }
.dialog-close { border: 0; background: #edf0ff; color: var(--blue); border-radius: 50%; width: 2.25rem; height: 2.25rem; font-size: 1.5rem; cursor: pointer; }
.analysis-content { color: #263653; }
.analysis-content section { border-top: 1px solid #dce3f1; margin-top: 1.25rem; padding-top: 1.25rem; }
.analysis-content h3 { color: #172246; font: 600 1.15rem/1.2 Outfit, sans-serif; letter-spacing: .04em; margin: 0 0 .9rem; text-transform: uppercase; }
.analysis-content h4 { color: #172246; font: 700 1rem/1.35 "DM Sans", sans-serif; margin: 0 0 .6rem; }
.analysis-content ul { margin: 0; padding-left: 1.25rem; }
.analysis-content li { line-height: 1.55; margin-bottom: .8rem; }
.analysis-note { color: #596780; font-size: .94rem; margin: 0 0 .9rem; }
.analysis-disclaimer { color: #596780; font-size: .85rem; margin: 1.25rem 0 0; }
.analysis-dialog > img { display: block; width: 100%; height: auto; }

.status-caution { color: #c69a00; font-weight: 700; }
.status-good { color: #167a4b; font-weight: 700; }
.status-avoid { color: #c33232; font-weight: 700; }

.profile-section { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); }
.profile-visual { width: min(100%, 430px); justify-self: end; }
.profile-visual img { display: block; width: 100%; height: auto; border: 10px solid #172246; border-radius: 2.25rem; box-shadow: 0 20px 40px rgba(23, 46, 62, .16); }
.profile-visual.current-profile { width: min(100%, 285px); }
.profile-copy { max-width: 720px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.dialog-trigger { background: transparent; border: 0; font: inherit; cursor: pointer; text-align: left; }

.list-dialog {
  width: min(780px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 30px 80px rgba(20, 32, 61, .35);
}
.list-dialog::backdrop { background: rgba(20, 32, 61, .68); backdrop-filter: blur(3px); }
.list-dialog-content { max-height: min(60vh, 560px); overflow-y: auto; padding-right: .75rem; }
.detail-list { columns: 2; column-gap: 2.5rem; margin: 0; padding-left: 1.25rem; }
.detail-list li { break-inside: avoid; margin: 0 0 .55rem; }
.list-sub-label { color: var(--muted); font-size: .9em; }

@media (max-width: 600px) {
  .detail-list { columns: 1; }
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  padding: 6rem 10vw;
  background: #eef4ff;
}
.contact-section h2 { font: 600 clamp(2.25rem, 4vw, 3.6rem)/1 Outfit, sans-serif; letter-spacing: -.045em; margin: 0 0 1rem; }
.contact-section > div > p:last-child { color: var(--muted); max-width: 510px; }
.contact-form { background: #fff; border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 14px 35px rgba(39, 59, 93, .12); }
.contact-form label { display: block; color: var(--ink); font-size: .82rem; font-weight: 700; margin-bottom: .9rem; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: .35rem; padding: .72rem .8rem; border: 1px solid #dbe2ef; border-radius: .5rem; color: var(--ink); font: 400 .95rem "DM Sans", sans-serif; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #b4c3ff; border-color: var(--blue); }
.website-field { position: absolute; left: -10000px; }
.form-note { color: var(--muted); font-size: .76rem; margin: .9rem 0 0; }
.form-note-active { color: var(--blue); font-weight: 700; }

.form-thanks { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 1rem; padding: 10vw; background: var(--mint); }
.form-thanks h1 { font: 600 clamp(2.5rem, 6vw, 5rem)/1 Outfit, sans-serif; letter-spacing: -.055em; margin: 0; max-width: 680px; }
.form-thanks > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 0 1rem; }

@media (max-width: 850px) {
  .steps { max-width: 100%; }
  .journey-card > img { width: min(100%, 330px); border-width: 8px; }
  .screenshots-grid { grid-template-columns: 1fr; max-width: 680px; }
  .profile-section { grid-template-columns: 1fr; }
  .profile-visual { width: min(100%, 360px); justify-self: center; }
  .contact-section { grid-template-columns: 1fr; padding: 5rem 6vw; gap: 2rem; }
}


/* Make the profile detail buttons visually clear as links. */
.profile-links .dialog-trigger {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.profile-links .dialog-trigger:hover,
.profile-links .dialog-trigger:focus-visible {
  color: #0c4fc6;
  text-decoration-thickness: 3px;
}

/* App Store and Google Play launch announcement and download calls to action. */
.notice a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.notice a:hover,
.notice a:focus-visible { text-decoration: underline; }
.notice b { margin-left: .2rem; }
.notice i { margin: 0 .65rem; opacity: .65; }

.app-store-button {
  background: #111;
  box-shadow: 0 8px 18px rgba(17, 17, 17, .2);
}
.app-store-button:hover,
.app-store-button:focus-visible { background: #2c2c2c; }

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.google-play-button { background: #172246; }
.google-play-button:hover,
.google-play-button:focus-visible { background: #26345f; }

.whats-new-section { background: #f1f4ff; }
.whats-new-heading {
  max-width: 760px;
  margin-bottom: 3rem;
}
.whats-new-heading h2 { font-size: clamp(2.35rem, 4vw, 3.8rem); }
.whats-new-heading > p:last-child {
  color: var(--muted);
  max-width: 650px;
  font-size: 1.03rem;
}
.update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.update-grid article {
  background: #fff;
  border: 1px solid #dce3fa;
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(61, 90, 254, .07);
}
.update-grid article > span {
  color: var(--blue);
  font: 700 .72rem Outfit, sans-serif;
  letter-spacing: .1em;
}
.update-grid h3 {
  margin: .75rem 0 .5rem;
  font: 600 1.35rem Outfit, sans-serif;
}
.update-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.campaign-download-section {
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
}
.campaign-download-visual {
  position: relative;
  width: min(100%, 1080px);
}
.campaign-download-visual > img {
  display: block;
  width: 100%;
  height: auto;
}
.campaign-store-link {
  position: absolute;
  top: 89.7%;
  height: max(5.2%, 44px);
  transform: translateY(-20%);
  border-radius: .45rem;
}
.campaign-store-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.campaign-store-link:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 4px;
}
.campaign-apple-link {
  left: 32.1%;
  width: 16.8%;
}
.campaign-google-link {
  left: 51.5%;
  width: 17.3%;
}

.language-link {
  border: 1px solid #cbd6eb;
  border-radius: 999px;
  padding: .45rem .75rem;
}
.language-link:hover,
.language-link:focus-visible { background: #edf3ff; }

.language-selector {
  display: grid;
  gap: .18rem;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1;
}
.language-selector span { white-space: nowrap; }
.language-selector select {
  min-width: 132px;
  max-width: 180px;
  border: 1px solid #b8c5dc;
  border-radius: .55rem;
  background: #fff;
  color: var(--ink);
  font: 700 .82rem/1.2 "DM Sans", Arial, sans-serif;
  padding: .43rem 1.8rem .43rem .62rem;
  cursor: pointer;
}
.language-selector select:hover { border-color: var(--blue); }
.language-selector select:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(61, 90, 254, .2);
  outline-offset: 2px;
}

.localisation-note {
  max-width: 760px;
  margin: 1.25rem auto 2rem;
  padding: .9rem 1rem;
  border: 1px solid #d6dfef;
  border-radius: .75rem;
  background: #fff;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* Short product introduction on the home page. */
.promo-section {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 1.75rem;
  background: #edf3ff;
  overflow: hidden;
}
.promo-section > * { min-width: 0; }
.promo-copy { text-align: center; }
.promo-copy h2 {
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  margin-bottom: 1.25rem;
  max-width: none;
}
.promo-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 520px;
  margin: 0 auto;
}
.promo-player {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 1.4rem;
  background: #111;
  box-shadow: 0 24px 55px rgba(20, 32, 61, .22);
}
.promo-player video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}
.promo-action { text-align: center; }

/* Keep the supermarket film inside the page on iPhone and other phones. */
.supermarket-player {
  width: 100%;
  max-width: 720px;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #111;
  box-shadow: 0 18px 38px rgba(20, 32, 61, .2);
}
.supermarket-player video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

@media (max-width: 850px) {
  .promo-section { grid-template-columns: minmax(0, 1fr); }
  .update-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .notice { line-height: 1.45; }
  .notice span { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .hero-actions .store-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .hero-actions .store-actions .button { justify-content: center; }
  .hero-device { width: min(58%, 205px); border-width: 7px; }
  .screenshots-grid { gap: 1rem; }
  .screenshot-card { display: block; padding: 1.15rem; }
  .screenshot-frame { width: min(100%, 340px); margin: .25rem auto 1.35rem; border-width: 6px; }
  .screenshot-card h3 { margin: 0 0 .5rem; }
  .screenshot-card .analysis-trigger { margin-top: .9rem; }
  .update-grid { grid-template-columns: 1fr; }
  .promo-player { border-radius: 1rem; }
}

/* Keep every language visible and make the current edition unmistakable. */
.language-link[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(61, 90, 254, .24);
  font-weight: 700;
}
.language-link[aria-current="page"]:hover,
.language-link[aria-current="page"]:focus-visible {
  background: #2847dc;
  color: #fff;
}

@media (min-width: 2241px) {
  .site-header {
    height: auto;
    min-height: 82px;
    gap: 1rem;
    padding: .65rem 2.5vw;
  }
  .site-header nav {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem;
  }
  .site-header nav > a:not(.language-link) { margin-right: .2rem; }
  .site-header > .brand,
  .site-header > .button { flex: 0 0 auto; }
}

@media (max-width: 2240px) {
  .site-header nav,
  .site-header > .button { display: none; }
  .menu-button { display: block; }
  .site-header.open nav {
    display: flex;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    padding: 1rem 5vw;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 32, 61, .12);
  }
  .site-header.open nav > a:not(.language-link) {
    flex-basis: 100%;
    padding: .45rem 0;
  }
  .site-header.open nav .language-link { padding: .45rem .75rem; }
}

@media (max-width: 500px) {
  .site-header { gap: .55rem; padding-left: 4vw; padding-right: 4vw; }
  .site-header .brand { font-size: 1.35rem; }
  .language-selector { margin-left: auto; font-size: .55rem; }
  .language-selector select { min-width: 108px; max-width: 118px; font-size: .75rem; padding: .38rem 1.4rem .38rem .5rem; }
  .site-header.open nav { top: 70px; }
}


html[lang="ja"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-break: strict;
  word-break: normal;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  letter-spacing: 0.01em;
}

/* Three-line hero strapline */
.hero-eyebrows {
  display: grid;
  gap: .5rem;
  margin: 12px 0;
}
.hero-eyebrows .eyebrow { margin: 0; }
.hero-eyebrows .hero-eyebrow-step-one { margin-left: 1.25rem; }
.hero-eyebrows .hero-eyebrow-step-two { margin-left: 2.5rem; }

/* Balance mobile spacing around the hero strapline */
@media (max-width: 760px) {
  .hero { padding-top: 22px; }
}
