/* Studio home: the tinyapps. wordmark, then each app as a large card showing its real screen. */

.p-studio {
  --bg: #f4f4f1;
  --fg: #1f211d;
  --fg-2: #62645c;
  --line: #dcddd6;
  --tint: #ebebe6;
  --card: #ffffff;
  --accent-ui: #f25c38;
}
:root[data-theme="dark"] .p-studio { --bg: #161714; --fg: #eeefe9; --fg-2: #a4a79b; --line: #2b2d28; --tint: #1f201c; --card: #1f201c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .p-studio { --bg: #161714; --fg: #eeefe9; --fg-2: #a4a79b; --line: #2b2d28; --tint: #1f201c; --card: #1f201c; }
}

.studio-hero { padding-top: clamp(24px, 4vw, 48px); }
.studio-hero h1 {
  font-family: var(--font-latin);
  font-size: clamp(84px, 19.6vw, 274px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -.075em;
  margin-left: -.035em;
  white-space: nowrap;
}
.studio-hero h1 span { color: var(--accent); }
.studio-intro { padding: 18px 0 clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 80px; align-items: end; }
.studio-intro p { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }
:lang(en) .studio-intro p:first-child, :lang(es) .studio-intro p:first-child { letter-spacing: -.03em; line-height: 1.15; }
.studio-intro .studio-sub { font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--fg-2); max-width: 26em; letter-spacing: 0; }

