/* Lingo site — "Ink & Paper" styling, Landing-page layout.
   Plain hand-edited HTML (no build step); this is the only stylesheet.
   Warm paper, near-black ink, one deep-green accent, serif display headings.
   NOTE: page text + the localized (ja / zh-Hans / zh-Hant) pages are placeholders. */

:root {
  --paper: #F7F5F1;
  --panel: #F0EDE6;
  --surface: #FFFFFF;
  --ink: #1B1B1A;
  --ink-2: #4A4742;
  --muted: #6B6760;
  --faint: #938D83;
  --line: #E7E2D9;
  --line-2: #EDEAE3;
  --accent: #3A6B5E;
  --accent-ink: #2E574C;
  --accent-bg: #EBF1EE;
  --serif: "Newsreader", Georgia, "Hiragino Mincho ProN", "Songti SC", "Songti TC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(40, 34, 24, .05);
  --shadow-lg: 0 1px 2px rgba(40, 34, 24, .05), 0 18px 40px rgba(40, 34, 24, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 30px);
}

.wrap-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

/* ---------- header ---------- */
.hdr {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.brand span {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.nav a {
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.langs {
  display: flex;
  gap: 2px;
}

.langs a {
  padding: 6px 9px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.langs a:hover {
  color: var(--ink);
}

.langs a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ---------- shared bits ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--accent-ink);
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ---------- home: hero ---------- */
.hero-c {
  text-align: center;
  padding: clamp(64px, 9vw, 104px) 0 clamp(24px, 3vw, 40px);
}

.hero-c .eyebrow {
  justify-content: center;
}

.hero-c h1 {
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.03;
  max-width: 12em;
  margin: 0 auto;
}

.hero-c .sub {
  margin: 20px auto 0;
  max-width: 37em;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-c .cta {
  margin-top: 28px;
}

/* ---------- home: hero carousel ---------- */
.hero-carousel {
  margin: clamp(46px, 7vw, 72px) auto 0;
  padding-bottom: 6px;
  overflow: hidden;
  --phone-w: clamp(168px, 24vw, 228px);
  --peek: calc(var(--phone-w) * 1.02);
}

.hc-stage {
  position: relative;
  width: 100%;
  height: calc(var(--phone-w) * 900 / 416);
}

.hc-track {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--phone-w);
  height: 100%;
  transform: translateX(-50%);
}

.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.7);
  z-index: 1;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1), opacity .55s ease;
}

.hc-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
  pointer-events: auto;
}

.hc-slide.is-prev {
  opacity: .55;
  transform: translateX(calc(-1 * var(--peek))) scale(.82);
  z-index: 2;
}

.hc-slide.is-next {
  opacity: .55;
  transform: translateX(var(--peek)) scale(.82);
  z-index: 2;
}

.hc-slide.is-hide-prev {
  opacity: 0;
  transform: translateX(calc(-2 * var(--peek))) scale(.7);
}

.hc-slide.is-hide-next {
  opacity: 0;
  transform: translateX(calc(2 * var(--peek))) scale(.7);
}

.hc-phone {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  border: 1px solid rgba(27, 27, 26, .12);
  box-shadow: var(--shadow-lg);
  background: #0E1726 center top / cover no-repeat;
}

.hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease;
}

.hc-prev {
  left: 0;
}

.hc-next {
  right: 0;
}

.hc-stage:hover .hc-arrow {
  opacity: 1;
}

.hc-arrow:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.hc-dots {
  margin-top: 22px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.hc-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--faint);
  opacity: .4;
  cursor: pointer;
  transition: opacity .2s, background .2s, transform .2s;
}

.hc-dot.is-on {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.25);
}

/* ---------- home: section scaffolding ---------- */
.block {
  padding: clamp(72px, 9vw, 108px) 0;
}

.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-head {
  text-align: center;
  max-width: 34em;
  margin: 0 auto;
}

.sec-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.1;
}

.sec-sub {
  margin: 14px auto 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.55;
  color: var(--muted);
}

/* showcase cards (Built for your whole day) */
.show-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(38px, 5vw, 54px);
}

.show-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.show-card .txt {
  padding: clamp(22px, 3vw, 28px);
}

.show-card .txt h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.show-card .txt p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 26em;
}

/* data ownership (Local first + optional cloud sync) */
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(38px, 5vw, 54px);
}

.data-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3.5vw, 34px);
  box-shadow: var(--shadow);
}

.data-card .eyebrow {
  margin-bottom: 16px;
}

.data-card h3 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.data-card p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* sign up */
.signup {
  text-align: center;
}

.su-form {
  margin: 26px auto 0;
  display: flex;
  gap: 10px;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}

.su-form input {
  flex: 1 1 220px;
  min-width: 200px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.su-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- document pages (privacy / terms / support) ---------- */
main.page {
  padding: clamp(40px, 7vw, 72px) 0 8px;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.updated {
  font-size: 13px;
  color: var(--faint);
  margin-top: 14px;
}

.intro {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 18px 0 0;
}

.card {
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.sec {
  padding: 22px 0;
  border-top: 1px solid var(--line-2);
  display: flex;
  gap: 16px;
}

.sec:first-child {
  border-top: none;
  padding-top: 0;
}

.sec .n {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  width: 28px;
  flex: none;
}

.sec h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
}

.sec p {
  margin: 7px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* faq */
.faq {
  margin-top: 28px;
}

.faq .q {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.faq .q:first-child {
  border-top: none;
  padding-top: 4px;
}

.faq h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 44em;
}

/* contact card */
.contact {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.contact .t {
  font-size: 15px;
  font-weight: 600;
}

.contact .d {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2px;
}

.contact a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-ink);
  border: 1px solid var(--line);
  padding: 11px 18px;
  border-radius: 10px;
}

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

/* ---------- footer ---------- */
.ftr {
  border-top: 1px solid var(--line);
}

.ftr .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding-top: 36px;
  padding-bottom: 20px;
}

.ftr .tagline {
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 12px;
}

.ftr .by {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

.ftr .by:hover {
  color: var(--accent);
}

.ftr .links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ftr .links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.ftr .links a:hover {
  color: var(--accent-ink);
}

.ftr .legal {
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
  padding: 16px 0;
}

@media (max-width: 560px) {

  .show-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }
}