/* Showcase cards ------------------------------------------------------------------- */
.showcase { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.show a { position: relative; display: grid; grid-template-rows: auto 1fr; height: 640px; overflow: hidden; border-radius: 36px; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.show a:hover { transform: translateY(-4px); }
.show-mymoney a { background: #eef5ff; color: #0f1b2d; box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 24px 48px -28px rgb(20 80 160 / .35); }
.show-snaptidy a { background: #155bff; color: #fff; box-shadow: 0 24px 48px -28px rgb(10 40 140 / .6); }
:root[data-theme="dark"] .show-mymoney a { background: #13202f; color: #eef2f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .show-mymoney a { background: #13202f; color: #eef2f7; } }
.show-copy { padding: 36px 36px 0; position: relative; z-index: 2; }
.show-lockup { display: flex; align-items: center; gap: 14px; }
.show-lockup img { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 12px 24px -12px rgb(0 0 0 / .45); }
.show-lockup .name { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.show-lockup .category { display: block; font-size: 14px; opacity: .72; margin-top: 3px; }
.show-line { margin-top: 26px; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; max-width: 17em; }
:lang(en) .show-line, :lang(es) .show-line { letter-spacing: -.02em; line-height: 1.25; }
.show-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 600; }
.show-more .arrow { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.show a:hover .show-more .arrow { transform: translateX(4px); }
.show-mymoney .show-more { color: #1689ff; }
.show-platform { position: absolute; top: 40px; right: 36px; font-size: 12.5px; opacity: .65; }
.show-device { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-top: 34px; }
.show-device .phone { --w: 270px; transition: transform .6s var(--ease); }
.show a:hover .show-device .phone { transform: translateY(-10px); }

/* Note + contact -------------------------------------------------------------------- */
.studio-note { padding-block: clamp(72px, 9vw, 120px); display: grid; grid-template-columns: 1fr 1fr; gap: 24px 80px; }
.studio-note h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.studio-note p { font-size: 17px; color: var(--fg-2); line-height: 1.8; }
.contact-wrap { padding-bottom: clamp(56px, 7vw, 96px); }
.contact { background: var(--accent); color: #1f211d; border-radius: 36px; padding: clamp(36px, 5vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.contact p { font-size: 14px; margin-bottom: 10px; }
.contact h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.contact a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-latin); font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; padding: 14px 22px; border-radius: 999px; background: #1f211d; color: #fff; overflow-wrap: anywhere; transition: transform .25s var(--ease); }
.contact a .arrow { width: 15px; height: 15px; }
.contact a:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .studio-hero h1 { animation: word-arrive .8s var(--ease) both; }
  html:not([data-motion="off"]) .studio-intro { animation: arrive .7s .12s both; }
}
@keyframes word-arrive { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .studio-intro, .studio-note { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .show a { height: 600px; }
}
@media (max-width: 640px) {
  .studio-hero h1 { font-size: 20.8vw; line-height: 1.15; }
  .show a { height: 560px; border-radius: 28px; }
  .show-copy { padding: 28px 24px 0; }
  .show-platform { display: none; }
  .show-device .phone { --w: 230px; }
  .contact { border-radius: 28px; }
  .contact a { width: 100%; justify-content: space-between; }
}

/* 404 */
.not-found { padding-bottom: 96px; }
.not-found .studio-intro { display: block; }
.not-found .studio-intro p + p { margin-top: 6px; color: var(--fg-2); font-family: var(--font-display); }
.nf-links { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 32px; font-size: 15px; }

/* About: same paper and type as the studio home; each block is a label column plus content. */
.about-hero { padding-top: clamp(40px, 6vw, 88px); }
.about-hero h1 { font-family: var(--font-display); font-size: clamp(50px, 9vw, 128px); line-height: 1.02; font-weight: 800; letter-spacing: -.055em; margin-left: -.03em; }
:lang(zh-CN) .about-hero h1 { letter-spacing: -.04em; }
.about-hero h1 span { color: var(--accent); }
.about-intro { padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 80px; align-items: end; }
.about-intro p { font-size: 17px; line-height: 1.75; color: var(--fg-2); max-width: 34em; }
.about-intro strong { color: var(--fg); font-weight: 600; }
.about-intro .about-lead { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.4; font-weight: 700; letter-spacing: -.01em; color: var(--fg); }
:lang(en) .about-intro .about-lead { letter-spacing: -.03em; line-height: 1.2; }

.about-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.about-row h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.about-side p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--fg-2); max-width: 24em; }

.about-apps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-app { display: flex; flex-direction: column; padding: 28px; border-radius: 28px; }
.about-app-mymoney { background: #eef5ff; color: #0f1b2d; box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 24px 48px -32px rgb(20 80 160 / .35); }
.about-app-snaptidy { background: #155bff; color: #fff; box-shadow: 0 24px 48px -32px rgb(10 40 140 / .6); }
:root[data-theme="dark"] .about-app-mymoney { background: #13202f; color: #eef2f7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-app-mymoney { background: #13202f; color: #eef2f7; } }
.about-app-lockup { display: flex; align-items: center; gap: 14px; }
.about-app-lockup img { width: 56px; height: 56px; border-radius: 22.5%; box-shadow: 0 12px 24px -12px rgb(0 0 0 / .45); }
.p-about .about-app h3 { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.about-app-cat { margin-top: 2px; font-size: 13.5px; opacity: .72; }
.about-app-line { margin-top: 20px; font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.about-app-links { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; font-weight: 600; }
.about-app-links a { display: inline-flex; align-items: center; gap: 7px; }
.about-app-links .arrow { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.about-app-links a:hover .arrow { transform: translateX(3px); }
.about-app-mymoney .about-app-links a { color: #0a6fd6; }
:root[data-theme="dark"] .about-app-mymoney .about-app-links a { color: #6cbcff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-app-mymoney .about-app-links a { color: #6cbcff; } }

.principles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(40px, 5vw, 56px); }
.principles li { padding: 24px 24px 26px; background: var(--card); border-radius: 24px; box-shadow: 0 0 0 1px var(--line); }
.principle-n { display: block; font-family: var(--font-latin); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--accent); }
.p-about .principles h3 { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.principles p { margin-top: 8px; font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.principles p + p { margin-top: 10px; }
.principles strong { color: var(--fg); font-weight: 600; }
.p-about .about-h3 { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.about-note { margin: 12px 0 clamp(32px, 4vw, 44px); font-size: 13px; color: var(--fg-2); }
.about-note:last-child { margin-bottom: 0; }
.about-site p { font-size: 17px; line-height: 1.75; color: var(--fg-2); max-width: 36em; }
.about-site p + p { margin-top: .6em; }
.about-row + .contact-wrap { padding-top: clamp(8px, 2vw, 24px); }

@media (max-width: 1000px) {
  .about-intro, .about-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .about-apps, .principles { grid-template-columns: 1fr; }
  .about-app { padding: 24px; border-radius: 24px; }
}
